#[non_exhaustive]#[repr(u32)]pub enum RegistrationState {
Idle = 0,
Home = 1,
Searching = 2,
Denied = 3,
Unknown = 4,
Roaming = 5,
}
Available on crate feature
network
only.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.
Idle = 0
Not registered, not searching for new operator to register.
Home = 1
Registered on home network.
Searching = 2
Not registered, searching for new operator to register with.
Denied = 3
Registration denied.
Unknown = 4
Unknown registration status.
Roaming = 5
Registered on a roaming network.
Trait Implementations§
Source§impl Clone for RegistrationState
impl Clone for RegistrationState
Source§fn clone(&self) -> RegistrationState
fn clone(&self) -> RegistrationState
Returns a duplicate 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 Debug for RegistrationState
impl Debug for RegistrationState
Source§impl<'de> Deserialize<'de> for RegistrationState
impl<'de> Deserialize<'de> for RegistrationState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<u32> for RegistrationState
impl From<u32> for RegistrationState
Source§impl Hash for RegistrationState
impl Hash for RegistrationState
Source§impl Ord for RegistrationState
impl Ord for RegistrationState
Source§fn cmp(&self, other: &RegistrationState) -> Ordering
fn cmp(&self, other: &RegistrationState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RegistrationState
impl PartialEq for RegistrationState
Source§impl PartialOrd for RegistrationState
impl PartialOrd for RegistrationState
Source§impl Serialize for RegistrationState
impl Serialize for RegistrationState
impl Copy for RegistrationState
impl Eq for RegistrationState
impl StructuralPartialEq for RegistrationState
Auto Trait Implementations§
impl Freeze for RegistrationState
impl RefUnwindSafe for RegistrationState
impl Send for RegistrationState
impl Sync for RegistrationState
impl Unpin for RegistrationState
impl UnwindSafe for RegistrationState
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