pub struct ObjectMapIsolatePathOpEnv { /* private fields */ }
Implementations§
Source§impl ObjectMapIsolatePathOpEnv
impl ObjectMapIsolatePathOpEnv
pub async fn create_new( &self, content_type: ObjectMapSimpleContentType, owner: Option<ObjectId>, dec_id: Option<ObjectId>, ) -> BuckyResult<()>
pub async fn load(&self, obj_map_id: &ObjectId) -> BuckyResult<()>
pub async fn load_by_path(&self, full_path: &str) -> BuckyResult<()>
pub async fn load_with_inner_path( &self, obj_map_id: &ObjectId, inner_path: Option<String>, ) -> BuckyResult<()>
pub async fn load_by_key(&self, path: &str, key: &str) -> BuckyResult<()>
pub fn cache(&self) -> &ObjectMapOpEnvCacheRef
pub fn sid(&self) -> u64
pub fn root(&self) -> Option<ObjectId>
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_with_key( &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<()>
Auto Trait Implementations§
impl !Freeze for ObjectMapIsolatePathOpEnv
impl !RefUnwindSafe for ObjectMapIsolatePathOpEnv
impl Send for ObjectMapIsolatePathOpEnv
impl Sync for ObjectMapIsolatePathOpEnv
impl Unpin for ObjectMapIsolatePathOpEnv
impl !UnwindSafe for ObjectMapIsolatePathOpEnv
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