pub enum DeserializeErrorCause {
IoError(String),
ParseError(String),
Utf8Error(FromUtf8Error),
UnknownCommand(Command),
UnknownResponse(Response),
UnknownArguments(Arguments),
}
Expand description
Errors that can occur while deserializing AT commands into high level generated AT command and response types.
Variants§
IoError(String)
ParseError(String)
Utf8Error(FromUtf8Error)
UnknownCommand(Command)
UnknownResponse(Response)
UnknownArguments(Arguments)
Trait Implementations§
Source§impl Clone for DeserializeErrorCause
impl Clone for DeserializeErrorCause
Source§fn clone(&self) -> DeserializeErrorCause
fn clone(&self) -> DeserializeErrorCause
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 DeserializeErrorCause
impl Debug for DeserializeErrorCause
Source§impl Display for DeserializeErrorCause
impl Display for DeserializeErrorCause
Source§impl Error for DeserializeErrorCause
impl Error for DeserializeErrorCause
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()
Source§impl From<Error> for DeserializeErrorCause
impl From<Error> for DeserializeErrorCause
Source§fn from(io_error: Error) -> DeserializeErrorCause
fn from(io_error: Error) -> DeserializeErrorCause
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for DeserializeErrorCause
impl From<FromUtf8Error> for DeserializeErrorCause
Source§fn from(utf8_error: FromUtf8Error) -> DeserializeErrorCause
fn from(utf8_error: FromUtf8Error) -> DeserializeErrorCause
Converts to this type from the input type.
Source§impl<RT: RuleType> From<ParseError<RT>> for DeserializeErrorCause
impl<RT: RuleType> From<ParseError<RT>> for DeserializeErrorCause
Source§fn from(parse_error: ParseError<RT>) -> DeserializeErrorCause
fn from(parse_error: ParseError<RT>) -> DeserializeErrorCause
Converts to this type from the input type.
Source§impl PartialEq for DeserializeErrorCause
impl PartialEq for DeserializeErrorCause
impl StructuralPartialEq for DeserializeErrorCause
Auto Trait Implementations§
impl Freeze for DeserializeErrorCause
impl RefUnwindSafe for DeserializeErrorCause
impl Send for DeserializeErrorCause
impl Sync for DeserializeErrorCause
impl Unpin for DeserializeErrorCause
impl UnwindSafe for DeserializeErrorCause
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)