Guard

Trait Guard 

Source
pub trait Guard {
    // Required methods
    fn into_inner(self) -> Result<KvPair>;
    fn key(self) -> Result<UserKey>;
    fn size(self) -> Result<u32>;

    // Provided method
    fn value(self) -> Result<UserValue>
       where Self: Sized { ... }
}
Expand description

Guard to access key-value pairs

Required Methods§

Source

fn into_inner(self) -> Result<KvPair>

Accesses the key-value pair.

§Errors

Will return Err if an IO error occurs.

Source

fn key(self) -> Result<UserKey>

Accesses the key.

§Errors

Will return Err if an IO error occurs.

Source

fn size(self) -> Result<u32>

Returns the value size.

§Errors

Will return Err if an IO error occurs.

Provided Methods§

Source

fn value(self) -> Result<UserValue>
where Self: Sized,

Accesses the value.

§Errors

Will return Err if an IO error occurs.

Implementors§