Enum socketcan::errors::ConstructionError
source · pub enum ConstructionError {
WrongFrameType,
IDTooLarge,
TooMuchData,
}
Expand description
Error that occurs when creating CAN packets
Variants§
WrongFrameType
Trying to create a specific frame type from an incompatible type
IDTooLarge
CAN ID was outside the range of valid IDs
TooMuchData
Larger payload reported than can be held in the frame.
Trait Implementations§
source§impl Clone for ConstructionError
impl Clone for ConstructionError
source§fn clone(&self) -> ConstructionError
fn clone(&self) -> ConstructionError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstructionError
impl Debug for ConstructionError
source§impl Display for ConstructionError
impl Display for ConstructionError
source§impl Error for ConstructionError
impl Error for ConstructionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConstructionError> for ParseError
impl From<ConstructionError> for ParseError
source§fn from(e: ConstructionError) -> ParseError
fn from(e: ConstructionError) -> ParseError
Converts to this type from the input type.
source§impl Ord for ConstructionError
impl Ord for ConstructionError
source§fn cmp(&self, other: &ConstructionError) -> Ordering
fn cmp(&self, other: &ConstructionError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConstructionError
impl PartialEq for ConstructionError
source§fn eq(&self, other: &ConstructionError) -> bool
fn eq(&self, other: &ConstructionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ConstructionError
impl PartialOrd for ConstructionError
source§fn partial_cmp(&self, other: &ConstructionError) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstructionError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ConstructionError
impl Eq for ConstructionError
impl StructuralEq for ConstructionError
impl StructuralPartialEq for ConstructionError
Auto Trait Implementations§
impl RefUnwindSafe for ConstructionError
impl Send for ConstructionError
impl Sync for ConstructionError
impl Unpin for ConstructionError
impl UnwindSafe for ConstructionError
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