Enum quinn_proto::ReadableError
source · pub enum ReadableError {
UnknownStream,
IllegalOrderedRead,
}
Expand description
Errors triggered when opening a recv stream for reading
Variants§
UnknownStream
The stream has not been opened or was already 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.
Trait Implementations§
source§impl Clone for ReadableError
impl Clone for ReadableError
source§fn clone(&self) -> ReadableError
fn clone(&self) -> ReadableError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReadableError
impl Debug for ReadableError
source§impl Display for ReadableError
impl Display for ReadableError
source§impl Error for ReadableError
impl Error for ReadableError
1.30.0 · source§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()
source§impl Hash for ReadableError
impl Hash for ReadableError
source§impl Ord for ReadableError
impl Ord for ReadableError
source§fn cmp(&self, other: &ReadableError) -> Ordering
fn cmp(&self, other: &ReadableError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ReadableError
impl PartialEq for ReadableError
source§fn eq(&self, other: &ReadableError) -> bool
fn eq(&self, other: &ReadableError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ReadableError
impl PartialOrd for ReadableError
source§fn partial_cmp(&self, other: &ReadableError) -> Option<Ordering>
fn partial_cmp(&self, other: &ReadableError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ReadableError
impl StructuralEq for ReadableError
impl StructuralPartialEq for ReadableError
Auto Trait Implementations§
impl RefUnwindSafe for ReadableError
impl Send for ReadableError
impl Sync for ReadableError
impl Unpin for ReadableError
impl UnwindSafe for ReadableError
Blanket Implementations§
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