Struct cyfs_lib::SingleOpEnvStub
source · [−]pub struct SingleOpEnvStub { /* private fields */ }
Implementations
sourceimpl 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_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 commit(self) -> BuckyResult<ObjectId>
pub async fn abort(self) -> BuckyResult<()>
pub async fn next(&self, step: u32) -> BuckyResult<Vec<ObjectMapContentItem>>
Trait Implementations
sourceimpl Clone for SingleOpEnvStub
impl Clone for SingleOpEnvStub
sourcefn clone(&self) -> SingleOpEnvStub
fn clone(&self) -> SingleOpEnvStub
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SingleOpEnvStub
impl Send for SingleOpEnvStub
impl Sync for SingleOpEnvStub
impl Unpin for SingleOpEnvStub
impl !UnwindSafe for SingleOpEnvStub
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more