Enum atat::InternalError
source · pub enum InternalError<'a> {
Read,
Write,
Timeout,
InvalidResponse,
Aborted,
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
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§
source§impl<'a> Clone for InternalError<'a>
impl<'a> Clone for InternalError<'a>
source§fn clone(&self) -> InternalError<'a>
fn clone(&self) -> InternalError<'a>
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<'a> Debug for InternalError<'a>
impl<'a> Debug for InternalError<'a>
source§impl<'a> From<InternalError<'a>> for Error
impl<'a> From<InternalError<'a>> for Error
source§fn from(ie: InternalError<'_>) -> Self
fn from(ie: InternalError<'_>) -> Self
Converts to this type from the input type.
source§impl<'a, const N: usize> From<InternalError<'a>> for Response<N>
impl<'a, const N: usize> From<InternalError<'a>> for Response<N>
source§fn from(v: InternalError<'a>) -> Self
fn from(v: InternalError<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq for InternalError<'a>
impl<'a> PartialEq for InternalError<'a>
source§fn 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 ==
.impl<'a> Eq for InternalError<'a>
impl<'a> StructuralPartialEq for InternalError<'a>
Auto Trait Implementations§
impl<'a> Freeze for InternalError<'a>
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§
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