pub enum WispError {
Show 24 variants
PacketTooSmall,
InvalidPacketType,
InvalidStreamId,
InvalidCloseReason,
InvalidUri,
UriHasNoHost,
UriHasNoPort,
MaxStreamCountReached,
IncompatibleProtocolVersion,
StreamAlreadyClosed,
WsFrameInvalidType,
WsFrameNotFinished,
WsImplError(Box<dyn Error + Sync + Send>),
WsImplSocketClosed,
WsImplNotSupported,
ExtensionImplError(Box<dyn Error + Sync + Send>),
ExtensionImplNotSupported,
ExtensionsNotSupported(Vec<u8>),
Utf8Error(Utf8Error),
TryFromIntError(TryFromIntError),
Other(Box<dyn Error + Sync + Send>),
MuxMessageFailedToSend,
MuxMessageFailedToRecv,
MuxTaskEnded,
}
Expand description
Errors the Wisp implementation can return.
Variants§
PacketTooSmall
The packet received did not have enough data.
InvalidPacketType
The packet received had an invalid type.
InvalidStreamId
The stream had an invalid ID.
InvalidCloseReason
The close packet had an invalid reason.
InvalidUri
The URI received was invalid.
UriHasNoHost
The URI received had no host.
UriHasNoPort
The URI received had no port.
MaxStreamCountReached
The max stream count was reached.
IncompatibleProtocolVersion
The Wisp protocol version was incompatible.
StreamAlreadyClosed
The stream had already been closed.
WsFrameInvalidType
The websocket frame received had an invalid type.
WsFrameNotFinished
The websocket frame received was not finished.
WsImplError(Box<dyn Error + Sync + Send>)
Error specific to the websocket implementation.
WsImplSocketClosed
The websocket implementation socket closed.
WsImplNotSupported
The websocket implementation did not support the action.
ExtensionImplError(Box<dyn Error + Sync + Send>)
Error specific to the protocol extension implementation.
ExtensionImplNotSupported
The protocol extension implementation did not support the action.
ExtensionsNotSupported(Vec<u8>)
The specified protocol extensions are not supported by the server.
Utf8Error(Utf8Error)
The string was invalid UTF-8.
TryFromIntError(TryFromIntError)
The integer failed to convert.
Other(Box<dyn Error + Sync + Send>)
Other error.
MuxMessageFailedToSend
Failed to send message to multiplexor task.
MuxMessageFailedToRecv
Failed to receive message from multiplexor task.
MuxTaskEnded
Multiplexor task ended.
Trait Implementations§
source§impl Error for WispError
impl Error for WispError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<TryFromIntError> for WispError
impl From<TryFromIntError> for WispError
source§fn from(value: TryFromIntError) -> Self
fn from(value: TryFromIntError) -> Self
source§impl From<WebSocketError> for WispError
Available on crate feature fastwebsockets
only.
impl From<WebSocketError> for WispError
fastwebsockets
only.