pub enum RelayRefusal {
TooLarge,
QueueFull,
UnknownRecipient,
}Expand description
Why the relay refused a send.
Variants§
TooLarge
The message is over the relay’s per-message size limit. Permanent: a smaller message, not a retry.
QueueFull
The recipient’s queue is at its count or byte budget. Transient: retry after it drains.
UnknownRecipient
The recipient’s device is not registered.
Trait Implementations§
Source§impl Clone for RelayRefusal
impl Clone for RelayRefusal
Source§fn clone(&self) -> RelayRefusal
fn clone(&self) -> RelayRefusal
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 RelayRefusal
Source§impl Debug for RelayRefusal
impl Debug for RelayRefusal
impl Eq for RelayRefusal
Source§impl PartialEq for RelayRefusal
impl PartialEq for RelayRefusal
Source§fn eq(&self, other: &RelayRefusal) -> bool
fn eq(&self, other: &RelayRefusal) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RelayRefusal
Auto Trait Implementations§
impl Freeze for RelayRefusal
impl RefUnwindSafe for RelayRefusal
impl Send for RelayRefusal
impl Sync for RelayRefusal
impl Unpin for RelayRefusal
impl UnsafeUnpin for RelayRefusal
impl UnwindSafe for RelayRefusal
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