pub enum WsConfigError {
MissingScheme,
UnknownScheme,
MissingHost,
Parse(InvalidUrl),
}Expand description
Errors produced while configuring a WebSocket client.
Variants§
MissingScheme
The URI does not contain a scheme.
UnknownScheme
The URI uses an unsupported scheme.
MissingHost
The URI does not contain a host.
Parse(InvalidUrl)
The URI could not be parsed.
Trait Implementations§
Source§impl Clone for WsConfigError
impl Clone for WsConfigError
Source§fn clone(&self) -> WsConfigError
fn clone(&self) -> WsConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsConfigError
impl Debug for WsConfigError
Source§impl Display for WsConfigError
impl Display for WsConfigError
Source§impl Error for WsConfigError
impl Error for WsConfigError
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<Infallible> for WsConfigError
impl From<Infallible> for WsConfigError
Source§fn from(err: Infallible) -> WsConfigError
fn from(err: Infallible) -> WsConfigError
Converts to this type from the input type.
Source§impl From<InvalidUrl> for WsConfigError
impl From<InvalidUrl> for WsConfigError
Source§fn from(source: InvalidUrl) -> Self
fn from(source: InvalidUrl) -> Self
Converts to this type from the input type.
Source§impl From<WsConfigError> for WsClientError
impl From<WsConfigError> for WsClientError
Source§fn from(source: WsConfigError) -> Self
fn from(source: WsConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WsConfigError
impl RefUnwindSafe for WsConfigError
impl Send for WsConfigError
impl Sync for WsConfigError
impl Unpin for WsConfigError
impl UnsafeUnpin for WsConfigError
impl UnwindSafe for WsConfigError
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