#[non_exhaustive]pub enum Error {
SendStreamToClient,
Closed,
PeerUnsupportedOperation,
UnsupportedOperation,
FlowIdRejected,
WebSocket(Box<dyn Error + Send>),
DatagramHostTooLong,
InvalidFrame(Error),
TextMessage,
ConnAckGone,
ChannelClosed(&'static str),
}Expand description
Multiplexor error
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SendStreamToClient
Requester exited before receiving the stream
(i.e. the Receiver was dropped before the task could send the stream).
Closed
The multiplexor is closed.
PeerUnsupportedOperation
The peer does not support the requested operation.
UnsupportedOperation
This Multiplexor is not configured for this operation.
FlowIdRejected
Peer rejected the flow ID selection.
WebSocket(Box<dyn Error + Send>)
WebSocket errors
DatagramHostTooLong
A Datagram frame with a target host longer than 255 octets.
InvalidFrame(Error)
Received an invalid frame.
TextMessage
The peer sent a Text message.
“The client and server MUST NOT use other WebSocket data frame types”
ConnAckGone
A Acknowledge frame that does not match any pending Connect request.
ChannelClosed(&'static str)
An internal channel closed
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()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl !Sync for Error
impl Unpin 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