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
)