Enum channel::message_queues::QueueStyle
source · pub enum QueueStyle {
LIFO,
FIFO,
KLAST,
}
Expand description
QueueStyle is an enum which can be used as a configuration option for PerValidatorQueue. Since the queue per key is going to be bounded, QueueStyle also determines the policy for dropping and retrieving messages.
With LIFO, oldest messages are dropped. With FIFO, newest messages are dropped. With KLAST, oldest messages are dropped, but remaining are retrieved in FIFO order
Variants§
Trait Implementations§
source§impl Clone for QueueStyle
impl Clone for QueueStyle
source§fn clone(&self) -> QueueStyle
fn clone(&self) -> QueueStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more