Struct ModemAccessTechnology
pub struct ModemAccessTechnology(u32);Expand description
Access technologies that a modem uses on the network.
Tuple Fields§
§0: u32Implementations§
§impl ModemAccessTechnology
impl ModemAccessTechnology
pub const fn empty() -> Self
pub const fn empty() -> Self
Returns a value with no flags set.
pub const fn contains(self, __other: Self) -> bool
pub const fn contains(self, __other: Self) -> bool
Returns true if every flag of the argument is set.
pub const fn intersects(self, __other: Self) -> bool
pub const fn intersects(self, __other: Self) -> bool
Returns true if any flag of the argument is set.
pub const fn union(self, __other: Self) -> Self
pub const fn union(self, __other: Self) -> Self
Returns the flags set in either value.
pub const fn intersection(self, __other: Self) -> Self
pub const fn intersection(self, __other: Self) -> Self
Returns the flags set in both values.
pub const fn difference(self, __other: Self) -> Self
pub const fn difference(self, __other: Self) -> Self
Returns the flags of self without those of the argument.
§impl ModemAccessTechnology
impl ModemAccessTechnology
pub const UNKNOWN: Self
pub const UNKNOWN: Self
The access technology is not known.
pub const POTS: Self
pub const POTS: Self
Analog wireline.
pub const GSM: Self
pub const GSM: Self
GSM (2G).
pub const GSM_COMPACT: Self
pub const GSM_COMPACT: Self
GSM Compact.
pub const GPRS: Self
pub const GPRS: Self
GPRS (2.5G packet data).
pub const EDGE: Self
pub const EDGE: Self
EDGE (2.75G).
pub const UMTS: Self
pub const UMTS: Self
UMTS (3G).
pub const HSDPA: Self
pub const HSDPA: Self
HSDPA (3G downlink boost).
pub const HSUPA: Self
pub const HSUPA: Self
HSUPA (3G uplink boost).
pub const HSPA: Self
pub const HSPA: Self
HSPA (HSDPA and HSUPA).
pub const HSPA_PLUS: Self
pub const HSPA_PLUS: Self
HSPA+ (3.5G).
pub const CDMA1X_RTT: Self
pub const CDMA1X_RTT: Self
CDMA2000 1xRTT.
pub const EVDO0: Self
pub const EVDO0: Self
EV-DO revision 0.
pub const EVDOA: Self
pub const EVDOA: Self
EV-DO revision A.
pub const EVDOB: Self
pub const EVDOB: Self
EV-DO revision B.
pub const LTE: Self
pub const LTE: Self
LTE (4G).
pub const NR5G: Self
pub const NR5G: Self
5G NR.
Added in ModemManager 1.14.
pub const LTE_CAT_M: Self
pub const LTE_CAT_M: Self
LTE Cat-M (eMTC).
Added in ModemManager 1.20.
pub const LTE_NB_IOT: Self
pub const LTE_NB_IOT: Self
LTE NB-IoT.
Added in ModemManager 1.20.
pub const ANY: Self
pub const ANY: Self
Any access technology.
Trait Implementations§
§impl BitAnd for ModemAccessTechnology
impl BitAnd for ModemAccessTechnology
§impl BitAndAssign for ModemAccessTechnology
impl BitAndAssign for ModemAccessTechnology
§fn bitand_assign(&mut self, __other: Self)
fn bitand_assign(&mut self, __other: Self)
Performs the
&= operation. Read more§impl BitOr for ModemAccessTechnology
impl BitOr for ModemAccessTechnology
§impl BitOrAssign for ModemAccessTechnology
impl BitOrAssign for ModemAccessTechnology
§fn bitor_assign(&mut self, __other: Self)
fn bitor_assign(&mut self, __other: Self)
Performs the
|= operation. Read more§impl Clone for ModemAccessTechnology
impl Clone for ModemAccessTechnology
§fn clone(&self) -> ModemAccessTechnology
fn clone(&self) -> ModemAccessTechnology
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModemAccessTechnology
§impl Debug for ModemAccessTechnology
impl Debug for ModemAccessTechnology
§impl Default for ModemAccessTechnology
impl Default for ModemAccessTechnology
§fn default() -> ModemAccessTechnology
fn default() -> ModemAccessTechnology
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ModemAccessTechnology
impl<'de> Deserialize<'de> for ModemAccessTechnology
§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
impl Eq for ModemAccessTechnology
§impl From<ModemAccessTechnology> for u32
impl From<ModemAccessTechnology> for u32
§fn from(__value: ModemAccessTechnology) -> Self
fn from(__value: ModemAccessTechnology) -> Self
Converts to this type from the input type.
§impl From<ModemAccessTechnology> for Value<'static>
impl From<ModemAccessTechnology> for Value<'static>
§fn from(__value: ModemAccessTechnology) -> Self
fn from(__value: ModemAccessTechnology) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemAccessTechnology
impl From<u32> for ModemAccessTechnology
§impl Hash for ModemAccessTechnology
impl Hash for ModemAccessTechnology
§impl PartialEq for ModemAccessTechnology
impl PartialEq for ModemAccessTechnology
§impl Serialize for ModemAccessTechnology
impl Serialize for ModemAccessTechnology
impl StructuralPartialEq for ModemAccessTechnology
§impl Sub for ModemAccessTechnology
impl Sub for ModemAccessTechnology
§impl SubAssign for ModemAccessTechnology
impl SubAssign for ModemAccessTechnology
§fn sub_assign(&mut self, __other: Self)
fn sub_assign(&mut self, __other: Self)
Performs the
-= operation. Read more§impl TryFrom<OwnedValue> for ModemAccessTechnology
impl TryFrom<OwnedValue> for ModemAccessTechnology
§impl<'__a> TryFrom<Value<'__a>> for ModemAccessTechnology
impl<'__a> TryFrom<Value<'__a>> for ModemAccessTechnology
§impl Type for ModemAccessTechnology
impl Type for ModemAccessTechnology
Auto Trait Implementations§
impl Freeze for ModemAccessTechnology
impl RefUnwindSafe for ModemAccessTechnology
impl Send for ModemAccessTechnology
impl Sync for ModemAccessTechnology
impl Unpin for ModemAccessTechnology
impl UnsafeUnpin for ModemAccessTechnology
impl UnwindSafe for ModemAccessTechnology
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.