Struct txpool::NoopListener
source · [−]pub struct NoopListener;
Expand description
A no-op implementation of Listener
.
Trait Implementations
sourceimpl Debug for NoopListener
impl Debug for NoopListener
sourceimpl<T> Listener<T> for NoopListener
impl<T> Listener<T> for NoopListener
sourcefn added(&mut self, _tx: &Arc<T>, _old: Option<&Arc<T>>)
fn added(&mut self, _tx: &Arc<T>, _old: Option<&Arc<T>>)
The transaction has been successfuly added to the pool.
If second argument is Some
the transaction has took place of some other transaction
which was already in pool.
NOTE: You won’t be notified about drop of old
transaction separately. Read more
sourcefn rejected<H: Debug + LowerHex>(&mut self, _tx: &Arc<T>, _reason: &Error<H>)
fn rejected<H: Debug + LowerHex>(&mut self, _tx: &Arc<T>, _reason: &Error<H>)
The transaction was rejected from the pool. It means that it was too cheap to replace any transaction already in the pool. Read more
Auto Trait Implementations
impl RefUnwindSafe for NoopListener
impl Send for NoopListener
impl Sync for NoopListener
impl Unpin for NoopListener
impl UnwindSafe for NoopListener
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