Trait test_raftstore::transport_simulate::Filter[][src]

pub trait Filter: Send + Sync {
    fn before(&self, msgs: &mut Vec<RaftMessage>) -> Result<()>;

    fn after(&self, res: Result<()>) -> Result<()> { ... }
}

Required methods

fn before(&self, msgs: &mut Vec<RaftMessage>) -> Result<()>[src]

before is run before sending the messages.

Loading content...

Provided methods

fn after(&self, res: Result<()>) -> Result<()>[src]

after is run after sending the messages, so that the returned value could be changed if necessary.

Loading content...

Implementors

impl Filter for CollectSnapshotFilter[src]

impl Filter for DelayFilter[src]

impl Filter for DropMessageFilter[src]

impl Filter for DropPacketFilter[src]

impl Filter for DropSnapshotFilter[src]

impl Filter for LeadingDuplicatedSnapshotFilter[src]

impl Filter for LeadingFilter[src]

impl Filter for LeaseReadFilter[src]

impl Filter for MessageTypeNotifier[src]

impl Filter for PartitionFilter[src]

impl Filter for RandomLatencyFilter[src]

impl Filter for RecvSnapshotFilter[src]

impl Filter for RegionPacketFilter[src]

impl Filter for SnapshotFilter[src]

Loading content...