pub trait LazyBlock:
Debug
+ Encode
+ Decode
+ Sized {
type Extrinsic: LazyExtrinsic;
type Header: Header;
// Required methods
fn header(&self) -> &Self::Header;
fn header_mut(&mut self) -> &mut Self::Header;
fn extrinsics(&self) -> impl Iterator<Item = Result<Self::Extrinsic, Error>>;
}Expand description
A Substrate block that allows us to lazily decode its extrinsics.
Required Associated Types§
Sourcetype Extrinsic: LazyExtrinsic
type Extrinsic: LazyExtrinsic
Type for the decoded extrinsics.
Required Methods§
Sourcefn header_mut(&mut self) -> &mut Self::Header
fn header_mut(&mut self) -> &mut Self::Header
Returns a mut reference to the header.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.