Struct cyfs_base::ObjectMapPathOpEnv
source · [−]pub struct ObjectMapPathOpEnv { /* private fields */ }Implementations
sourceimpl ObjectMapPathOpEnv
impl ObjectMapPathOpEnv
pub fn cache(&self) -> &ObjectMapOpEnvCacheRef
pub fn sid(&self) -> u64
pub fn root(&self) -> ObjectId
pub async fn lock_path(
&self,
path_list: Vec<String>,
duration_in_millsecs: u64,
as_try: bool
) -> BuckyResult<()>
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(
&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<()>
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ObjectMapPathOpEnv
impl Send for ObjectMapPathOpEnv
impl Sync for ObjectMapPathOpEnv
impl Unpin for ObjectMapPathOpEnv
impl !UnwindSafe for ObjectMapPathOpEnv
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