pub struct BatchSummary {
pub total: usize,
pub succeeded: usize,
pub failed: usize,
pub pending: usize,
pub total_gas_used: u64,
}Expand description
Summary of batch execution results.
Fields§
§total: usizeTotal number of transactions.
succeeded: usizeNumber of successful transactions.
failed: usizeNumber of failed transactions.
pending: usizeNumber of pending transactions.
total_gas_used: u64Total gas used across all confirmed transactions.
Implementations§
Source§impl BatchSummary
impl BatchSummary
Sourcepub fn from_results(results: &[BatchTransactionResult]) -> Self
pub fn from_results(results: &[BatchTransactionResult]) -> Self
Creates a summary from batch results.
Sourcepub fn all_succeeded(&self) -> bool
pub fn all_succeeded(&self) -> bool
Returns true if all transactions succeeded.
Sourcepub fn has_failures(&self) -> bool
pub fn has_failures(&self) -> bool
Returns true if any transaction failed.
Trait Implementations§
Source§impl Clone for BatchSummary
impl Clone for BatchSummary
Source§fn clone(&self) -> BatchSummary
fn clone(&self) -> BatchSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BatchSummary
impl RefUnwindSafe for BatchSummary
impl Send for BatchSummary
impl Sync for BatchSummary
impl Unpin for BatchSummary
impl UnsafeUnpin for BatchSummary
impl UnwindSafe for BatchSummary
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