Enum cyfs_base::DirBodyContent
source · [−]pub enum DirBodyContent {
Chunk(ChunkId),
ObjList(DirBodyContentObjectList),
}
Variants
Chunk(ChunkId)
ObjList(DirBodyContentObjectList)
Trait Implementations
sourceimpl BodyContent for DirBodyContent
impl BodyContent for DirBodyContent
sourceimpl Clone for DirBodyContent
impl Clone for DirBodyContent
sourcefn clone(&self) -> DirBodyContent
fn clone(&self) -> DirBodyContent
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 DirBodyContent
impl Debug for DirBodyContent
sourceimpl ObjectFormat for DirBodyContent
impl ObjectFormat for DirBodyContent
fn format_json(&self) -> Value
sourceimpl<'de> RawDecode<'de> for DirBodyContent
impl<'de> RawDecode<'de> for DirBodyContent
fn raw_decode(buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> BuckyResult<(Self, &'de [u8])>
sourceimpl RawEncode for DirBodyContent
impl RawEncode for DirBodyContent
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 DirBodyContent
impl Send for DirBodyContent
impl Sync for DirBodyContent
impl Unpin for DirBodyContent
impl UnwindSafe for DirBodyContent
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