pub enum Error {
Io(Error),
AddrParse(AddrParseError),
Join(JoinError),
Closed,
ChannelClosed,
FrameTooLarge {
current: usize,
max: usize,
},
DatagramTooLarge {
current: usize,
max: usize,
},
Decode(String),
Encode(String),
Pipeline(String),
Tls(String),
MissingDatagramPeer,
}Expand description
Error type returned by rs-netty operations.
Variants§
Io(Error)
Underlying I/O error.
AddrParse(AddrParseError)
Socket address parsing failed.
Join(JoinError)
Tokio task join failed.
Closed
Connection or socket is closed.
ChannelClosed
Command channel is closed.
FrameTooLarge
Stream frame exceeded the configured limit.
DatagramTooLarge
Datagram payload exceeded the configured limit.
Decode(String)
Decoder returned an error.
Encode(String)
Encoder returned an error.
Pipeline(String)
Pipeline stage returned a framework-level error.
Tls(String)
TLS configuration or handshake failed.
MissingDatagramPeer
Datagram write required a default peer but none was available.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<AddrParseError> for Error
impl From<AddrParseError> for Error
Source§fn from(source: AddrParseError) -> Self
fn from(source: AddrParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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