pub enum ClientError<TE> {
Transport(TE),
Protocol(ProtocolError),
ReaderStatus {
status_raw: u16,
status: Option<StatusCode>,
},
UnexpectedResponseCommand {
expected: u8,
actual: u8,
},
}Expand description
Errors produced by the protocol client.
Variants§
Transport(TE)
Underlying transport error.
Protocol(ProtocolError)
Packet or payload format error.
ReaderStatus
Reader returned a non-success status code.
UnexpectedResponseCommand
Response command code does not match request command code.
Trait Implementations§
Source§impl<TE: Debug> Debug for ClientError<TE>
impl<TE: Debug> Debug for ClientError<TE>
Source§impl<TE: Display> Display for ClientError<TE>
impl<TE: Display> Display for ClientError<TE>
Source§impl<TE: Debug + Display> Error for ClientError<TE>
impl<TE: Debug + Display> Error for ClientError<TE>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl<TE> Freeze for ClientError<TE>where
TE: Freeze,
impl<TE> RefUnwindSafe for ClientError<TE>where
TE: RefUnwindSafe,
impl<TE> Send for ClientError<TE>where
TE: Send,
impl<TE> Sync for ClientError<TE>where
TE: Sync,
impl<TE> Unpin for ClientError<TE>where
TE: Unpin,
impl<TE> UnsafeUnpin for ClientError<TE>where
TE: UnsafeUnpin,
impl<TE> UnwindSafe for ClientError<TE>where
TE: UnwindSafe,
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