Enum dlt_core::parse::DltParseError
source · [−]pub enum DltParseError {
Unrecoverable(String),
ParsingHickup(String),
IncompleteParse {
needed: Option<NonZeroUsize>,
},
}
Expand description
Errors that can happen during parsing
Variants
Unrecoverable(String)
ParsingHickup(String)
IncompleteParse
Fields
needed: Option<NonZeroUsize>
Trait Implementations
sourceimpl Debug for DltParseError
impl Debug for DltParseError
sourceimpl Display for DltParseError
impl Display for DltParseError
sourceimpl Error for DltParseError
impl Error for DltParseError
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()
sourceimpl From<Err<DltParseError>> for DltParseError
impl From<Err<DltParseError>> for DltParseError
sourcefn from(ne: Err<DltParseError>) -> Self
fn from(ne: Err<DltParseError>) -> Self
Performs the conversion.
sourceimpl From<Error> for DltParseError
impl From<Error> for DltParseError
sourcefn from(err: Error) -> DltParseError
fn from(err: Error) -> DltParseError
Performs the conversion.
sourceimpl ParseError<&'_ [u8]> for DltParseError
impl ParseError<&'_ [u8]> for DltParseError
sourceimpl PartialEq<DltParseError> for DltParseError
impl PartialEq<DltParseError> for DltParseError
sourcefn eq(&self, other: &DltParseError) -> bool
fn eq(&self, other: &DltParseError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DltParseError) -> bool
fn ne(&self, other: &DltParseError) -> bool
This method tests for !=
.
impl StructuralPartialEq for DltParseError
Auto Trait Implementations
impl RefUnwindSafe for DltParseError
impl Send for DltParseError
impl Sync for DltParseError
impl Unpin for DltParseError
impl UnwindSafe for DltParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more