pub enum WebSocketUrlError {
Parse(ParseError),
InvalidScheme,
Credentials,
MissingHost,
NonLoopbackHost,
InvalidEndpoint,
}Expand description
Errors returned when a daemon WebSocket URL is not a safe attach endpoint.
Variants§
Parse(ParseError)
The URL could not be parsed.
InvalidScheme
The URL does not use WebSocket transport.
Credentials
The URL embeds credentials.
MissingHost
The URL has no host.
NonLoopbackHost
The URL host is not loopback.
InvalidEndpoint
The URL does not target the exact daemon endpoint.
Trait Implementations§
Source§impl Debug for WebSocketUrlError
impl Debug for WebSocketUrlError
Source§impl Display for WebSocketUrlError
impl Display for WebSocketUrlError
Source§impl Error for WebSocketUrlError
impl Error for WebSocketUrlError
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 WebSocketUrlError
impl RefUnwindSafe for WebSocketUrlError
impl Send for WebSocketUrlError
impl Sync for WebSocketUrlError
impl Unpin for WebSocketUrlError
impl UnsafeUnpin for WebSocketUrlError
impl UnwindSafe for WebSocketUrlError
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