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