pub enum Error {
Read,
Write,
Timeout,
InvalidResponse,
Aborted,
Overflow,
Parse,
Error,
CmeError(CmeError),
CmsError(CmsError),
ConnectionError(ConnectionError),
Custom,
}
Expand description
Errors returned by 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
Generic error response without any error message
CmeError(CmeError)
GSM Equipment related error
CmsError(CmsError)
GSM Network related error
ConnectionError(ConnectionError)
Connection Error
Custom
Error response containing any error message
Trait Implementations
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.
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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