Struct NwMode
#[repr(transparent)]pub struct NwMode(<NwMode as PublicFlags>::Internal);ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Expand description
Bitflags for preferred network modes.
Tuple Fields§
§0: <NwMode as PublicFlags>::Internalql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Implementations§
§impl NwMode
impl NwMode
pub const NONE: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const NONE: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
No network.
pub const GSM: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const GSM: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include GSM networks.
pub const WCDMA: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const WCDMA: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include WCDMA networks.
pub const CDMA: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const CDMA: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include CDMA networks.
pub const EVDO: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const EVDO: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include EVDO networks.
pub const LTE: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const LTE: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include LTE networks.
pub const TDSCDMA: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const TDSCDMA: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Include TDSCDMA networks.
pub const PRL: Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const PRL: Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Give preference according to the preferred roaming list.
§impl NwMode
impl NwMode
pub const fn empty() -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn empty() -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Get a flags value with all bits unset.
pub const fn all() -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn all() -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Get a flags value with all known bits set.
pub const fn bits(&self) -> u64
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn bits(&self) -> u64
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
pub const fn from_bits(bits: u64) -> Option<Self>
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn from_bits(bits: u64) -> Option<Self>
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Convert from a bits value.
This method will return None if any unknown bits are set.
pub const fn from_bits_truncate(bits: u64) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn from_bits_truncate(bits: u64) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Convert from a bits value, unsetting any unknown bits.
pub const fn from_bits_retain(bits: u64) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn from_bits_retain(bits: u64) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Convert from a bits value exactly.
pub fn from_name(name: &str) -> Option<Self>
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub fn from_name(name: &str) -> Option<Self>
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
pub const fn is_empty(&self) -> bool
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn is_empty(&self) -> bool
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Whether all bits in self are unset.
pub const fn is_all(&self) -> bool
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn is_all(&self) -> bool
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Whether all known bits in this flags value are set.
pub const fn intersects(&self, other: Self) -> bool
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn intersects(&self, other: Self) -> bool
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Whether any set bits in other are also set in self.
pub const fn contains(&self, other: Self) -> bool
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn contains(&self, other: Self) -> bool
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Whether all set bits in other are also set in self.
pub fn insert(&mut self, other: Self)
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub fn insert(&mut self, other: Self)
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise or (|) of the bits in self and other.
pub fn remove(&mut self, other: Self)
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub fn remove(&mut self, other: Self)
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
pub fn toggle(&mut self, other: Self)
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub fn toggle(&mut self, other: Self)
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise exclusive-or (^) of the bits in self and other.
pub fn set(&mut self, other: Self, value: bool)
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub fn set(&mut self, other: Self, value: bool)
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Call insert when value is true or remove when value is false.
pub const fn intersection(self, other: Self) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn intersection(self, other: Self) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise and (&) of the bits in self and other.
pub const fn union(self, other: Self) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn union(self, other: Self) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise or (|) of the bits in self and other.
pub const fn difference(self, other: Self) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn difference(self, other: Self) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
pub const fn symmetric_difference(self, other: Self) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn symmetric_difference(self, other: Self) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise exclusive-or (^) of the bits in self and other.
pub const fn complement(self) -> Self
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn complement(self) -> Self
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
The bitwise negation (!) of the bits in self, truncating the result.
§impl NwMode
impl NwMode
pub const fn iter(&self) -> Iter<NwMode> ⓘ
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn iter(&self) -> Iter<NwMode> ⓘ
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
pub const fn iter_names(&self) -> IterNames<NwMode> ⓘ
👎Deprecated: ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
pub const fn iter_names(&self) -> IterNames<NwMode> ⓘ
ql-oe-sys is deprecated, use the pure Rust crates of ql-oe such as ql-dms, ql-nas and ql-wds
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
§impl BitAndAssign for NwMode
impl BitAndAssign for NwMode
§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
The bitwise and (&) of the bits in self and other.
§impl BitOrAssign for NwMode
impl BitOrAssign for NwMode
§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
The bitwise or (|) of the bits in self and other.
§impl BitXorAssign for NwMode
impl BitXorAssign for NwMode
§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
The bitwise exclusive-or (^) of the bits in self and other.
impl Copy for NwMode
§impl Extend<NwMode> for NwMode
impl Extend<NwMode> for NwMode
§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
The bitwise or (|) of the bits in each flags value.
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)§impl Flags for NwMode
impl Flags for NwMode
§fn from_bits_retain(bits: u64) -> NwMode
fn from_bits_retain(bits: u64) -> NwMode
§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS].§fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.§fn set(&mut self, other: Self, value: bool)where
Self: Sized,
fn set(&mut self, other: Self, value: bool)where
Self: Sized,
Flags::insert] when value is true or [Flags::remove] when value is false.§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.§impl FromIterator<NwMode> for NwMode
impl FromIterator<NwMode> for NwMode
§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
The bitwise or (|) of the bits in each flags value.
§impl IntoIterator for NwMode
impl IntoIterator for NwMode
§impl Sub for NwMode
impl Sub for NwMode
§impl SubAssign for NwMode
impl SubAssign for NwMode
§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.