Struct SlotResult

Source
pub struct SlotResult<S, B, T, W> {
    pub state_root: S,
    pub batch_receipts: Vec<BatchReceipt<B, T>>,
    pub witness: W,
}
Expand description

Result of applying a slot to current state Where:

  • S - generic for state root
  • B - generic for batch receipt contents
  • T - generic for transaction receipt contents
  • W - generic for witness

Fields§

§state_root: S

Final state root after all blobs were applied

§batch_receipts: Vec<BatchReceipt<B, T>>

Receipt for each applied batch

§witness: W

Witness after applying the whole block

Auto Trait Implementations§

§

impl<S, B, T, W> Freeze for SlotResult<S, B, T, W>
where S: Freeze, W: Freeze,

§

impl<S, B, T, W> RefUnwindSafe for SlotResult<S, B, T, W>

§

impl<S, B, T, W> Send for SlotResult<S, B, T, W>
where S: Send, W: Send, B: Send, T: Send,

§

impl<S, B, T, W> Sync for SlotResult<S, B, T, W>
where S: Sync, W: Sync, B: Sync, T: Sync,

§

impl<S, B, T, W> Unpin for SlotResult<S, B, T, W>
where S: Unpin, W: Unpin, B: Unpin, T: Unpin,

§

impl<S, B, T, W> UnwindSafe for SlotResult<S, B, T, W>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.