pub enum ProtocolSenderStatus {
Healthy,
BackoffStarts,
InBackoff,
BackoffEnds,
}
Expand description
Returned by ProtocolSender::send to notify the caller about the state of the underlying mpsc::channel. None of these status codes should be considered an error state, they are purely informational.
Variants§
Healthy
channel is accepting new messages.
BackoffStarts
channel has rejected its first message.
InBackoff
channel is not accepting new messages.
BackoffEnds
channel has begun accepting messages again.
Trait Implementations§
Source§impl Clone for ProtocolSenderStatus
impl Clone for ProtocolSenderStatus
Source§fn clone(&self) -> ProtocolSenderStatus
fn clone(&self) -> ProtocolSenderStatus
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 ProtocolSenderStatus
impl Debug for ProtocolSenderStatus
Source§impl PartialEq for ProtocolSenderStatus
impl PartialEq for ProtocolSenderStatus
impl Copy for ProtocolSenderStatus
impl Eq for ProtocolSenderStatus
impl StructuralPartialEq for ProtocolSenderStatus
Auto Trait Implementations§
impl Freeze for ProtocolSenderStatus
impl RefUnwindSafe for ProtocolSenderStatus
impl Send for ProtocolSenderStatus
impl Sync for ProtocolSenderStatus
impl Unpin for ProtocolSenderStatus
impl UnwindSafe for ProtocolSenderStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)