pub enum DigestFallback {
Wait,
FetchByRound {
round: Round,
},
}Expand description
How a digest-keyed block subscription should behave when the block is missing locally.
Variants§
Wait
Wait for local availability only.
FetchByRound
Request the notarized proposal for round from peers.
Use this only when the caller has a trusted round for the digest. Digest-keyed subscriptions intentionally cannot request exact commitment fetches.
Trait Implementations§
Source§impl Clone for DigestFallback
impl Clone for DigestFallback
Source§fn clone(&self) -> DigestFallback
fn clone(&self) -> DigestFallback
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DigestFallback
impl Debug for DigestFallback
Source§impl From<DigestFallback> for CommitmentFallback
impl From<DigestFallback> for CommitmentFallback
Source§fn from(fallback: DigestFallback) -> Self
fn from(fallback: DigestFallback) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DigestFallback
impl PartialEq for DigestFallback
Source§fn eq(&self, other: &DigestFallback) -> bool
fn eq(&self, other: &DigestFallback) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DigestFallback
impl Eq for DigestFallback
impl StructuralPartialEq for DigestFallback
Auto Trait Implementations§
impl Freeze for DigestFallback
impl RefUnwindSafe for DigestFallback
impl Send for DigestFallback
impl Sync for DigestFallback
impl Unpin for DigestFallback
impl UnsafeUnpin for DigestFallback
impl UnwindSafe for DigestFallback
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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