[−][src]Struct sc_block_builder::BuiltBlock
A block that was build by BlockBuilder
plus some additional data.
This additional data includes the storage_changes
, these changes can be applied to the
backend to get the state of the block. Furthermore an optional proof
is included which
can be used to proof that the build block contains the expected data. The proof
will
only be set when proof recording was activated.
Fields
block: Block
The actual block that was build.
storage_changes: StorageChanges<StateBackend, Block>
The changes that need to be applied to the backend to get the state of the build block.
proof: Option<StorageProof>
An optional proof that was recorded while building the block.
Methods
impl<Block: BlockT, StateBackend: StateBackend<HasherFor<Block>>> BuiltBlock<Block, StateBackend>
[src]
pub fn into_inner(
self
) -> (Block, StorageChanges<StateBackend, Block>, Option<StorageProof>)
[src]
self
) -> (Block, StorageChanges<StateBackend, Block>, Option<StorageProof>)
Convert into the inner values.
Auto Trait Implementations
impl<Block, StateBackend> RefUnwindSafe for BuiltBlock<Block, StateBackend> where
Block: RefUnwindSafe,
<Block as Block>::Hash: RefUnwindSafe,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + RefUnwindSafe,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: RefUnwindSafe,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: RefUnwindSafe,
Block: RefUnwindSafe,
<Block as Block>::Hash: RefUnwindSafe,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + RefUnwindSafe,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: RefUnwindSafe,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: RefUnwindSafe,
impl<Block, StateBackend> Send for BuiltBlock<Block, StateBackend> where
<Block as Block>::Hash: Send,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Send,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Send,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Send,
<Block as Block>::Hash: Send,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Send,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Send,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Send,
impl<Block, StateBackend> Sync for BuiltBlock<Block, StateBackend> where
<Block as Block>::Hash: Sync,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Sync,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Sync,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Sync,
<Block as Block>::Hash: Sync,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Sync,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Sync,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Sync,
impl<Block, StateBackend> Unpin for BuiltBlock<Block, StateBackend> where
Block: Unpin,
<Block as Block>::Hash: Unpin,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Unpin,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Unpin,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Unpin,
Block: Unpin,
<Block as Block>::Hash: Unpin,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + Unpin,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: Unpin,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: Unpin,
impl<Block, StateBackend> UnwindSafe for BuiltBlock<Block, StateBackend> where
Block: UnwindSafe,
<Block as Block>::Hash: UnwindSafe,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + UnwindSafe,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: UnwindSafe,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: UnwindSafe,
Block: UnwindSafe,
<Block as Block>::Hash: UnwindSafe,
<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher: Hasher + UnwindSafe,
<<Block as Block>::Header as Header>::Hashing: Hash,
<Block as Block>::Header: Header,
<<Block as Block>::Header as Header>::Number: UnwindSafe,
<StateBackend as Backend<<<<Block as Block>::Header as Header>::Hashing as Hash>::Hasher>>::Transaction: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
[src]
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
T: Bounded,
fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,