pub enum CoError {
Io(Error),
Timeout(Elapsed),
SdoRetryError(usize),
Binrw(Error),
SdoWrongAnswer(String),
WrongId(String),
TxPackerTimeout,
RxPackerTimeout,
SocketCan(Error),
FrameError(String),
InterfaceError(String),
Close,
}Expand description
Custom error type for CANopen operations.
Variants§
Io(Error)
I/O error.
Timeout(Elapsed)
Timeout error.
SdoRetryError(usize)
SDO retry error with retry count.
Binrw(Error)
Error from binrw crate.
SdoWrongAnswer(String)
SDO received an unexpected answer.
WrongId(String)
Incorrect ID error.
TxPackerTimeout
Transmit packet timeout.
RxPackerTimeout
Receive packet timeout.
SocketCan(Error)
Error from the socketcan crate.
FrameError(String)
Frame error with a detailed message.
InterfaceError(String)
Interface error with a detailed message.
Close
Error indicating closure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CoError
impl !RefUnwindSafe for CoError
impl Send for CoError
impl Sync for CoError
impl Unpin for CoError
impl !UnwindSafe for CoError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more