Struct cyfs_lib::StateStorage
source · pub struct StateStorage { /* private fields */ }
Implementations
sourceimpl StateStorage
impl StateStorage
pub fn new(
global_state: GlobalStateOutputProcessorRef,
path: impl Into<String>,
content_type: ObjectMapSimpleContentType,
target: Option<ObjectId>,
dec_id: Option<ObjectId>
) -> Self
pub fn new_with_stack(
stack: UniCyfsStackRef,
category: GlobalStateCategory,
path: impl Into<String>,
content_type: ObjectMapSimpleContentType,
target: Option<ObjectId>,
dec_id: Option<ObjectId>
) -> Self
pub fn path(&self) -> &str
pub fn stub(&self) -> &SingleOpEnvStub
pub fn is_dirty(&self) -> bool
pub fn set_dirty(&self, dirty: bool)
pub async fn init(&self) -> BuckyResult<()>
pub fn start_save(&self, dur: Duration)
pub fn stop_save(&self)
pub async fn reload(&self) -> BuckyResult<bool>
pub async fn save(&self) -> BuckyResult<()>
pub async fn abort(&mut self)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StateStorage
impl Send for StateStorage
impl Sync for StateStorage
impl Unpin for StateStorage
impl !UnwindSafe for StateStorage
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