Struct cyfs_lib::NOCCollection
source · [−]pub struct NOCCollection<T>where
T: Default + CollectionCodec<T>,{ /* private fields */ }
Implementations
sourceimpl<T> NOCCollection<T>where
T: Default + CollectionCodec<T>,
impl<T> NOCCollection<T>where
T: Default + CollectionCodec<T>,
pub fn new(id: &str, noc: NamedObjectCacheRef) -> Self
pub fn id(&self) -> &str
pub fn coll(&self) -> &T
pub fn is_dirty(&self) -> bool
pub fn set_dirty(&mut self, dirty: bool)
pub fn swap(&mut self, value: T) -> T
pub async fn load(&mut self) -> BuckyResult<()>
pub async fn save(&mut self) -> BuckyResult<()>
pub async fn delete(&mut self) -> BuckyResult<()>
Auto Trait Implementations
impl<T> !RefUnwindSafe for NOCCollection<T>
impl<T> Send for NOCCollection<T>where
T: Send,
impl<T> Sync for NOCCollection<T>where
T: Sync,
impl<T> Unpin for NOCCollection<T>where
T: Unpin,
impl<T> !UnwindSafe for NOCCollection<T>
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