pub struct Storage {
    nvme: Arc<NvmeController>,
}

Fields

nvme: Arc<NvmeController>

Implementations

Trait Implementations

This function must read the data from the flash region specified by region_number into buf. The length of the data read should be the same length as buf. offset indicates an offset into the region that should be read. Read more
This function must write the length of buf to the specified address in flash. If the length of buf is smaller then the minimum supported write size the implementation can write a larger value. This should be done by first reading the value, making the changed from buf and then writing it back. Read more
This function must erase the region specified by region_number. Read more

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.