pub enum SendError {
Empty,
Address(String),
Malformed,
Rate {
to: String,
wait_s: i64,
},
Steer {
kind: Kind,
why: NoSteer,
},
Io(Error),
}Expand description
Why a message was not sent.
Variants§
Empty
Address(String)
The recipient names no one (the reason).
Malformed
A field well_formed refuses: every reader would drop the line.
Rate
The sender messaged this recipient within RATE_MS.
Steer
A steer for another node from a node the held membership does not let steer (steer_right).
Io(Error)
Trait Implementations§
Source§impl Error for SendError
impl Error for SendError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SendError
impl !UnwindSafe for SendError
impl Freeze for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnsafeUnpin for SendError
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