pub enum ReadParsedError<ReadErr>where
ReadErr: Debug,{
ParseErr(ParseError),
DecodeErr(DecodeErr),
IoErr(ReadErr, usize),
}
Expand description
Error returned by functions parsing sml data read from a reader
Variants§
ParseErr(ParseError)
Error while parsing
DecodeErr(DecodeErr)
Error while decoding the data (e.g. checksum mismatch)
IoErr(ReadErr, usize)
Error while reading from the internal byte source
(inner_error, num_discarded_bytes)
Trait Implementations§
Source§impl<ReadErr> Debug for ReadParsedError<ReadErr>
impl<ReadErr> Debug for ReadParsedError<ReadErr>
Source§impl<ReadErr> Display for ReadParsedError<ReadErr>where
ReadErr: Debug,
impl<ReadErr> Display for ReadParsedError<ReadErr>where
ReadErr: Debug,
Source§impl<ReadErr> Error for ReadParsedError<ReadErr>where
ReadErr: Debug,
Available on crate feature std
only.
impl<ReadErr> Error for ReadParsedError<ReadErr>where
ReadErr: Debug,
Available on crate feature
std
only.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<ReadErr> From<ParseError> for ReadParsedError<ReadErr>where
ReadErr: Debug,
impl<ReadErr> From<ParseError> for ReadParsedError<ReadErr>where
ReadErr: Debug,
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl<ReadErr> From<ReadDecodedError<ReadErr>> for ReadParsedError<ReadErr>where
ReadErr: Debug,
impl<ReadErr> From<ReadDecodedError<ReadErr>> for ReadParsedError<ReadErr>where
ReadErr: Debug,
Source§fn from(value: ReadDecodedError<ReadErr>) -> Self
fn from(value: ReadDecodedError<ReadErr>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ReadErr> Freeze for ReadParsedError<ReadErr>where
ReadErr: Freeze,
impl<ReadErr> RefUnwindSafe for ReadParsedError<ReadErr>where
ReadErr: RefUnwindSafe,
impl<ReadErr> Send for ReadParsedError<ReadErr>where
ReadErr: Send,
impl<ReadErr> Sync for ReadParsedError<ReadErr>where
ReadErr: Sync,
impl<ReadErr> Unpin for ReadParsedError<ReadErr>where
ReadErr: Unpin,
impl<ReadErr> UnwindSafe for ReadParsedError<ReadErr>where
ReadErr: UnwindSafe,
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