Enum ModemPortType
#[non_exhaustive]pub enum ModemPortType {
Unknown,
Net,
At,
Qcdm,
Gps,
Qmi,
Mbim,
Audio,
Ignored,
Xmmrpc,
Other(u32),
}Expand description
The kind of a port of a modem.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The port type is not known.
Net
A network interface.
At
A serial port for AT commands.
Qcdm
A serial port for the Qualcomm diagnostic protocol.
Gps
A serial port for GPS data.
Qmi
A QMI control port.
Mbim
An MBIM control port.
Audio
An audio port.
Added in ModemManager 1.12.
Ignored
A port that the daemon ignores.
Added in ModemManager 1.16.
Xmmrpc
A port for the XMM RPC protocol of Intel modems.
Added in ModemManager 1.24.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
§impl ModemPortType
impl ModemPortType
Trait Implementations§
§impl Clone for ModemPortType
impl Clone for ModemPortType
§fn clone(&self) -> ModemPortType
fn clone(&self) -> ModemPortType
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 ModemPortType
§impl Debug for ModemPortType
impl Debug for ModemPortType
§impl<'de> Deserialize<'de> for ModemPortType
impl<'de> Deserialize<'de> for ModemPortType
§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 ModemPortType
§impl From<ModemPortType> for u32
impl From<ModemPortType> for u32
§fn from(__value: ModemPortType) -> Self
fn from(__value: ModemPortType) -> Self
Converts to this type from the input type.
§impl From<ModemPortType> for Value<'static>
impl From<ModemPortType> for Value<'static>
§fn from(__value: ModemPortType) -> Self
fn from(__value: ModemPortType) -> Self
Converts to this type from the input type.
§impl From<u32> for ModemPortType
impl From<u32> for ModemPortType
§impl Hash for ModemPortType
impl Hash for ModemPortType
§impl PartialEq for ModemPortType
impl PartialEq for ModemPortType
§impl Serialize for ModemPortType
impl Serialize for ModemPortType
impl StructuralPartialEq for ModemPortType
§impl TryFrom<OwnedValue> for ModemPortType
impl TryFrom<OwnedValue> for ModemPortType
§impl<'__a> TryFrom<Value<'__a>> for ModemPortType
impl<'__a> TryFrom<Value<'__a>> for ModemPortType
§impl Type for ModemPortType
impl Type for ModemPortType
Auto Trait Implementations§
impl Freeze for ModemPortType
impl RefUnwindSafe for ModemPortType
impl Send for ModemPortType
impl Sync for ModemPortType
impl Unpin for ModemPortType
impl UnsafeUnpin for ModemPortType
impl UnwindSafe for ModemPortType
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.