pub enum OutStreamError {
IoError(Error),
Framing(FramingError),
}Expand description
Errors for possible problems writing packets.
When writing packets to be sent over the wire a few issues can appear, which are represented by this error.
Variants§
IoError(Error)
Some I/O related issue occurred. This generally means the underlying transport layer was disconnected or otherwise impaired.
Framing(FramingError)
Something went wrong when trying to create frame(s) for the packet. This currently can only happen if an encrypted frame is supposed to be built, but no encryption has been configured.
Trait Implementations§
Source§impl Debug for OutStreamError
impl Debug for OutStreamError
Source§impl Display for OutStreamError
impl Display for OutStreamError
Source§impl Error for OutStreamError
impl Error for OutStreamError
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()
Source§impl From<Error> for OutStreamError
impl From<Error> for OutStreamError
Source§impl From<FramingError> for OutStreamError
impl From<FramingError> for OutStreamError
Source§fn from(source: FramingError) -> Self
fn from(source: FramingError) -> Self
Converts to this type from the input type.
Source§impl From<OutStreamError> for HandshakeError
impl From<OutStreamError> for HandshakeError
Source§fn from(source: OutStreamError) -> Self
fn from(source: OutStreamError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutStreamError
impl !RefUnwindSafe for OutStreamError
impl Send for OutStreamError
impl Sync for OutStreamError
impl Unpin for OutStreamError
impl !UnwindSafe for OutStreamError
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