pub struct StateStorageSet { /* private fields */ }
Implementations§
Source§impl 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 !Freeze for StateStorageSet
impl !RefUnwindSafe for StateStorageSet
impl Send for StateStorageSet
impl Sync for StateStorageSet
impl Unpin for StateStorageSet
impl !UnwindSafe for StateStorageSet
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> 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