pub struct ReplaceTransaction<'a, T> {
pub transaction: &'a Transaction<T>,
pub pooled_by_sender: Option<&'a [Transaction<T>]>,
}Expand description
Encapsulates a transaction to be compared, along with pooled transactions from the same sender
Fields§
§transaction: &'a Transaction<T>The transaction to be compared for replacement
pooled_by_sender: Option<&'a [Transaction<T>]>Other transactions currently in the pool for the same sender
Implementations§
Source§impl<'a, T> ReplaceTransaction<'a, T>
impl<'a, T> ReplaceTransaction<'a, T>
Sourcepub fn new(
transaction: &'a Transaction<T>,
pooled_by_sender: Option<&'a [Transaction<T>]>,
) -> Self
pub fn new( transaction: &'a Transaction<T>, pooled_by_sender: Option<&'a [Transaction<T>]>, ) -> Self
Creates a new ReplaceTransaction
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for ReplaceTransaction<'a, T>
impl<'a, T> RefUnwindSafe for ReplaceTransaction<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ReplaceTransaction<'a, T>
impl<'a, T> Sync for ReplaceTransaction<'a, T>
impl<'a, T> Unpin for ReplaceTransaction<'a, T>
impl<'a, T> UnwindSafe for ReplaceTransaction<'a, T>where
T: RefUnwindSafe,
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