pub struct Modem { /* private fields */ }

Implementations

The equipment manufacturer, as reported by the modem.

The equipment model, as reported by the modem.

The description of the carrier-specific configuration (MCFG) in use by the modem.

The physical modem device reference (ie, USB, PCI, PCMCIA device), which may be dependent upon the operating system.

In Linux for example, this points to a sysfs path of the usb_device object.

This value may also be set by the user using the MM_ID_PHYSDEV_UID udev tag (e.g. binding the tag to a specific sysfs path).

Overall state of the modem, given as a MMModemState value.

If the device’s state cannot be determined, MM_MODEM_STATE_UNKNOWN will be reported.

Signal quality in percent (0 - 100) of the dominant access technology the device is using to communicate with the network. Always 0 for POTS devices.
The additional boolean value indicates if the quality value given was recently taken.

A pair of MMModemMode values, where the first one is a bitmask specifying the access technologies (eg 2G/3G/4G) the device is currently allowed to use when connecting to a network, and the second one is the preferred mode of those specified as allowed.

List of MMModemBand values, specifying the radio frequency and technology bands the device is currently using when connecting to a network.

It must be a subset of “SupportedBands”.

Available signal information for the CDMA1x access technology.

Available signal information for the CDMA EV-DO access technology.

Available signal information for the GSM/GPRS access technology.

Available signal information for the UMTS (WCDMA) access technology.

Available signal information for the LTE access technology.

Available signal information for the 5G access technology.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.