pub struct FileSystem<C: Crypto + Serialize> { /* private fields */ }Implementations§
Source§impl<C> FileSystem<C>where
C: DeserializeOwned + Crypto,
impl<C> FileSystem<C>where
C: DeserializeOwned + Crypto,
Trait Implementations§
Source§impl<C> Storage for FileSystem<C>where
C: DeserializeOwned + Crypto,
impl<C> Storage for FileSystem<C>where
C: DeserializeOwned + Crypto,
fn connect(&mut self)
fn open(&mut self, password: &[u8]) -> Vec<u8> ⓘ
fn init(&mut self, password: &[u8], payload: &[u8])
fn is_init(&self) -> bool
fn save_payload(&mut self, payload: &[u8])
fn put_block(&mut self, cid: &str, data: &[u8])
fn get_block(&self, cid: &str) -> Vec<u8> ⓘ
fn del_block(&mut self, cid: &str)
fn is_exist(&self, cid: &str) -> bool
fn flush(&mut self)
fn destroy(&mut self)
Auto Trait Implementations§
impl<C> Freeze for FileSystem<C>where
C: Freeze,
impl<C> !RefUnwindSafe for FileSystem<C>
impl<C> Send for FileSystem<C>
impl<C> Sync for FileSystem<C>
impl<C> Unpin for FileSystem<C>where
C: Unpin,
impl<C> !UnwindSafe for FileSystem<C>
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