pub enum QueueEmptyBehavior {
Yes,
No,
Strict,
Unknown(String),
}Expand description
Whether callers may join, or are kept in, a queue with no available members. Used by both join_when_empty and leave_when_empty.
Variants§
Yes
Callers may join / remain with no members.
No
Callers may not join / are sent to failover.
Strict
Like No, but also applies when members are present yet all unavailable.
Unknown(String)
Any wire value this crate doesn’t recognize.
Implementations§
Trait Implementations§
Source§impl Clone for QueueEmptyBehavior
impl Clone for QueueEmptyBehavior
Source§fn clone(&self) -> QueueEmptyBehavior
fn clone(&self) -> QueueEmptyBehavior
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 moreSource§impl Debug for QueueEmptyBehavior
impl Debug for QueueEmptyBehavior
Source§impl<'de> Deserialize<'de> for QueueEmptyBehavior
impl<'de> Deserialize<'de> for QueueEmptyBehavior
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for QueueEmptyBehavior
impl Display for QueueEmptyBehavior
impl Eq for QueueEmptyBehavior
Source§impl Hash for QueueEmptyBehavior
impl Hash for QueueEmptyBehavior
Source§impl PartialEq for QueueEmptyBehavior
impl PartialEq for QueueEmptyBehavior
Source§fn eq(&self, other: &QueueEmptyBehavior) -> bool
fn eq(&self, other: &QueueEmptyBehavior) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QueueEmptyBehavior
impl Serialize for QueueEmptyBehavior
impl StructuralPartialEq for QueueEmptyBehavior
Auto Trait Implementations§
impl Freeze for QueueEmptyBehavior
impl RefUnwindSafe for QueueEmptyBehavior
impl Send for QueueEmptyBehavior
impl Sync for QueueEmptyBehavior
impl Unpin for QueueEmptyBehavior
impl UnsafeUnpin for QueueEmptyBehavior
impl UnwindSafe for QueueEmptyBehavior
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