Struct cyfs_lib::PathOpEnvStub
source · 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 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 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 more