pub struct CodedBlockCfg<B: Block, C: Scheme, H: Hasher> {
pub inner: <B as Read>::Cfg,
pub expected: Commitment<B, C, H>,
}Expand description
Codec configuration for decoding a CodedBlock from the wire.
Pairs the inner block’s codec config with the Commitment that the
decoded block must match. The Read impl re-encodes the block and
rejects it unless its block digest, coding configuration, and coding root match
expected.
Fields§
§inner: <B as Read>::CfgCodec configuration for the inner application block.
expected: Commitment<B, C, H>The commitment the decoded block must match.
Trait Implementations§
Auto Trait Implementations§
impl<B, C, H> Freeze for CodedBlockCfg<B, C, H>
impl<B, C, H> RefUnwindSafe for CodedBlockCfg<B, C, H>
impl<B, C, H> Send for CodedBlockCfg<B, C, H>
impl<B, C, H> Sync for CodedBlockCfg<B, C, H>
impl<B, C, H> Unpin for CodedBlockCfg<B, C, H>
impl<B, C, H> UnsafeUnpin for CodedBlockCfg<B, C, H>
impl<B, C, H> UnwindSafe for CodedBlockCfg<B, C, H>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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