Enum wtransport::error::ConnectingError
source · pub enum ConnectingError {
InvalidUrl(String),
DnsLookup(Error),
DnsNotFound,
ConnectionError(ConnectionError),
SessionRejected,
ReservedHeader(String),
EndpointStopping,
CidsExhausted,
InvalidServerName(String),
InvalidRemoteAddress(SocketAddr),
}
Expand description
An enumeration representing various errors that can occur during a WebTransport client connecting.
Variants§
InvalidUrl(String)
URL provided for connection is not valid.
DnsLookup(Error)
Failure during DNS resolution.
DnsNotFound
Cannot find any DNS.
ConnectionError(ConnectionError)
Connection error during handshaking.
SessionRejected
Request rejected.
ReservedHeader(String)
Cannot use reserved key for additional headers.
EndpointStopping
The endpoint can no longer create new connections
Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.
CidsExhausted
The connection could not be created because not enough of the CID space is available
Try using longer connection IDs
InvalidServerName(String)
The server name supplied was malformed
InvalidRemoteAddress(SocketAddr)
The remote SocketAddr
supplied was malformed.
Examples include attempting to connect to port 0, or using an inappropriate address family.
Trait Implementations§
source§impl Debug for ConnectingError
impl Debug for ConnectingError
source§impl Display for ConnectingError
impl Display for ConnectingError
source§impl Error for ConnectingError
impl Error for ConnectingError
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 ConnectingError
impl !RefUnwindSafe for ConnectingError
impl Send for ConnectingError
impl Sync for ConnectingError
impl Unpin for ConnectingError
impl !UnwindSafe for ConnectingError
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
Mutably borrows from an owned value. Read more
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<S> IntoConnectOptions for Swhere
S: ToString,
impl<S> IntoConnectOptions for Swhere
S: ToString,
source§fn into_options(self) -> ConnectOptions
fn into_options(self) -> ConnectOptions
Perform value-to-value conversion into
ConnectOptions
.