#[non_exhaustive]pub enum Error {
Show 23 variants
ModemNotInitialized,
GnssAlreadyTaken,
NrfError(isize),
BufferTooSmall(Option<usize>),
OutOfMemory,
AtParseError(ParseError),
InvalidSystemModeConfig,
StringNotNulTerminated,
Utf8Error,
LteRegistrationDenied,
SimFailure,
UnexpectedAtResponse,
HostnameNotAscii,
HostnameTooLong,
AddressNotFound,
SocketOptionError(SocketOptionError),
OperationCancelled,
SmsNumberNotAscii,
Disconnected,
TooManyLteLinks,
InternalRuntimeMutexLocked,
BadMemoryLayout,
ModemAlreadyInitialized,
}
Expand description
The global error type of this crate
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ModemNotInitialized
An operation was tried for which the modem needs to be initialized, but the modem is not yet initialized
GnssAlreadyTaken
There can only be one Gnss instance, yet a second was requested
NrfError(isize)
An unkown error occured. Check nrf_errno.h to see what it means.
Sometimes the sign is flipped, but ignore that and just look at the number.
BufferTooSmall(Option<usize>)
OutOfMemory
AtParseError(ParseError)
InvalidSystemModeConfig
StringNotNulTerminated
Utf8Error
LteRegistrationDenied
SimFailure
UnexpectedAtResponse
HostnameNotAscii
HostnameTooLong
AddressNotFound
SocketOptionError(SocketOptionError)
OperationCancelled
The ongoing operation has been cancelled by the user
SmsNumberNotAscii
Disconnected
TooManyLteLinks
InternalRuntimeMutexLocked
BadMemoryLayout
The given memory layout falls outside of the acceptable range
ModemAlreadyInitialized
Trait Implementations§
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
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