Enum ecu_diagnostics::channel::ChannelError
source · pub enum ChannelError {
IOError(Arc<Error>),
WriteTimeout,
ReadTimeout,
BufferEmpty,
BufferFull,
UnsupportedRequest,
InterfaceNotOpen,
HardwareError(HardwareError),
ConfigurationError,
Other(String),
}
Expand description
Error produced by a communication channel
Variants§
IOError(Arc<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
ConfigurationError
Channel not configured prior to opening
Other(String)
Other Channel error
Trait Implementations§
source§impl Clone for ChannelError
impl Clone for ChannelError
source§fn clone(&self) -> ChannelError
fn clone(&self) -> ChannelError
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 ChannelError
impl Debug for ChannelError
source§impl Display for ChannelError
impl Display for ChannelError
source§impl Error for ChannelError
impl Error for ChannelError
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<ChannelError> for DiagError
impl From<ChannelError> for DiagError
source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ChannelError
impl From<Error> for ChannelError
source§impl From<Error> for ChannelError
impl From<Error> for ChannelError
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<T> From<PoisonError<T>> for ChannelError
impl<T> From<PoisonError<T>> for ChannelError
source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<RecvError> for ChannelError
impl From<RecvError> for ChannelError
source§impl From<RecvTimeoutError> for ChannelError
impl From<RecvTimeoutError> for ChannelError
source§fn from(_err: RecvTimeoutError) -> Self
fn from(_err: RecvTimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChannelError
impl !RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl !UnwindSafe for ChannelError
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