pub enum Error {
UnexpectedEof,
Expected(&'static str),
InvalidChar(char),
MaxStrLength(usize),
Version(&'static str),
Message(&'static str),
Receivers(&'static str),
Nodes(&'static str),
Signal(&'static str),
Decoding(&'static str),
Validation(&'static str),
}Expand description
Error type for DBC operations.
This enum represents all possible errors that can occur when working with DBC files.
Variants§
UnexpectedEof
Unexpected end of input encountered.
Expected(&'static str)
Expected a specific token or value.
InvalidChar(char)
Invalid character encountered.
MaxStrLength(usize)
String length exceeds the maximum allowed length.
Version(&'static str)
Version-related error.
Message(&'static str)
Message-related error.
Receivers(&'static str)
Receivers-related error.
Nodes(&'static str)
Nodes-related error.
Signal(&'static str)
Signal-related error.
Decoding(&'static str)
Decoding-related error.
Validation(&'static str)
Validation-related error.
Trait Implementations§
Source§impl Error for Error
Available on crate feature std only.
impl Error for Error
Available on crate feature
std only.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 From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(_err: ParseIntError) -> Self
fn from(_err: ParseIntError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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