pub enum Error {
Read,
Write,
Timeout,
InvalidResponse,
Aborted,
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
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§
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 PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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