Trait tikv::server::raft_client::Buffer [−][src]
Associated Types
type OutputMessage
[src]
Required methods
fn full(&self) -> bool
[src]
Tests if it is full.
A full buffer should be flushed successfully before calling push
.
fn push(&mut self, msg: RaftMessage)
[src]
Pushes the message into buffer.
fn empty(&self) -> bool
[src]
Checks if the batch is empty.
fn flush(
&mut self,
sender: &mut ClientCStreamSender<Self::OutputMessage>
) -> Result<()>
[src]
&mut self,
sender: &mut ClientCStreamSender<Self::OutputMessage>
) -> Result<()>
Flushes the message to grpc.
sender
should be able to accept messages.
Implementors
impl Buffer for BatchMessageBuffer
[src]
type OutputMessage = BatchRaftMessage
fn full(&self) -> bool
[src]
fn push(&mut self, msg: RaftMessage)
[src]
fn empty(&self) -> bool
[src]
fn flush(
&mut self,
sender: &mut ClientCStreamSender<BatchRaftMessage>
) -> Result<()>
[src]
&mut self,
sender: &mut ClientCStreamSender<BatchRaftMessage>
) -> Result<()>