pub enum ServerError {
Show 15 variants
Config(ConfigError),
Connection(ConnectionError),
Handshake(HandshakeError),
Protocol(ProtocolError),
Transport(TransportError),
Handler(HandlerError),
Manager(ManagerError),
Io(Error),
Core(Error),
Timeout {
duration: Duration,
},
Capacity(String),
Authentication(String),
Authorization(String),
RateLimit(String),
Internal(String),
}Expand description
Server-specific errors
Variants§
Config(ConfigError)
Configuration error
Connection(ConnectionError)
Connection error
Handshake(HandshakeError)
Handshake error
Protocol(ProtocolError)
Protocol error
Transport(TransportError)
Transport error
Handler(HandlerError)
Handler error
Manager(ManagerError)
Manager error
Io(Error)
I/O error
Core(Error)
Core error
Timeout
Timeout error
Capacity(String)
Capacity error
Authentication(String)
Authentication error
Authorization(String)
Authorization error
RateLimit(String)
Rate limit error
Internal(String)
Internal error
Trait Implementations§
Source§impl Debug for ServerError
impl Debug for ServerError
Source§impl Display for ServerError
impl Display for ServerError
Source§impl Error for ServerError
impl Error for ServerError
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<ConfigError> for ServerError
impl From<ConfigError> for ServerError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ConnectionError> for ServerError
impl From<ConnectionError> for ServerError
Source§fn from(source: ConnectionError) -> Self
fn from(source: ConnectionError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<Error> for ServerError
impl From<Error> for ServerError
Source§impl From<HandlerError> for ServerError
impl From<HandlerError> for ServerError
Source§fn from(source: HandlerError) -> Self
fn from(source: HandlerError) -> Self
Converts to this type from the input type.
Source§impl From<HandshakeError> for ServerError
impl From<HandshakeError> for ServerError
Source§fn from(source: HandshakeError) -> Self
fn from(source: HandshakeError) -> Self
Converts to this type from the input type.
Source§impl From<ManagerError> for ServerError
impl From<ManagerError> for ServerError
Source§fn from(source: ManagerError) -> Self
fn from(source: ManagerError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for ServerError
impl From<ProtocolError> for ServerError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ServerError> for Error
impl From<ServerError> for Error
Source§fn from(err: ServerError) -> Self
fn from(err: ServerError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for ServerError
impl From<TransportError> for ServerError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServerError
impl !RefUnwindSafe for ServerError
impl Send for ServerError
impl Sync for ServerError
impl Unpin for ServerError
impl !UnwindSafe for ServerError
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