Struct BearerApnType
pub struct BearerApnType(u32);Expand description
The purposes of an APN.
Added in ModemManager 1.18.
Tuple Fields§
§0: u32Implementations§
§impl BearerApnType
impl BearerApnType
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 BearerApnType
impl BearerApnType
pub const NONE: Self
pub const NONE: Self
No APN type is set.
pub const INITIAL: Self
pub const INITIAL: Self
The initial attach.
pub const DEFAULT: Self
pub const DEFAULT: Self
General data.
pub const IMS: Self
pub const IMS: Self
IP multimedia subsystem.
pub const MMS: Self
pub const MMS: Self
Multimedia messaging.
pub const MANAGEMENT: Self
pub const MANAGEMENT: Self
Device management.
pub const VOICE: Self
pub const VOICE: Self
Voice over IP.
pub const EMERGENCY: Self
pub const EMERGENCY: Self
Emergency services.
pub const PRIVATE: Self
pub const PRIVATE: Self
A private network.
pub const PURCHASE: Self
pub const PURCHASE: Self
Purchases.
Added in ModemManager 1.20.
pub const VIDEO_SHARE: Self
pub const VIDEO_SHARE: Self
Video sharing.
Added in ModemManager 1.20.
pub const LOCAL: Self
pub const LOCAL: Self
Local services.
Added in ModemManager 1.20.
pub const APP: Self
pub const APP: Self
Application services.
Added in ModemManager 1.20.
pub const XCAP: Self
pub const XCAP: Self
XCAP configuration.
Added in ModemManager 1.20.
pub const TETHERING: Self
pub const TETHERING: Self
Tethering.
Added in ModemManager 1.20.
Trait Implementations§
§impl BitAnd for BearerApnType
impl BitAnd for BearerApnType
§impl BitAndAssign for BearerApnType
impl BitAndAssign for BearerApnType
§fn bitand_assign(&mut self, __other: Self)
fn bitand_assign(&mut self, __other: Self)
Performs the
&= operation. Read more§impl BitOr for BearerApnType
impl BitOr for BearerApnType
§impl BitOrAssign for BearerApnType
impl BitOrAssign for BearerApnType
§fn bitor_assign(&mut self, __other: Self)
fn bitor_assign(&mut self, __other: Self)
Performs the
|= operation. Read more§impl Clone for BearerApnType
impl Clone for BearerApnType
§fn clone(&self) -> BearerApnType
fn clone(&self) -> BearerApnType
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 BearerApnType
§impl Debug for BearerApnType
impl Debug for BearerApnType
§impl Default for BearerApnType
impl Default for BearerApnType
§fn default() -> BearerApnType
fn default() -> BearerApnType
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for BearerApnType
impl<'de> Deserialize<'de> for BearerApnType
§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 BearerApnType
§impl From<BearerApnType> for u32
impl From<BearerApnType> for u32
§fn from(__value: BearerApnType) -> Self
fn from(__value: BearerApnType) -> Self
Converts to this type from the input type.
§impl From<BearerApnType> for Value<'static>
impl From<BearerApnType> for Value<'static>
§fn from(__value: BearerApnType) -> Self
fn from(__value: BearerApnType) -> Self
Converts to this type from the input type.
§impl From<u32> for BearerApnType
impl From<u32> for BearerApnType
§impl Hash for BearerApnType
impl Hash for BearerApnType
§impl PartialEq for BearerApnType
impl PartialEq for BearerApnType
§impl Serialize for BearerApnType
impl Serialize for BearerApnType
impl StructuralPartialEq for BearerApnType
§impl Sub for BearerApnType
impl Sub for BearerApnType
§impl SubAssign for BearerApnType
impl SubAssign for BearerApnType
§fn sub_assign(&mut self, __other: Self)
fn sub_assign(&mut self, __other: Self)
Performs the
-= operation. Read more§impl TryFrom<OwnedValue> for BearerApnType
impl TryFrom<OwnedValue> for BearerApnType
§impl<'__a> TryFrom<Value<'__a>> for BearerApnType
impl<'__a> TryFrom<Value<'__a>> for BearerApnType
§impl Type for BearerApnType
impl Type for BearerApnType
Auto Trait Implementations§
impl Freeze for BearerApnType
impl RefUnwindSafe for BearerApnType
impl Send for BearerApnType
impl Sync for BearerApnType
impl Unpin for BearerApnType
impl UnsafeUnpin for BearerApnType
impl UnwindSafe for BearerApnType
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.