Enum fabruic::error::ReadError [−][src]
pub enum ReadError {
Reset(VarInt),
ConnectionLost(ConnectionError),
UnknownStream,
IllegalOrderedRead,
ZeroRttRejected,
}
Expand description
Errors that arise from reading from a stream.
Variants
Reset(VarInt)
The peer abandoned transmitting data on this stream
Carries an application-defined error code.
ConnectionLost(ConnectionError)
Tuple Fields
The connection was lost
UnknownStream
The stream has already been stopped, finished, or reset
IllegalOrderedRead
Attempted an ordered read following an unordered read
Performing an unordered read allows discontinuities to arise in the receive buffer of a stream which cannot be recovered, making further ordered reads impossible.
ZeroRttRejected
This was a 0-RTT stream and the server rejected it
Can only occur on clients for 0-RTT streams, which can be opened using
Connecting::into_0rtt()
.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ReadError
impl UnwindSafe for ReadError
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more