pub struct MultihashFrame<const S: usize, D: MultihashDigestExt<S>, I: FrameReader> { /* private fields */ }Expand description
Check summed frame using a multihash encoded digest
Implementations§
Source§impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader> MultihashFrame<S, D, I>
impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader> MultihashFrame<S, D, I>
Trait Implementations§
Source§impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader + Clone> Clone for MultihashFrame<S, D, I>
impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader + Clone> Clone for MultihashFrame<S, D, I>
Source§impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader> FrameReader for MultihashFrame<S, D, I>
impl<const S: usize, D: MultihashDigestExt<S>, I: FrameReader> FrameReader for MultihashFrame<S, D, I>
type OwnedType = MultihashFrame<S, D, <I as FrameReader>::OwnedType>
Source§fn exposed_data(&self) -> &[u8] ⓘ
fn exposed_data(&self) -> &[u8] ⓘ
Data exposed by this frame to inner frame.
Ex: sized frame will expose the sized data without encoded size numbers
Source§fn whole_data(&self) -> &[u8] ⓘ
fn whole_data(&self) -> &[u8] ⓘ
Data of the whole frame, not just the exposed data.
Source§fn to_owned_frame(&self) -> Self::OwnedType
fn to_owned_frame(&self) -> Self::OwnedType
Converts the frame to a owned version (without lifetime)
Source§fn whole_data_size(&self) -> usize
fn whole_data_size(&self) -> usize
Size of the whole data of the frame.
Auto Trait Implementations§
impl<const S: usize, D, I> Freeze for MultihashFrame<S, D, I>where
I: Freeze,
impl<const S: usize, D, I> RefUnwindSafe for MultihashFrame<S, D, I>where
I: RefUnwindSafe,
D: RefUnwindSafe,
impl<const S: usize, D, I> Send for MultihashFrame<S, D, I>
impl<const S: usize, D, I> Sync for MultihashFrame<S, D, I>
impl<const S: usize, D, I> Unpin for MultihashFrame<S, D, I>
impl<const S: usize, D, I> UnwindSafe for MultihashFrame<S, D, I>where
I: UnwindSafe,
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more