pub enum WSUrlErrorKind {
CannotSetFragment,
InvalidScheme,
NoHostName,
}
Expand description
Represents a WebSocket URL error
Variants§
CannotSetFragment
Fragments are not valid in a WebSocket URL
InvalidScheme
The scheme provided is invalid for a WebSocket
NoHostName
There is no hostname or IP address to connect to
Trait Implementations§
Source§impl Debug for WSUrlErrorKind
impl Debug for WSUrlErrorKind
Source§impl Display for WSUrlErrorKind
impl Display for WSUrlErrorKind
Source§impl Error for WSUrlErrorKind
impl Error for WSUrlErrorKind
1.30.0 · 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<WSUrlErrorKind> for WebSocketOtherError
impl From<WSUrlErrorKind> for WebSocketOtherError
Source§fn from(err: WSUrlErrorKind) -> WebSocketOtherError
fn from(err: WSUrlErrorKind) -> WebSocketOtherError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WSUrlErrorKind
impl RefUnwindSafe for WSUrlErrorKind
impl Send for WSUrlErrorKind
impl Sync for WSUrlErrorKind
impl Unpin for WSUrlErrorKind
impl UnwindSafe for WSUrlErrorKind
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