Trait secret::Lock [] [src]

pub trait Lock<T: Wrapper> {
    fn lock(&self) -> SecretResult<Vec<T>>;
    fn unlock(&self) -> SecretResult<Vec<T>>;
}

This Trait is implemented by objects which can be locked and unlocked

Required Methods

fn lock(&self) -> SecretResult<Vec<T>>

Lock the object.

fn unlock(&self) -> SecretResult<Vec<T>>

Unlock the object

Implementors