Enum ecu_diagnostics::channel::ChannelError
source · [−]pub enum ChannelError {
IOError(Error),
WriteTimeout,
ReadTimeout,
BufferEmpty,
BufferFull,
UnsupportedRequest,
InterfaceNotOpen,
HardwareError(HardwareError),
NotOpen,
ConfigurationError,
}
Expand description
Error produced by a communication channel
Variants
IOError(Error)
Underlying IO Error with channel
WriteTimeout
Timeout when writing data to the channel
ReadTimeout
Timeout when reading from the channel
BufferEmpty
The channel’s Rx buffer is empty. Only applies when read timeout is 0
BufferFull
The channels Tx buffer is full
UnsupportedRequest
Unsupported channel request
InterfaceNotOpen
The interface is not open
HardwareError(HardwareError)
Underlying API error with hardware
NotOpen
Channel is not open, so cannot read/write data to it!
ConfigurationError
Channel not configured prior to opening
Trait Implementations
sourceimpl Debug for ChannelError
impl Debug for ChannelError
sourceimpl Display for ChannelError
impl Display for ChannelError
sourceimpl Error for ChannelError
impl Error for ChannelError
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<CANSocketOpenError> for ChannelError
impl From<CANSocketOpenError> for ChannelError
sourcefn from(e: CANSocketOpenError) -> Self
fn from(e: CANSocketOpenError) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelError> for DiagError
impl From<ChannelError> for DiagError
sourcefn from(x: ChannelError) -> Self
fn from(x: ChannelError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ChannelError
impl From<Error> for ChannelError
sourceimpl From<Error> for ChannelError
impl From<Error> for ChannelError
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<T> From<PoisonError<T>> for ChannelError
impl<T> From<PoisonError<T>> for ChannelError
sourcefn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl !UnwindSafe for ChannelError
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