#[non_exhaustive]pub enum H3ConnectionError {
ControllerWentAway,
H3(Error),
GoAway,
NonexistentStream,
PostAcceptTimeout,
}
Expand description
The error type used internally in H3Driver.
Note that ApplicationOverQuic
errors are not exposed to users at this
time. The type is public to document the failure modes in H3Driver.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ControllerWentAway
The controller task was shut down and is no longer listening.
H3(Error)
Other error at the connection, but not stream level.
GoAway
Received a GOAWAY frame from the peer.
NonexistentStream
Received data for a stream that was closed or never opened.
PostAcceptTimeout
The server’s post-accept timeout was hit.
The timeout can be configured in Http3Settings
.
Trait Implementations§
Source§impl Debug for H3ConnectionError
impl Debug for H3ConnectionError
Source§impl Display for H3ConnectionError
impl Display for H3ConnectionError
Source§impl Error for H3ConnectionError
impl Error for H3ConnectionError
1.30.0 · 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<Error> for H3ConnectionError
impl From<Error> for H3ConnectionError
Source§impl From<Error> for H3ConnectionError
impl From<Error> for H3ConnectionError
Source§impl PartialEq for H3ConnectionError
impl PartialEq for H3ConnectionError
impl Eq for H3ConnectionError
impl StructuralPartialEq for H3ConnectionError
Auto Trait Implementations§
impl Freeze for H3ConnectionError
impl RefUnwindSafe for H3ConnectionError
impl Send for H3ConnectionError
impl Sync for H3ConnectionError
impl Unpin for H3ConnectionError
impl UnwindSafe for H3ConnectionError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more