Struct cyfs_lib::PathOpEnvStub
source · [−]pub struct PathOpEnvStub { /* private fields */ }
Implementations
sourceimpl PathOpEnvStub
impl PathOpEnvStub
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: &str,
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>>
Trait Implementations
sourceimpl Clone for PathOpEnvStub
impl Clone for PathOpEnvStub
sourcefn clone(&self) -> PathOpEnvStub
fn clone(&self) -> PathOpEnvStub
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for PathOpEnvStub
impl Send for PathOpEnvStub
impl Sync for PathOpEnvStub
impl Unpin for PathOpEnvStub
impl !UnwindSafe for PathOpEnvStub
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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