Struct ModemLocationSource
pub struct ModemLocationSource(u32);Expand description
Sources of location information.
Tuple Fields§
§0: u32Implementations§
§impl ModemLocationSource
impl ModemLocationSource
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 ModemLocationSource
impl ModemLocationSource
pub const NONE: Self
pub const NONE: Self
The empty set of sources.
pub const LAC_CI_3GPP: Self
pub const LAC_CI_3GPP: Self
The location area code and cell ID of the 3GPP network.
pub const GPS_RAW: Self
pub const GPS_RAW: Self
GPS data as a dictionary of values.
pub const GPS_NMEA: Self
pub const GPS_NMEA: Self
GPS data as NMEA sentences.
pub const CDMA_BS: Self
pub const CDMA_BS: Self
The position of the CDMA base station.
pub const GPS_UNMANAGED: Self
pub const GPS_UNMANAGED: Self
Set up the GPS module without reporting a position.
pub const AGPS_MSA: Self
pub const AGPS_MSA: Self
A-GPS assisted by the mobile station.
Added in ModemManager 1.12.
pub const AGPS_MSB: Self
pub const AGPS_MSB: Self
A-GPS based on the mobile station.
Added in ModemManager 1.12.
Trait Implementations§
§impl BitAnd for ModemLocationSource
impl BitAnd for ModemLocationSource
§impl BitAndAssign for ModemLocationSource
impl BitAndAssign for ModemLocationSource
§fn bitand_assign(&mut self, __other: Self)
fn bitand_assign(&mut self, __other: Self)
Performs the
&= operation. Read more§impl BitOr for ModemLocationSource
impl BitOr for ModemLocationSource
§impl BitOrAssign for ModemLocationSource
impl BitOrAssign for ModemLocationSource
§fn bitor_assign(&mut self, __other: Self)
fn bitor_assign(&mut self, __other: Self)
Performs the
|= operation. Read more§impl Clone for ModemLocationSource
impl Clone for ModemLocationSource
§fn clone(&self) -> ModemLocationSource
fn clone(&self) -> ModemLocationSource
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 ModemLocationSource
§impl Debug for ModemLocationSource
impl Debug for ModemLocationSource
§impl Default for ModemLocationSource
impl Default for ModemLocationSource
§fn default() -> ModemLocationSource
fn default() -> ModemLocationSource
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ModemLocationSource
impl<'de> Deserialize<'de> for ModemLocationSource
§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 ModemLocationSource
§impl From<ModemLocationSource> for u32
impl From<ModemLocationSource> for u32
§fn from(__value: ModemLocationSource) -> Self
fn from(__value: ModemLocationSource) -> Self
Converts to this type from the input type.
§impl From<ModemLocationSource> for Value<'static>
impl From<ModemLocationSource> for Value<'static>
§fn from(__value: ModemLocationSource) -> Self
fn from(__value: ModemLocationSource) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemLocationSource
impl From<u32> for ModemLocationSource
§impl Hash for ModemLocationSource
impl Hash for ModemLocationSource
§impl PartialEq for ModemLocationSource
impl PartialEq for ModemLocationSource
§impl Serialize for ModemLocationSource
impl Serialize for ModemLocationSource
impl StructuralPartialEq for ModemLocationSource
§impl Sub for ModemLocationSource
impl Sub for ModemLocationSource
§impl SubAssign for ModemLocationSource
impl SubAssign for ModemLocationSource
§fn sub_assign(&mut self, __other: Self)
fn sub_assign(&mut self, __other: Self)
Performs the
-= operation. Read more§impl TryFrom<OwnedValue> for ModemLocationSource
impl TryFrom<OwnedValue> for ModemLocationSource
§impl<'__a> TryFrom<Value<'__a>> for ModemLocationSource
impl<'__a> TryFrom<Value<'__a>> for ModemLocationSource
§impl Type for ModemLocationSource
impl Type for ModemLocationSource
Auto Trait Implementations§
impl Freeze for ModemLocationSource
impl RefUnwindSafe for ModemLocationSource
impl Send for ModemLocationSource
impl Sync for ModemLocationSource
impl Unpin for ModemLocationSource
impl UnsafeUnpin for ModemLocationSource
impl UnwindSafe for ModemLocationSource
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.