pub struct ObjectMapPathOpEnv { /* private fields */ }
Implementations§
Source§impl ObjectMapPathOpEnv
impl ObjectMapPathOpEnv
pub fn cache(&self) -> &ObjectMapOpEnvCacheRef
pub fn sid(&self) -> u64
pub fn root(&self) -> ObjectId
pub async fn lock_path( &self, path_list: Vec<String>, duration_in_millsecs: u64, as_try: bool, ) -> BuckyResult<()>
pub async fn list(&self, path: &str) -> BuckyResult<ObjectMapContentList>
pub async fn metadata(&self, path: &str) -> BuckyResult<ObjectMapMetaData>
pub async fn get_by_path( &self, full_path: &str, ) -> BuckyResult<Option<ObjectId>>
pub async fn create_new_with_path( &self, full_path: &str, content_type: ObjectMapSimpleContentType, ) -> BuckyResult<()>
pub async fn insert_with_path( &self, full_path: &str, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_path( &self, full_path: &str, value: &ObjectId, prev_value: &Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_path( &self, full_path: &str, prev_value: &Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
pub async fn get_by_key( &self, path: &str, key: &str, ) -> BuckyResult<Option<ObjectId>>
pub async fn create_new( &self, path: &str, key: &str, content_type: ObjectMapSimpleContentType, ) -> BuckyResult<()>
pub async fn insert_with_key( &self, path: &str, key: &str, value: &ObjectId, ) -> BuckyResult<()>
pub async fn set_with_key( &self, path: &str, key: &str, value: &ObjectId, prev_value: &Option<ObjectId>, auto_insert: bool, ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_key( &self, path: &str, key: &str, prev_value: &Option<ObjectId>, ) -> BuckyResult<Option<ObjectId>>
pub async fn contains( &self, path: &str, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn insert( &self, path: &str, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn remove( &self, path: &str, object_id: &ObjectId, ) -> BuckyResult<bool>
pub async fn update(&self) -> BuckyResult<ObjectId>
pub async fn commit(self) -> BuckyResult<ObjectId>
pub fn abort(self) -> BuckyResult<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ObjectMapPathOpEnv
impl !RefUnwindSafe for ObjectMapPathOpEnv
impl Send for ObjectMapPathOpEnv
impl Sync for ObjectMapPathOpEnv
impl Unpin for ObjectMapPathOpEnv
impl !UnwindSafe for ObjectMapPathOpEnv
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> 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