Struct cyfs_lib::SingleOpEnvStub
source · pub struct SingleOpEnvStub { /* private fields */ }
Implementations§
source§impl SingleOpEnvStub
impl SingleOpEnvStub
pub async fn create_new(
&self,
content_type: ObjectMapSimpleContentType
) -> BuckyResult<()>
pub async fn load(&self, target: ObjectId) -> 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 more