[][src]Trait sunrise_fs::interface::storage::IStorage

pub trait IStorage: StorageDevice + Debug + Sync + Send {
    fn set_size(&mut self, new_size: u64) -> LibUserResult<()>;
}

This is the interface for a raw device, usually a block device.

Required methods

fn set_size(&mut self, new_size: u64) -> LibUserResult<()>

Set the total size of the storage in bytes.

Loading content...

Implementations on Foreign Types

impl<B> IStorage for StorageBlockDevice<B> where
    B: BlockDevice<Error = Error> + Send + Sync,
    B::Block: Send + Sync
[src]

Loading content...

Implementors

impl IStorage for PartitionStorage[src]

impl<F: FileOperations> IStorage for FileStorage<F>[src]

fn set_size(&mut self, new_size: u64) -> LibUserResult<()>[src]

Set the total size of the storage in bytes.

Loading content...