Enum ecu_diagnostics::hardware::HardwareError
source · pub enum HardwareError {
APIError {
code: u32,
desc: String,
},
ConflictingChannel,
ChannelNotSupported,
DeviceNotFound,
DeviceNotOpen,
LibLoadError(Arc<Error>),
}
Expand description
Represents error that can be returned by Hardware API
Variants§
APIError
Low level device driver error
ConflictingChannel
Indicates that a conflicting channel type was opened on a device which does not support multiple channels of the same underlying network to be open at once.
ChannelNotSupported
Indicates a channel type is not supported by the API
DeviceNotFound
Hardware not found
DeviceNotOpen
Function called on device that has not yet been opened
LibLoadError(Arc<Error>)
Lib loading error
Trait Implementations§
source§impl Clone for HardwareError
impl Clone for HardwareError
source§fn clone(&self) -> HardwareError
fn clone(&self) -> HardwareError
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 HardwareError
impl Debug for HardwareError
source§impl Display for HardwareError
impl Display for HardwareError
source§impl Error for HardwareError
impl Error for HardwareError
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<Error> for HardwareError
impl From<Error> for HardwareError
source§impl From<HardwareError> for ChannelError
impl From<HardwareError> for ChannelError
source§fn from(source: HardwareError) -> Self
fn from(source: HardwareError) -> Self
Converts to this type from the input type.
source§impl From<PassthruError> for HardwareError
impl From<PassthruError> for HardwareError
source§fn from(err: PassthruError) -> Self
fn from(err: PassthruError) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for HardwareError
impl<T> From<PoisonError<T>> for HardwareError
source§fn from(_x: PoisonError<T>) -> Self
fn from(_x: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<RecvError> for HardwareError
impl From<RecvError> for HardwareError
Auto Trait Implementations§
impl Freeze for HardwareError
impl !RefUnwindSafe for HardwareError
impl Send for HardwareError
impl Sync for HardwareError
impl Unpin for HardwareError
impl !UnwindSafe for HardwareError
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