pub struct SingleOpEnvStub { /* private fields */ }
Implementations§
Source§impl SingleOpEnvStub
impl SingleOpEnvStub
pub async fn create_new( &self, content_type: ObjectMapSimpleContentType, ) -> BuckyResult<()>
pub async fn create_new_with_option( &self, content_type: ObjectMapSimpleContentType, options: &CreateObjectMapOption, ) -> BuckyResult<()>
pub async fn load(&self, target: ObjectId) -> BuckyResult<()>
pub async fn load_with_inner_path( &self, target: ObjectId, inner_path: impl Into<String>, ) -> BuckyResult<()>
pub async fn load_by_path(&self, path: impl Into<String>) -> BuckyResult<()>
pub async fn get_current_root(&self) -> BuckyResult<ObjectId>
pub async fn get_by_key( &self, key: impl Into<String>, ) -> BuckyResult<Option<ObjectId>>
pub async fn insert_with_key( &self, key: impl Into<String>, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_key( &self, key: impl Into<String>, value: &ObjectId, prev_value: Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_key( &self, key: impl Into<String>, prev_value: Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
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 update(&self) -> BuckyResult<ObjectId>
pub async fn commit(self) -> BuckyResult<ObjectId>
pub async fn abort(self) -> BuckyResult<()>
pub async fn next(&self, step: u32) -> BuckyResult<Vec<ObjectMapContentItem>>
pub async fn reset(&self) -> BuckyResult<()>
pub async fn list(&self) -> BuckyResult<Vec<ObjectMapContentItem>>
pub async fn metadata(&self) -> BuckyResult<ObjectMapMetaData>
Trait Implementations§
Source§impl Clone for SingleOpEnvStub
impl Clone for SingleOpEnvStub
Source§fn clone(&self) -> SingleOpEnvStub
fn clone(&self) -> SingleOpEnvStub
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SingleOpEnvStub
impl !RefUnwindSafe for SingleOpEnvStub
impl Send for SingleOpEnvStub
impl Sync for SingleOpEnvStub
impl Unpin for SingleOpEnvStub
impl !UnwindSafe for SingleOpEnvStub
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