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)
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§
§impl Error for ReadError
impl Error for ReadError
§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
§impl From<ConnectionError> for ReadError
impl From<ConnectionError> for ReadError
§fn from(source: ConnectionError) -> ReadError
fn from(source: ConnectionError) -> ReadError
Converts to this type from the input type.
impl Eq for ReadError
impl StructuralEq for ReadError
impl StructuralPartialEq for ReadError
Auto Trait Implementations§
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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.