pub trait LazyExtrinsic: Sized {
// Required method
fn decode_unprefixed(data: &[u8]) -> Result<Self, Error>;
}Expand description
An extrinsic that can be lazily decoded.
Required Methods§
Sourcefn decode_unprefixed(data: &[u8]) -> Result<Self, Error>
fn decode_unprefixed(data: &[u8]) -> Result<Self, Error>
Try to decode the lazy extrinsic.
Usually an encoded extrinsic is composed of 2 parts:
- a
Compact<u32>prefix (len) - a blob of size
lenThis method expects to receive just the blob as a byte slice. The size of the blob is thelen.
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.