pub enum ConnectionWriteError {
ConnectionClosed,
IoError(Error),
}Expand description
Encountered when there is an issue with writing messages on the network stream.
Variants§
ConnectionClosed
Encountered when trying to send a message while the connection is closed.
IoError(Error)
Encountered when there is an IO-level error with the connection.
Trait Implementations§
Source§impl Debug for ConnectionWriteError
impl Debug for ConnectionWriteError
Source§impl Display for ConnectionWriteError
impl Display for ConnectionWriteError
Source§impl Error for ConnectionWriteError
impl Error for ConnectionWriteError
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 Freeze for ConnectionWriteError
impl !RefUnwindSafe for ConnectionWriteError
impl Send for ConnectionWriteError
impl Sync for ConnectionWriteError
impl Unpin for ConnectionWriteError
impl !UnwindSafe for ConnectionWriteError
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