Enum quinn_proto::ReadableError
source · pub enum ReadableError {
ClosedStream,
IllegalOrderedRead,
}
Expand description
Errors triggered when opening a recv stream for reading
Variants§
ClosedStream
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)>
Returns 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§impl PartialOrd for ReadableError
impl PartialOrd for ReadableError
impl Eq for ReadableError
impl StructuralPartialEq for ReadableError
Auto Trait Implementations§
impl Freeze for ReadableError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)