Struct lumina_node::store::SamplingMetadata
source · pub struct SamplingMetadata {
pub accepted: bool,
pub cids_sampled: Vec<Cid>,
}Expand description
Sampling status for a header.
This struct persists DAS-ing information in a header store for future reference.
Fields§
§accepted: boolIndicates whether this node was able to successfuly sample the block
cids_sampled: Vec<Cid>List of CIDs used, when decision to accept or reject the header was taken. Can be used to remove associated data from Blockstore, when cleaning up the old ExtendedHeaders
Trait Implementations§
source§impl Clone for SamplingMetadata
impl Clone for SamplingMetadata
source§fn clone(&self) -> SamplingMetadata
fn clone(&self) -> SamplingMetadata
Returns a copy of the value. Read more
1.0.0 · 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 SamplingMetadata
impl Debug for SamplingMetadata
source§impl Default for SamplingMetadata
impl Default for SamplingMetadata
source§fn default() -> SamplingMetadata
fn default() -> SamplingMetadata
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SamplingMetadata
impl<'de> Deserialize<'de> for SamplingMetadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SamplingMetadata
impl RefUnwindSafe for SamplingMetadata
impl Send for SamplingMetadata
impl Sync for SamplingMetadata
impl Unpin for SamplingMetadata
impl UnwindSafe for SamplingMetadata
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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