pub enum HandleRequestError<Req> {
MissingPermissibleCommunicationLenghts,
ResponderAlreadyExists,
TagAlreadyInUse(Communication<Req>),
ResponseChannelDisconnected,
WebSocket(Error),
}Variants§
MissingPermissibleCommunicationLenghts
ResponderAlreadyExists
TagAlreadyInUse(Communication<Req>)
ResponseChannelDisconnected
WebSocket(Error)
Implementations§
Trait Implementations§
Source§impl<Req: Debug> Debug for HandleRequestError<Req>
impl<Req: Debug> Debug for HandleRequestError<Req>
Source§impl<Req> Display for HandleRequestError<Req>where
Communication<Req>: Debug,
impl<Req> Display for HandleRequestError<Req>where
Communication<Req>: Debug,
Source§impl<Req> Error for HandleRequestError<Req>
impl<Req> Error for HandleRequestError<Req>
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<Req> From<Error> for HandleRequestError<Req>
impl<Req> From<Error> for HandleRequestError<Req>
Source§fn from(source: TungsteniteError) -> Self
fn from(source: TungsteniteError) -> Self
Converts to this type from the input type.
Source§impl<Req, Resp> From<HandleRequestError<Req>> for WebSocketClientError<Req, Resp>
impl<Req, Resp> From<HandleRequestError<Req>> for WebSocketClientError<Req, Resp>
Source§fn from(source: HandleRequestError<Req>) -> Self
fn from(source: HandleRequestError<Req>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Req> !Freeze for HandleRequestError<Req>
impl<Req> !RefUnwindSafe for HandleRequestError<Req>
impl<Req> Send for HandleRequestError<Req>where
Req: Send,
impl<Req> Sync for HandleRequestError<Req>where
Req: Sync,
impl<Req> Unpin for HandleRequestError<Req>where
Req: Unpin,
impl<Req> !UnwindSafe for HandleRequestError<Req>
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