Trait raftstore::store::transport::Transport[][src]

pub trait Transport: Send + Clone {
    fn send(&mut self, msg: RaftMessage) -> Result<()>;
fn need_flush(&self) -> bool;
fn flush(&mut self); }

Transports messages between different Raft peers.

Required methods

fn send(&mut self, msg: RaftMessage) -> Result<()>[src]

fn need_flush(&self) -> bool[src]

fn flush(&mut self)[src]

Loading content...

Implementors

Loading content...