Enum ecu_diagnostics::hardware::HardwareError
source · [−]pub enum HardwareError {
APIError {
code: u32,
desc: String,
},
ConflictingChannel,
ChannelNotSupported,
DeviceNotFound,
DeviceNotOpen,
LibLoadError(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(Error)
Lib loading error
Trait Implementations
sourceimpl Debug for HardwareError
impl Debug for HardwareError
sourceimpl Display for HardwareError
impl Display for HardwareError
sourceimpl Error for HardwareError
impl Error for HardwareError
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>
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
use the Display impl or to_string()
sourceimpl From<Error> for HardwareError
impl From<Error> for HardwareError
sourceimpl From<HardwareError> for ChannelError
impl From<HardwareError> for ChannelError
sourcefn from(err: HardwareError) -> Self
fn from(err: HardwareError) -> Self
Converts to this type from the input type.
sourceimpl From<HardwareError> for DiagError
impl From<HardwareError> for DiagError
sourcefn from(x: HardwareError) -> Self
fn from(x: HardwareError) -> Self
Converts to this type from the input type.
sourceimpl From<PassthruError> for HardwareError
impl From<PassthruError> for HardwareError
sourcefn from(err: PassthruError) -> Self
fn from(err: PassthruError) -> Self
Converts to this type from the input type.
sourceimpl<T> From<PoisonError<T>> for HardwareError
impl<T> From<PoisonError<T>> for HardwareError
sourcefn from(_x: PoisonError<T>) -> Self
fn from(_x: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for HardwareError
impl Send for HardwareError
impl Sync for HardwareError
impl Unpin for HardwareError
impl !UnwindSafe for HardwareError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more