#[non_exhaustive]pub enum Error {
Show 15 variants
ConnectionClosed,
ConnectionClosing,
InvalidConnection,
Connect(ConnectError),
Connection(ConnectionError),
Write(WriteError),
Read(ReadError),
Readable(ReadableError),
StreamClosed,
StreamStopped(VarInt),
DatagramDisabled,
DatagramUnsupportedByPeer,
DatagramTooLarge,
DatagramBlocked(Bytes),
Io(Error),
}Expand description
Errors returned by ringline-quic operations.
Marked #[non_exhaustive] because the crate is still evolving and new
transport-layer error kinds are expected. Downstream match blocks must
include a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConnectionClosed
ConnectionClosing
The connection has been locally closed but quinn-proto is still in
its draining window — distinguished from ConnectionClosed so
callers don’t retry sends in a tight loop.
InvalidConnection
Connect(ConnectError)
Connection(ConnectionError)
Write(WriteError)
Read(ReadError)
Readable(ReadableError)
StreamClosed
Operation targeted a stream that has already been finished, reset, or stopped. Distinguished from connection-level closure so callers can surface stream-scoped errors without tearing the connection.
StreamStopped(VarInt)
Peer issued STOP_SENDING with the given application error code.
Surfaced from stream_finish (and any future send that races the
STOP) so the caller learns the application-defined reason.
DatagramDisabled
Datagrams are disabled by local transport config — sends will never succeed on this connection.
DatagramUnsupportedByPeer
Datagrams are disabled by the peer — sends will never succeed on this connection.
DatagramTooLarge
Datagram payload exceeded the peer’s max_datagram_size. Caller
must split or shrink.
DatagramBlocked(Bytes)
The outgoing datagram buffer is full. Bytes carries back the
caller’s original payload so it can be re-sent on the next
QuicEvent::DatagramsUnblocked without re-allocating.
Io(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()