pub struct Storage<T>where
T: RandomAccess + Debug,{ /* private fields */ }
Expand description
Save data to a desired storage backend.
Implementations§
source§impl Storage<RandomAccessMemory>
impl Storage<RandomAccessMemory>
sourcepub async fn new_memory() -> Result<Self, HypercoreError>
pub async fn new_memory() -> Result<Self, HypercoreError>
New storage backed by a RandomAccessMemory
instance.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Storage<T>where T: RefUnwindSafe,
impl<T> Send for Storage<T>where T: Send,
impl<T> Sync for Storage<T>where T: Sync,
impl<T> Unpin for Storage<T>where T: Unpin,
impl<T> UnwindSafe for Storage<T>where T: UnwindSafe,
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