pub struct MockStorageAPI { /* private fields */ }
Expand description

mocks the storage for testing purpose.

Implementations

instantiates a new storage mock

Trait Implementations

reads data from the storage file at the given offset and length

writes data into the storage file at the given offset

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.