Struct cyfs_lib::StateStorageSet
source · [−]pub struct StateStorageSet { /* private fields */ }
Implementations
sourceimpl StateStorageSet
impl StateStorageSet
pub fn new(storage: StateStorage) -> Self
pub fn storage(&self) -> &StateStorage
pub fn into_storage(self) -> StateStorage
pub async fn save(&self) -> BuckyResult<()>
pub async fn abort(self)
pub async fn contains(&self, object_id: &ObjectId) -> BuckyResult<bool>
pub async fn insert(&self, object_id: &ObjectId) -> BuckyResult<bool>
pub async fn remove(&self, object_id: &ObjectId) -> BuckyResult<bool>
pub async fn next(&self, step: u32) -> BuckyResult<Vec<ObjectId>>
pub async fn reset(&self) -> BuckyResult<()>
pub async fn list(&self) -> BuckyResult<Vec<ObjectId>>
Auto Trait Implementations
impl !RefUnwindSafe for StateStorageSet
impl Send for StateStorageSet
impl Sync for StateStorageSet
impl Unpin for StateStorageSet
impl !UnwindSafe for StateStorageSet
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