pub enum ErrorType {
Show 14 variants
NotAResponse,
PartialMessage,
CRCError,
EncryptedCRCError,
SlaveIdError,
NoResponse,
UnknownResponse,
KeyNotSet,
UTF8Error,
KeyExchangeError,
CryptoError(SymmetricCipherError),
EncryptionCounterError,
NotOkResponse(Payload),
ParseError,
}
Variants§
NotAResponse
PartialMessage
CRCError
EncryptedCRCError
SlaveIdError
NoResponse
UnknownResponse
KeyNotSet
UTF8Error
KeyExchangeError
CryptoError(SymmetricCipherError)
EncryptionCounterError
NotOkResponse(Payload)
ParseError
Trait Implementations§
Source§impl From<ErrorType> for ClientError
impl From<ErrorType> for ClientError
Source§fn from(e: ErrorType) -> ClientError
fn from(e: ErrorType) -> ClientError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for ErrorType
impl From<FromUtf8Error> for ErrorType
Source§fn from(_: FromUtf8Error) -> ErrorType
fn from(_: FromUtf8Error) -> ErrorType
Converts to this type from the input type.
Source§impl From<SymmetricCipherError> for ErrorType
impl From<SymmetricCipherError> for ErrorType
Source§fn from(e: SymmetricCipherError) -> ErrorType
fn from(e: SymmetricCipherError) -> ErrorType
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more