Struct cyfs_lib::NOCStorageWrapper
source · [−]pub struct NOCStorageWrapper { /* private fields */ }
Implementations
sourceimpl NOCStorageWrapper
impl NOCStorageWrapper
pub fn new(id: &str, noc: NamedObjectCacheRef) -> Self
pub fn new_global_state(
global_state: GlobalStateOutputProcessorRef,
dec_id: Option<ObjectId>,
path: String,
target: Option<ObjectId>,
id: &str,
noc: NamedObjectCacheRef
) -> 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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