Struct ModemCapability
pub struct ModemCapability(u32);Expand description
Generic families of access technologies that a modem supports.
Tuple Fields§
§0: u32Implementations§
§impl ModemCapability
impl ModemCapability
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 ModemCapability
impl ModemCapability
pub const NONE: Self
pub const NONE: Self
The empty set of capabilities.
pub const POTS: Self
pub const POTS: Self
Analog wireline modem.
pub const CDMA_EVDO: Self
pub const CDMA_EVDO: Self
CDMA and EV-DO.
pub const GSM_UMTS: Self
pub const GSM_UMTS: Self
GSM, UMTS and HSPA.
pub const LTE: Self
pub const LTE: Self
LTE (4G).
pub const IRIDIUM: Self
pub const IRIDIUM: Self
Iridium satellite.
pub const NR5G: Self
pub const NR5G: Self
5G NR.
Added in ModemManager 1.14.
pub const TDS: Self
pub const TDS: Self
TD-SCDMA.
Added in ModemManager 1.20.
pub const ANY: Self
pub const ANY: Self
Any capability.
Trait Implementations§
§impl BitAnd for ModemCapability
impl BitAnd for ModemCapability
§impl BitAndAssign for ModemCapability
impl BitAndAssign for ModemCapability
§fn bitand_assign(&mut self, __other: Self)
fn bitand_assign(&mut self, __other: Self)
Performs the
&= operation. Read more§impl BitOr for ModemCapability
impl BitOr for ModemCapability
§impl BitOrAssign for ModemCapability
impl BitOrAssign for ModemCapability
§fn bitor_assign(&mut self, __other: Self)
fn bitor_assign(&mut self, __other: Self)
Performs the
|= operation. Read more§impl Clone for ModemCapability
impl Clone for ModemCapability
§fn clone(&self) -> ModemCapability
fn clone(&self) -> ModemCapability
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 ModemCapability
§impl Debug for ModemCapability
impl Debug for ModemCapability
§impl Default for ModemCapability
impl Default for ModemCapability
§fn default() -> ModemCapability
fn default() -> ModemCapability
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ModemCapability
impl<'de> Deserialize<'de> for ModemCapability
§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 ModemCapability
§impl From<ModemCapability> for u32
impl From<ModemCapability> for u32
§fn from(__value: ModemCapability) -> Self
fn from(__value: ModemCapability) -> Self
Converts to this type from the input type.
§impl From<ModemCapability> for Value<'static>
impl From<ModemCapability> for Value<'static>
§fn from(__value: ModemCapability) -> Self
fn from(__value: ModemCapability) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemCapability
impl From<u32> for ModemCapability
§impl Hash for ModemCapability
impl Hash for ModemCapability
§impl PartialEq for ModemCapability
impl PartialEq for ModemCapability
§impl Serialize for ModemCapability
impl Serialize for ModemCapability
impl StructuralPartialEq for ModemCapability
§impl Sub for ModemCapability
impl Sub for ModemCapability
§impl SubAssign for ModemCapability
impl SubAssign for ModemCapability
§fn sub_assign(&mut self, __other: Self)
fn sub_assign(&mut self, __other: Self)
Performs the
-= operation. Read more§impl TryFrom<OwnedValue> for ModemCapability
impl TryFrom<OwnedValue> for ModemCapability
§impl<'__a> TryFrom<Value<'__a>> for ModemCapability
impl<'__a> TryFrom<Value<'__a>> for ModemCapability
§impl Type for ModemCapability
impl Type for ModemCapability
Auto Trait Implementations§
impl Freeze for ModemCapability
impl RefUnwindSafe for ModemCapability
impl Send for ModemCapability
impl Sync for ModemCapability
impl Unpin for ModemCapability
impl UnsafeUnpin for ModemCapability
impl UnwindSafe for ModemCapability
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.