pub enum QueueFullPolicy {
Block,
Drop,
}Expand description
Policy when the ring buffer is full.
Variants§
Block
Block (spin + backoff) until a slot becomes available.
Drop
Immediately return AppendError::QueueFull.
Trait Implementations§
Source§impl Clone for QueueFullPolicy
impl Clone for QueueFullPolicy
Source§fn clone(&self) -> QueueFullPolicy
fn clone(&self) -> QueueFullPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueueFullPolicy
Source§impl Debug for QueueFullPolicy
impl Debug for QueueFullPolicy
impl Eq for QueueFullPolicy
Source§impl PartialEq for QueueFullPolicy
impl PartialEq for QueueFullPolicy
Source§fn eq(&self, other: &QueueFullPolicy) -> bool
fn eq(&self, other: &QueueFullPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QueueFullPolicy
Auto Trait Implementations§
impl Freeze for QueueFullPolicy
impl RefUnwindSafe for QueueFullPolicy
impl Send for QueueFullPolicy
impl Sync for QueueFullPolicy
impl Unpin for QueueFullPolicy
impl UnsafeUnpin for QueueFullPolicy
impl UnwindSafe for QueueFullPolicy
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