Enum atat::InternalError
source · [−]pub enum InternalError<'a> {
Read,
Write,
Timeout,
InvalidResponse,
Aborted,
Overflow,
Parse,
Error,
CmeError(CmeError),
CmsError(CmsError),
ConnectionError(ConnectionError),
Custom(&'a [u8]),
}
Expand description
Errors returned used internally within the crate
Variants
Read
Serial read error
Write
Serial write error
Timeout
Timed out while waiting for a response
InvalidResponse
Invalid response from module
Aborted
Command was aborted
Overflow
Buffer overflow
Parse
Failed to parse received response
Error
Error response containing any error message
CmeError(CmeError)
GSM Equipment related error
CmsError(CmsError)
GSM Network related error
ConnectionError(ConnectionError)
Connection Error
Custom(&'a [u8])
Custom error match
Trait Implementations
sourceimpl<'a> Clone for InternalError<'a>
impl<'a> Clone for InternalError<'a>
sourcefn clone(&self) -> InternalError<'a>
fn clone(&self) -> InternalError<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for InternalError<'a>
impl<'a> Debug for InternalError<'a>
sourceimpl<'a> From<InternalError<'a>> for Error
impl<'a> From<InternalError<'a>> for Error
sourcefn from(ie: InternalError<'_>) -> Self
fn from(ie: InternalError<'_>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<InternalError<'a>> for InternalError<'a>
impl<'a> PartialEq<InternalError<'a>> for InternalError<'a>
sourcefn eq(&self, other: &InternalError<'a>) -> bool
fn eq(&self, other: &InternalError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InternalError<'a>) -> bool
fn ne(&self, other: &InternalError<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for InternalError<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for InternalError<'a>
impl<'a> Send for InternalError<'a>
impl<'a> Sync for InternalError<'a>
impl<'a> Unpin for InternalError<'a>
impl<'a> UnwindSafe for InternalError<'a>
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