Enum cyfs_bdt::channel::PieceSessionType
source · [−]Variants
Unknown
Stream(u32)
RaptorA(u32)
RaptorB(u32)
Trait Implementations
sourceimpl Clone for PieceSessionType
impl Clone for PieceSessionType
sourcefn clone(&self) -> PieceSessionType
fn clone(&self) -> PieceSessionType
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 more
sourceimpl Debug for PieceSessionType
impl Debug for PieceSessionType
sourceimpl<'de> RawDecode<'de> for PieceSessionType
impl<'de> RawDecode<'de> for PieceSessionType
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 PieceSessionType
impl RawEncode for PieceSessionType
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 PieceSessionType
impl Send for PieceSessionType
impl Sync for PieceSessionType
impl Unpin for PieceSessionType
impl UnwindSafe for PieceSessionType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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