Struct txpool::ReplaceTransaction
source · [−]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
sourceimpl<'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
sourceimpl<'a, T> Deref for ReplaceTransaction<'a, T>
impl<'a, T> Deref for ReplaceTransaction<'a, T>
type Target = Transaction<T>
type Target = Transaction<T>
The resulting type after dereferencing.
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ReplaceTransaction<'a, T> where
T: RefUnwindSafe,
impl<'a, T> Send for ReplaceTransaction<'a, T> where
T: Send + Sync,
impl<'a, T> Sync for ReplaceTransaction<'a, T> where
T: Send + Sync,
impl<'a, T> Unpin for ReplaceTransaction<'a, T>
impl<'a, T> UnwindSafe for ReplaceTransaction<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more