Struct cyfs_lib::NOCStorageWrapper
source · [−]pub struct NOCStorageWrapper { /* private fields */ }
Implementations
sourceimpl NOCStorageWrapper
impl NOCStorageWrapper
pub fn new(id: &str, noc: Box<dyn NamedObjectCache>) -> Self
pub fn id(&self) -> &str
pub async fn load<T>(&self) -> BuckyResult<Option<T>> where
T: CollectionCodec<T>,
pub async fn save<T>(&self, data: &T) -> BuckyResult<()> where
T: CollectionCodec<T>,
pub async fn delete(&self) -> BuckyResult<()>
Auto Trait Implementations
impl !RefUnwindSafe for NOCStorageWrapper
impl Send for NOCStorageWrapper
impl Sync for NOCStorageWrapper
impl Unpin for NOCStorageWrapper
impl !UnwindSafe for NOCStorageWrapper
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more