Struct stable_fs::storage::stable::StableStorage
source · #[repr(C)]pub struct StableStorage<M: Memory> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<M: Memory> Storage for StableStorage<M>
impl<M: Memory> Storage for StableStorage<M>
fn root_node(&self) -> Node
fn new_node(&mut self) -> Node
fn get_version(&self) -> u32
fn get_metadata(&self, node: Node) -> Result<Metadata, Error>
fn put_metadata(&mut self, node: Node, metadata: Metadata)
fn rm_metadata(&mut self, node: Node)
fn get_direntry( &self, node: Node, index: DirEntryIndex ) -> Result<DirEntry, Error>
fn put_direntry(&mut self, node: Node, index: DirEntryIndex, entry: DirEntry)
fn rm_direntry(&mut self, node: Node, index: DirEntryIndex)
fn read_filechunk( &self, node: Node, index: FileChunkIndex, offset: FileSize, buf: &mut [u8] ) -> Result<(), Error>
fn write_filechunk( &mut self, node: Node, index: FileChunkIndex, offset: FileSize, buf: &[u8] )
fn rm_filechunk(&mut self, node: Node, index: FileChunkIndex)
Auto Trait Implementations§
impl<M> Freeze for StableStorage<M>
impl<M> !RefUnwindSafe for StableStorage<M>
impl<M> !Send for StableStorage<M>
impl<M> !Sync for StableStorage<M>
impl<M> Unpin for StableStorage<M>
impl<M> !UnwindSafe for StableStorage<M>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more