Struct transaction_pool::NoopListener [−][src]
pub struct NoopListener;
A no-op implementation of Listener.
Trait Implementations
impl Debug for NoopListener[src]
impl Debug for NoopListenerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<T> Listener<T> for NoopListener[src]
impl<T> Listener<T> for NoopListenerfn added(&mut self, _tx: &Arc<T>, _old: Option<&Arc<T>>)[src]
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
fn rejected(&mut self, _tx: &Arc<T>, _reason: &ErrorKind)[src]
fn rejected(&mut self, _tx: &Arc<T>, _reason: &ErrorKind)The transaction was rejected from the pool. It means that it was too cheap to replace any transaction already in the pool. Read more
fn dropped(&mut self, _tx: &Arc<T>, _by: Option<&T>)[src]
fn dropped(&mut self, _tx: &Arc<T>, _by: Option<&T>)The transaction was pushed out from the pool because of the limit.
fn invalid(&mut self, _tx: &Arc<T>)[src]
fn invalid(&mut self, _tx: &Arc<T>)The transaction was marked as invalid by executor.
fn canceled(&mut self, _tx: &Arc<T>)[src]
fn canceled(&mut self, _tx: &Arc<T>)The transaction has been canceled.
fn mined(&mut self, _tx: &Arc<T>)[src]
fn mined(&mut self, _tx: &Arc<T>)The transaction has been mined.
Auto Trait Implementations
impl Send for NoopListener
impl Send for NoopListenerimpl Sync for NoopListener
impl Sync for NoopListener