Struct cyfs_base::ObjectMapDescContent
source · pub struct ObjectMapDescContent { /* private fields */ }
Implementations§
source§impl ObjectMapDescContent
impl ObjectMapDescContent
pub fn new( class: ObjectMapClass, content_type: ObjectMapSimpleContentType, depth: u8 ) -> Self
pub fn count(&self) -> u64
pub fn size(&self) -> u64
pub fn depth(&self) -> u8
pub fn object_id(&self) -> Option<ObjectId>
pub fn content_type(&self) -> &ObjectMapSimpleContentType
pub fn mode(&self) -> ObjectMapContentMode
pub fn class(&self) -> ObjectMapClass
pub fn set_class(&mut self, class: ObjectMapClass)
pub fn content(&self) -> &ObjectMapContent
pub fn metadata(&self) -> ObjectMapMetaData
pub fn into_simple(self) -> ObjectMapSimpleContent
pub async fn convert_to_simple( &mut self, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>
pub async fn convert_to_hub( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>
pub async fn inflate_check_point( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>
pub async fn deflate_check_point( &mut self, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>
pub async fn get_or_create_child_object_map( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, auto_create: ObjectMapCreateStrategy, access: Option<AccessString> ) -> BuckyResult<Option<ObjectMapRef>>
pub async fn list( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut ObjectMapContentList ) -> BuckyResult<u64>
pub async fn list_subs( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut Vec<ObjectId> ) -> BuckyResult<u64>
pub async fn next(&self, it: &mut ObjectMapIterator) -> BuckyResult<()>
pub async fn get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str ) -> BuckyResult<Option<ObjectId>>
pub async fn insert_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId ) -> BuckyResult<()>
pub async fn set_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId, prev_value: &Option<ObjectId>, auto_insert: bool ) -> BuckyResult<Option<ObjectId>>
pub async fn remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectId> ) -> BuckyResult<Option<ObjectId>>
pub async fn diff_get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn diff_insert_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem ) -> BuckyResult<()>
pub async fn diff_set_with_key( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem, prev_value: &Option<ObjectMapDiffMapItem>, auto_insert: bool ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn diff_remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectMapDiffMapItem> ) -> BuckyResult<Option<ObjectMapDiffMapItem>>
pub async fn contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>
pub async fn insert( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>
pub async fn remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>
pub async fn diff_contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>
pub async fn diff_insert( &mut self, builder: &ObjectMapBuilder, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>
pub async fn diff_remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>
pub async fn visit( &self, visitor: &mut impl ObjectMapVisitor ) -> BuckyResult<()>
Trait Implementations§
source§impl Clone for ObjectMapDescContent
impl Clone for ObjectMapDescContent
source§fn clone(&self) -> ObjectMapDescContent
fn clone(&self) -> ObjectMapDescContent
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