pub struct PendingBlock { /* private fields */ }Expand description
A block under construction with ordered transactions and post-execution account state.
Implementations§
Source§impl PendingBlock
impl PendingBlock
pub fn new( block: Block, txs: Vec<TxInput>, accounts: HashMap<Address, AccountDelta>, ) -> Self
Sourcepub fn block(&self) -> &Block
pub fn block(&self) -> &Block
The block being assembled; its number and timestamp are the transaction execution clock.
Sourcepub fn accounts(&self) -> &HashMap<Address, AccountDelta>
pub fn accounts(&self) -> &HashMap<Address, AccountDelta>
Post-execution state for accounts touched by the transactions. May be empty when no consuming indexer needs account state.
Trait Implementations§
Source§impl Clone for PendingBlock
impl Clone for PendingBlock
Source§fn clone(&self) -> PendingBlock
fn clone(&self) -> PendingBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingBlock
impl Debug for PendingBlock
Source§impl Default for PendingBlock
impl Default for PendingBlock
Source§fn default() -> PendingBlock
fn default() -> PendingBlock
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PendingBlock
impl RefUnwindSafe for PendingBlock
impl Send for PendingBlock
impl Sync for PendingBlock
impl Unpin for PendingBlock
impl UnsafeUnpin for PendingBlock
impl UnwindSafe for PendingBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more