#[non_exhaustive]pub enum Error {
#[non_exhaustive] Closed {
initiator: Location,
source: &'static Location<'static>,
},
#[non_exhaustive] Transport {
code: Code,
frame_type: u64,
reason: &'static str,
initiator: Location,
source: &'static Location<'static>,
},
#[non_exhaustive] Application {
error: Error,
initiator: Location,
source: &'static Location<'static>,
},
#[non_exhaustive] StatelessReset {
source: &'static Location<'static>,
},
#[non_exhaustive] IdleTimerExpired {
source: &'static Location<'static>,
},
#[non_exhaustive] NoValidPath {
source: &'static Location<'static>,
},
#[non_exhaustive] StreamIdExhausted {
source: &'static Location<'static>,
},
#[non_exhaustive] MaxHandshakeDurationExceeded {
max_handshake_duration: Duration,
source: &'static Location<'static>,
},
#[non_exhaustive] ImmediateClose {
reason: &'static str,
source: &'static Location<'static>,
},
#[non_exhaustive] EndpointClosing {
source: &'static Location<'static>,
},
#[non_exhaustive] InvalidConfiguration {
reason: &'static str,
source: &'static Location<'static>,
},
#[non_exhaustive] Unspecified {
source: &'static Location<'static>,
},
}
Expand description
Errors that a connection can encounter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
#[non_exhaustive]Closed
The connection was closed without an error
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]Transport
The connection was closed on the transport level
This can occur either locally or by the peer. The argument contains the error code which the transport provided in order to close the connection.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]Application
The connection was closed on the application level
This can occur either locally or by the peer. The argument contains the error code which the application/ supplied in order to close the connection.
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]StatelessReset
The connection was reset by a stateless reset from the peer
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]IdleTimerExpired
The connection was closed because the local connection’s idle timer expired
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]NoValidPath
The connection was closed because there are no valid paths
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]StreamIdExhausted
All Stream IDs for Streams on the given connection had been exhausted
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]MaxHandshakeDurationExceeded
The handshake has taken longer to complete than the configured max handshake duration
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]ImmediateClose
The connection should be closed immediately without notifying the peer
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]EndpointClosing
The connection attempt was rejected because the endpoint is closing
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]InvalidConfiguration
The connection was closed due to invalid Application provided configuration
Fields
This variant is marked as non-exhaustive
#[non_exhaustive]Unspecified
The connection was closed due to an unspecified reason