Struct redust_resp::ReadError
source · [−]Expand description
An error occurred while reading bytes.
Fields
data: Error<'a>The error which occurred.
remaining: Cow<'a, [u8]>Bytes remaining to be read.
Implementations
sourceimpl ReadError<'_>
impl ReadError<'_>
sourcepub fn into_owned(self) -> ReadError<'static>
pub fn into_owned(self) -> ReadError<'static>
Convert this error into an owned error.
Trait Implementations
sourceimpl Error for ReadError<'_>
impl Error for ReadError<'_>
sourcefn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ReadError<'a>
impl<'a> Send for ReadError<'a>
impl<'a> Sync for ReadError<'a>
impl<'a> Unpin for ReadError<'a>
impl<'a> !UnwindSafe for ReadError<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more