pub struct NoopListener;Expand description
A no-op implementation of Listener.
Trait Implementations§
Source§impl Debug for NoopListener
impl Debug for NoopListener
Source§impl<T> Listener<T> for NoopListener
impl<T> Listener<T> for NoopListener
Source§fn 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 successfully 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.Source§fn 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.
Auto Trait Implementations§
impl Freeze for NoopListener
impl RefUnwindSafe for NoopListener
impl Send for NoopListener
impl Sync for NoopListener
impl Unpin for NoopListener
impl UnwindSafe for NoopListener
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