Type Definition cyfs_base::ObjectMap

source ·
pub type ObjectMap = NamedObjectBase<ObjectMapType>;

Implementations§

source§

impl ObjectMap

source

pub fn new( content_type: ObjectMapSimpleContentType, owner: Option<ObjectId>, dec_id: Option<ObjectId> ) -> ObjectMapBuilder

source

pub fn count(&self) -> u64

source

pub fn object_id(&self) -> ObjectId

source

pub fn content_type(&self) -> ObjectMapSimpleContentType

source

pub fn mode(&self) -> ObjectMapContentMode

source

pub fn class(&self) -> ObjectMapClass

source

pub fn depth(&self) -> u8

source

pub fn metadata(&self) -> ObjectMapMetaData

source

pub fn cached_object_id(&self) -> Option<ObjectId>

source

pub fn direct_set_object_id_on_init(&self, object_id: &ObjectId)

source

pub fn flush_id(&self) -> ObjectId

source

pub fn flush_id_without_cache(&self) -> ObjectId

source

pub async fn convert_to_simple( &mut self, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>

source

pub async fn convert_to_hub( &mut self, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<()>

source

pub fn into_simple(self) -> ObjectMapSimpleContent

source

pub async fn get_or_create_child_object_map( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, content_type: ObjectMapSimpleContentType, auto_create: ObjectMapCreateStrategy, access: Option<AccessString> ) -> BuckyResult<Option<ObjectMapRef>>

source

pub async fn list( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut ObjectMapContentList ) -> BuckyResult<u64>

source

pub async fn list_direct( &self, cache: &ObjectMapOpEnvCacheRef ) -> BuckyResult<ObjectMapContentList>

source

pub async fn list_subs( &self, cache: &ObjectMapOpEnvCacheRef, list: &mut Vec<ObjectId> ) -> BuckyResult<u64>

source

pub async fn next(&self, it: &mut ObjectMapIterator) -> BuckyResult<()>

source

pub async fn get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str ) -> BuckyResult<Option<ObjectId>>

source

pub async fn insert_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId ) -> BuckyResult<()>

source

pub async fn set_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectId, prev_value: &Option<ObjectId>, auto_insert: bool ) -> BuckyResult<Option<ObjectId>>

source

pub async fn remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectId> ) -> BuckyResult<Option<ObjectId>>

source

pub async fn diff_get_by_key( &self, cache: &ObjectMapOpEnvCacheRef, key: &str ) -> BuckyResult<Option<ObjectMapDiffMapItem>>

source

pub async fn diff_insert_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem ) -> BuckyResult<()>

source

pub async fn diff_set_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, value: &ObjectMapDiffMapItem, prev_value: &Option<ObjectMapDiffMapItem>, auto_insert: bool ) -> BuckyResult<Option<ObjectMapDiffMapItem>>

source

pub async fn diff_remove_with_key( &mut self, cache: &ObjectMapOpEnvCacheRef, key: &str, prev_value: &Option<ObjectMapDiffMapItem> ) -> BuckyResult<Option<ObjectMapDiffMapItem>>

source

pub async fn contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>

source

pub async fn insert( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>

source

pub async fn remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectId ) -> BuckyResult<bool>

source

pub async fn diff_contains( &self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>

source

pub async fn diff_insert( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>

source

pub async fn diff_remove( &mut self, cache: &ObjectMapOpEnvCacheRef, object_id: &ObjectMapDiffSetItem ) -> BuckyResult<bool>

source

pub async fn visit( &self, visitor: &mut impl ObjectMapVisitor ) -> BuckyResult<()>