pub struct PathOpEnvStub { /* private fields */ }
Implementations§
Source§impl PathOpEnvStub
impl PathOpEnvStub
pub fn new( processor: OpEnvOutputProcessorRef, target: Option<ObjectId>, target_dec_id: Option<ObjectId>, ) -> Self
pub async fn get_current_root(&self) -> BuckyResult<DecRootInfo>
pub async fn lock( &self, path_list: Vec<String>, duration_in_millsecs: u64, ) -> BuckyResult<()>
pub async fn try_lock( &self, path_list: Vec<String>, duration_in_millsecs: u64, ) -> BuckyResult<()>
pub async fn get_by_key( &self, path: impl Into<String>, key: impl Into<String>, ) -> BuckyResult<Option<ObjectId>>
pub async fn create_new( &self, path: impl Into<String>, key: impl Into<String>, content_type: ObjectMapSimpleContentType, ) -> BuckyResult<()>
pub async fn create_new_with_option( &self, path: impl Into<String>, key: impl Into<String>, content_type: ObjectMapSimpleContentType, options: &CreateObjectMapOption, ) -> BuckyResult<()>
pub async fn insert_with_key( &self, path: impl Into<String>, key: impl Into<String>, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_key( &self, path: impl Into<String>, key: impl Into<String>, value: &ObjectId, prev_value: Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_key( &self, path: impl Into<String>, key: impl Into<String>, prev_value: Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
pub async fn get_by_path( &self, full_path: impl Into<String>, ) -> BuckyResult<Option<ObjectId>>
pub async fn create_new_with_path( &self, full_path: impl Into<String>, content_type: ObjectMapSimpleContentType, ) -> BuckyResult<()>
pub async fn create_new_with_path_and_option( &self, full_path: impl Into<String>, content_type: ObjectMapSimpleContentType, options: &CreateObjectMapOption, ) -> BuckyResult<()>
pub async fn insert_with_path( &self, full_path: impl Into<String>, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_path( &self, full_path: impl Into<String>, value: &ObjectId, prev_value: Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_path( &self, full_path: impl Into<String>, prev_value: Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
pub async fn contains( &self, path: impl Into<String>, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn insert( &self, path: impl Into<String>, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn remove( &self, path: impl Into<String>, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn update(&self) -> BuckyResult<DecRootInfo>
pub async fn commit(self) -> BuckyResult<DecRootInfo>
pub async fn abort(self) -> BuckyResult<()>
pub async fn list( &self, path: impl Into<String>, ) -> BuckyResult<Vec<ObjectMapContentItem>>
pub async fn metadata( &self, path: impl Into<String>, ) -> BuckyResult<ObjectMapMetaData>
Trait Implementations§
Source§impl Clone for PathOpEnvStub
impl Clone for PathOpEnvStub
Source§fn clone(&self) -> PathOpEnvStub
fn clone(&self) -> PathOpEnvStub
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 PathOpEnvStub
impl !RefUnwindSafe for PathOpEnvStub
impl Send for PathOpEnvStub
impl Sync for PathOpEnvStub
impl Unpin for PathOpEnvStub
impl !UnwindSafe for PathOpEnvStub
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