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 moresource§impl Debug for QueueStyle
impl Debug for QueueStyle
impl Copy for QueueStyle
Auto Trait Implementations§
impl RefUnwindSafe for QueueStyle
impl Send for QueueStyle
impl Sync for QueueStyle
impl Unpin for QueueStyle
impl UnwindSafe for QueueStyle
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more