Struct sc_consensus::import_queue::IncomingBlock [−][src]
pub struct IncomingBlock<B: BlockT> { pub hash: <B as BlockT>::Hash, pub header: Option<<B as BlockT>::Header>, pub body: Option<Vec<<B as BlockT>::Extrinsic>>, pub indexed_body: Option<Vec<Vec<u8>>>, pub justifications: Option<Justifications>, pub origin: Option<Origin>, pub allow_missing_state: bool, pub skip_execution: bool, pub import_existing: bool, pub state: Option<ImportedState<B>>, }
Expand description
Block data used by the queue.
Fields
hash: <B as BlockT>::HashBlock header hash.
header: Option<<B as BlockT>::Header>Block header if requested.
body: Option<Vec<<B as BlockT>::Extrinsic>>Block body if requested.
indexed_body: Option<Vec<Vec<u8>>>Indexed block body if requested.
justifications: Option<Justifications>Justification(s) if requested.
origin: Option<Origin>The peer, we received this from
allow_missing_state: boolAllow importing the block skipping state verification if parent state is missing.
skip_execution: boolSkip block execution and state verification.
import_existing: boolRe-validate existing block.
state: Option<ImportedState<B>>Do not compute new state, but rather set it to the given set.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl<B> RefUnwindSafe for IncomingBlock<B> where
<B as Block>::Extrinsic: RefUnwindSafe,
<B as Block>::Hash: RefUnwindSafe,
<B as Block>::Header: RefUnwindSafe, impl<B> Send for IncomingBlock<B>impl<B> Sync for IncomingBlock<B>impl<B> Unpin for IncomingBlock<B> where
<B as Block>::Extrinsic: Unpin,
<B as Block>::Hash: Unpin,
<B as Block>::Header: Unpin, impl<B> UnwindSafe for IncomingBlock<B> where
<B as Block>::Extrinsic: UnwindSafe,
<B as Block>::Hash: UnwindSafe,
<B as Block>::Header: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any, Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
The counterpart to unchecked_from.
Consume self to return an equivalent value of T.
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug,