#[non_exhaustive]pub enum StreamReadError {
Source(Error),
}Expand description
Real error from Stream::try_read — the underlying source
surfaced an I/O failure.
Status conditions (seek pending, data not ready, variant change,
retry) are not errors and are carried in
StreamReadOutcome::Pending with a typed PendingReason. Only
genuine source failures end up here.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Debug for StreamReadError
impl Debug for StreamReadError
Source§impl Display for StreamReadError
impl Display for StreamReadError
Source§impl Error for StreamReadError
impl Error for StreamReadError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl Freeze for StreamReadError
impl !RefUnwindSafe for StreamReadError
impl Send for StreamReadError
impl Sync for StreamReadError
impl Unpin for StreamReadError
impl UnsafeUnpin for StreamReadError
impl !UnwindSafe for StreamReadError
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