Struct cyfs_base::ObjectMapDescContent
source · [−]pub struct ObjectMapDescContent { /* private fields */ }
Implementations
sourceimpl 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
) -> 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
sourceimpl Clone for ObjectMapDescContent
impl Clone for ObjectMapDescContent
sourcefn clone(&self) -> ObjectMapDescContent
fn clone(&self) -> ObjectMapDescContent
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 moresourceimpl Debug for ObjectMapDescContent
impl Debug for ObjectMapDescContent
sourceimpl DescContent for ObjectMapDescContent
impl DescContent for ObjectMapDescContent
fn obj_type() -> u16
type OwnerType = Option<ObjectId>
type AreaType = SubDescNone
type AuthorType = SubDescNone
type PublicKeyType = SubDescNone
fn obj_type_code() -> ObjectTypeCode
fn desc_content_type() -> DescContentType
fn is_standard_object() -> bool
fn is_core_object() -> bool
fn is_decapp_object() -> bool
fn debug_info() -> String
fn version(&self) -> u8
fn format(&self) -> u8
sourceimpl ObjectFormat for ObjectMapDescContent
impl ObjectFormat for ObjectMapDescContent
fn format_json(&self) -> Value
sourceimpl RawDecode<'_> for ObjectMapDescContent
impl RawDecode<'_> for ObjectMapDescContent
fn raw_decode(buf: &[u8]) -> BuckyResult<(Self, &[u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for ObjectMapDescContent
impl RawEncode for ObjectMapDescContent
fn raw_measure(&self, purpose: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a [u8]>
fn raw_encode_to_buffer(&self) -> BuckyResult<Vec<u8>>
fn raw_hash_value(&self) -> BuckyResult<HashValue>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> BuckyResult<Vec<u8>>
Auto Trait Implementations
impl RefUnwindSafe for ObjectMapDescContent
impl Send for ObjectMapDescContent
impl Sync for ObjectMapDescContent
impl Unpin for ObjectMapDescContent
impl UnwindSafe for ObjectMapDescContent
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