[][src]Struct sunrise_fs::interface::storage::PartitionStorage

pub struct PartitionStorage {
    inner: Arc<Mutex<Box<dyn IStorage<Error = Error>>>>,
    partition_start: u64,
    partition_len: u64,
}

Wrapper over a IStorage that permit to access only a partition.

Fields

inner: Arc<Mutex<Box<dyn IStorage<Error = Error>>>>

The backing IStorage implementation

partition_start: u64

The start of the partition.

partition_len: u64

The size of the partition.

Implementations

impl PartitionStorage[src]

pub fn new(
    inner: Arc<Mutex<Box<dyn IStorage<Error = Error>>>>,
    partition_start: u64,
    partition_len: u64
) -> Self
[src]

Create a new PartitionStorage

Trait Implementations

impl Debug for PartitionStorage[src]

impl IStorage for PartitionStorage[src]

impl StorageDevice for PartitionStorage[src]

type Error = Error

Error type returned by this block device when an operation fails

Auto Trait Implementations

impl !RefUnwindSafe for PartitionStorage

impl Send for PartitionStorage

impl Sync for PartitionStorage

impl Unpin for PartitionStorage

impl !UnwindSafe for PartitionStorage

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.