Struct cyfs_base::FileBodyContent
source · [−]pub struct FileBodyContent { /* private fields */ }
Implementations
sourceimpl FileBodyContent
impl FileBodyContent
pub fn new(chunk_list: ChunkList) -> Self
pub fn chunk_list(&self) -> &ChunkList
pub fn inner_chunk_list(&self) -> Option<&Vec<ChunkId>>
pub fn into_chunk_list(self) -> ChunkList
Trait Implementations
sourceimpl BodyContent for FileBodyContent
impl BodyContent for FileBodyContent
sourceimpl Clone for FileBodyContent
impl Clone for FileBodyContent
sourcefn clone(&self) -> FileBodyContent
fn clone(&self) -> FileBodyContent
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FileBodyContent
impl Debug for FileBodyContent
sourceimpl ObjectFormat for FileBodyContent
impl ObjectFormat for FileBodyContent
fn format_json(&self) -> Value
sourceimpl<'de> RawDecode<'de> for FileBodyContent
impl<'de> RawDecode<'de> for FileBodyContent
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 FileBodyContent
impl RawEncode for FileBodyContent
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 FileBodyContent
impl Send for FileBodyContent
impl Sync for FileBodyContent
impl Unpin for FileBodyContent
impl UnwindSafe for FileBodyContent
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