#[non_exhaustive]pub struct Truncated;
Expand description
Error type indicating that an input was incomplete, and could not be processed.
This type is kept separate from most other error types since it is not a true error; usually, it just means that the calling function should read more data and try again.
Don’t return this error type for parsing errors that can’t be recovered from by reading more data.
Implementations§
Trait Implementations§
Source§impl Error for Truncated
impl Error for Truncated
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()
Auto Trait Implementations§
impl Freeze for Truncated
impl RefUnwindSafe for Truncated
impl Send for Truncated
impl Sync for Truncated
impl Unpin for Truncated
impl UnwindSafe for Truncated
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§impl<E> ErrorReport for Ewhere
E: Error + 'static,
impl<E> ErrorReport for Ewhere
E: Error + 'static,
Source§fn report(&self) -> Report<ReportHelper<'_>>
fn report(&self) -> Report<ReportHelper<'_>>
Return an object that displays the error and its causes