pub enum HttpClientError {
Show 26 variants
Closed,
NoClient,
Send,
Receive(Error),
ConnectTimeout,
RelayNodeNotAvail,
NoNodeForTarget(String),
StunOnlyNodesFound(String),
DialIO(Error),
DialTask(JoinError),
IPDisabled,
NoLocalAddr(String),
Hyper(Error),
Http(Error),
UnexpectedStatusCode(StatusCode, StatusCode),
Upgrade(String),
Proxy(String),
Build(String),
PingTimeout,
PingAborted,
CannotAckPings,
InvalidUrl(String),
Dns(Option<Error>),
DnsTimeout,
ActorGone,
WebsocketError(Error),
}
Expand description
Possible connection errors on the Client
Variants§
Closed
The client is closed
NoClient
There no underlying relay super::client::Client
client exists for this http relay Client
Send
There was an error sending a packet
Receive(Error)
There was an error receiving a packet
ConnectTimeout
There was a connection timeout error
RelayNodeNotAvail
No relay nodes are available
NoNodeForTarget(String)
No relay nodes are available with that name
StunOnlyNodesFound(String)
The relay node specified only allows STUN requests
DialIO(Error)
There was an error dialing
DialTask(JoinError)
There was an error from the task doing the dialing
IPDisabled
Both IPv4 and IPv6 are disabled for this relay node
NoLocalAddr(String)
No local addresses exist
Hyper(Error)
There was http server hyper::Error
Http(Error)
There was an http error http::Error
.
UnexpectedStatusCode(StatusCode, StatusCode)
There was an unexpected status code
Upgrade(String)
The connection failed to upgrade
Proxy(String)
The connection failed to proxy
Build(String)
The relay super::client::Client
failed to build
PingTimeout
The ping request timed out
PingAborted
The ping request was aborted
CannotAckPings
This Client
cannot acknowledge pings
InvalidUrl(String)
The given Url
is invalid
Dns(Option<Error>)
There was an error with DNS resolution
DnsTimeout
There was a timeout resolving DNS.
ActorGone
The inner actor is gone, likely means things are shutdown.
WebsocketError(Error)
An error related to websockets, either errors with parsing ws messages or the handshake
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Auto Trait Implementations§
impl !Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.