pub struct NOCCollectionSync<T>{ /* private fields */ }
Implementations§
Source§impl<T> NOCCollectionSync<T>
impl<T> NOCCollectionSync<T>
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 is_dirty(&self) -> bool
pub fn set_dirty(&self, dirty: bool) -> bool
pub fn coll(&self) -> &Arc<Mutex<T>>
pub fn id(&self) -> &str
pub fn swap(&mut self, value: T) -> T
pub async fn load(&self) -> BuckyResult<()>
pub async fn save(&self) -> BuckyResult<()>
pub fn async_save(&self)
pub async fn delete(&self) -> BuckyResult<()>
pub fn start_save(&self, dur: Duration)
pub fn stop_save(&self)
Trait Implementations§
Source§impl<T> Clone for NOCCollectionSync<T>
impl<T> Clone for NOCCollectionSync<T>
Auto Trait Implementations§
impl<T> Freeze for NOCCollectionSync<T>
impl<T> !RefUnwindSafe for NOCCollectionSync<T>
impl<T> Send for NOCCollectionSync<T>
impl<T> Sync for NOCCollectionSync<T>
impl<T> Unpin for NOCCollectionSync<T>
impl<T> !UnwindSafe for NOCCollectionSync<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more