pub enum WebsocketError {
GhostError(GhostError),
Io(Error),
Infallible(Infallible),
SerializedBytesError(SerializedBytesError),
FailedToRecvResp,
FailedToSendResp,
RespTimeout,
Shutdown,
}
Variants§
GhostError(GhostError)
Io(Error)
Infallible(Infallible)
SerializedBytesError(SerializedBytesError)
FailedToRecvResp
FailedToSendResp
RespTimeout
Shutdown
Trait Implementations§
source§impl Debug for WebsocketError
impl Debug for WebsocketError
source§impl Display for WebsocketError
impl Display for WebsocketError
source§impl Error for WebsocketError
impl Error for WebsocketError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 WebsocketError
impl From<Error> for WebsocketError
source§impl From<GhostError> for WebsocketError
impl From<GhostError> for WebsocketError
source§fn from(source: GhostError) -> Self
fn from(source: GhostError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for WebsocketError
impl From<Infallible> for WebsocketError
source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
source§impl From<SerializedBytesError> for WebsocketError
impl From<SerializedBytesError> for WebsocketError
source§fn from(source: SerializedBytesError) -> Self
fn from(source: SerializedBytesError) -> Self
Converts to this type from the input type.