Enum cyfs_bdt::ndn::ChunkEncodeDesc
source · [−]pub enum ChunkEncodeDesc {
Unknown,
Stream(Option<u32>, Option<u32>, Option<i32>),
Raptor(Option<u32>, Option<u32>, Option<i32>),
}
Variants
Unknown
Stream(Option<u32>, Option<u32>, Option<i32>)
Raptor(Option<u32>, Option<u32>, Option<i32>)
Trait Implementations
sourceimpl Clone for ChunkEncodeDesc
impl Clone for ChunkEncodeDesc
sourcefn clone(&self) -> ChunkEncodeDesc
fn clone(&self) -> ChunkEncodeDesc
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 ChunkEncodeDesc
impl Debug for ChunkEncodeDesc
sourceimpl JsonCodec<ChunkEncodeDesc> for ChunkEncodeDesc
impl JsonCodec<ChunkEncodeDesc> for ChunkEncodeDesc
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
sourceimpl<'de> RawDecode<'de> for ChunkEncodeDesc
impl<'de> RawDecode<'de> for ChunkEncodeDesc
fn raw_decode(buf: &'de [u8]) -> BuckyResult<(Self, &'de [u8])>
fn raw_decode_with_option(
buf: &'de [u8],
_opt: &RawDecodeOption
) -> Result<(Self, &'de [u8]), BuckyError>
sourceimpl RawEncode for ChunkEncodeDesc
impl RawEncode for ChunkEncodeDesc
fn raw_measure(&self, _: &Option<RawEncodePurpose>) -> BuckyResult<usize>
fn raw_encode<'a>(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> BuckyResult<&'a mut [u8]>
fn raw_tail_encode(
&self,
buf: &'a mut [u8],
purpose: &Option<RawEncodePurpose>
) -> Result<&'a [u8], BuckyError>
fn raw_encode_to_buffer(&self) -> Result<Vec<u8, Global>, BuckyError>
fn raw_hash_value(&self) -> Result<HashValue, BuckyError>
fn hash_buf(&self, encoded_buf: &[u8]) -> HashValue
fn raw_hash_encode(&self) -> Result<Vec<u8, Global>, BuckyError>
Auto Trait Implementations
impl RefUnwindSafe for ChunkEncodeDesc
impl Send for ChunkEncodeDesc
impl Sync for ChunkEncodeDesc
impl Unpin for ChunkEncodeDesc
impl UnwindSafe for ChunkEncodeDesc
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