pub enum TransportError {
Closed {
code: u64,
},
Transport,
Timeout,
Reset {
code: u64,
},
Stopped {
code: u64,
},
Other,
}h3 only.Expand description
Errors surfaced by the QUIC transport abstraction
(crate::h3::transport).
Adapters translate their stack’s error types into these variants; the HTTP/3 layer never inspects stack-specific errors.
Variants§
Closed
The connection was closed by the peer with an application error
code (an HTTP/3 error code, or 0 for H3_NO_ERROR).
Transport
The connection was closed by transport-level events (for example a transport error, idle timeout, or a local close) without an application error code.
Timeout
The connection timed out.
Reset
The peer reset the stream (RESET_STREAM) with the given error
code; the read side of the stream is terminated.
Stopped
The peer sent STOP_SENDING with the given error code; the write
side of the stream is terminated.
Other
Any other transport-level failure.
Trait Implementations§
Source§impl Clone for TransportError
impl Clone for TransportError
Source§fn clone(&self) -> TransportError
fn clone(&self) -> TransportError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransportError
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
impl Eq for TransportError
Source§impl Error for TransportError
impl Error for TransportError
1.30.0 · 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
use the Display impl or to_string()