Struct SimpleConnectProperties
#[non_exhaustive]pub struct SimpleConnectProperties {Show 17 fields
pub apn: Option<String>,
pub ip_type: Option<BearerIpFamily>,
pub apn_type: Option<BearerApnType>,
pub allowed_auth: Option<BearerAllowedAuth>,
pub user: Option<String>,
pub password: Option<String>,
pub access_type_preference: Option<BearerAccessTypePreference>,
pub roaming_allowance: Option<BearerRoamingAllowance>,
pub profile_id: Option<i32>,
pub profile_name: Option<String>,
pub profile_enabled: Option<bool>,
pub profile_source: Option<BearerProfileSource>,
pub rm_protocol: Option<ModemCdmaRmProtocol>,
pub allow_roaming: Option<bool>,
pub multiplex: Option<BearerMultiplexSupport>,
pub pin: Option<String>,
pub operator_id: Option<String>,
}Expand description
The settings for Simple.Connect.
The fields are the ones of BearerProperties
except force, plus pin and operator_id. Fields that are None are
not sent. The deprecated number key is not covered.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.apn: Option<String>The access point name. For 5G this is the data network name.
ip_type: Option<BearerIpFamily>The IP families to use.
apn_type: Option<BearerApnType>The purposes of the APN.
Added in ModemManager 1.18.
allowed_auth: Option<BearerAllowedAuth>The allowed authentication methods.
user: Option<String>The user name that the network requires.
password: Option<String>The password that the network requires.
access_type_preference: Option<BearerAccessTypePreference>The access type that 5G devices prefer.
Added in ModemManager 1.20.
roaming_allowance: Option<BearerRoamingAllowance>The networks that are allowed while roaming. Use it instead of
allow_roaming if the modem supports it.
Added in ModemManager 1.20.
profile_id: Option<i32>The ID of the profile. The value -1 means that the ID is not valid.
Added in ModemManager 1.18.
profile_name: Option<String>The name of the profile. It only matters for profile calls.
Added in ModemManager 1.20.
profile_enabled: Option<bool>Whether the profile is enabled. It only matters for profile calls.
Added in ModemManager 1.20.
profile_source: Option<BearerProfileSource>Who created the profile. It only matters for profile calls.
Added in ModemManager 1.20.
rm_protocol: Option<ModemCdmaRmProtocol>The protocol of the Rm interface. It only applies to CDMA devices.
allow_roaming: Option<bool>Whether connection attempts may use roaming networks. The modem never stores this value.
multiplex: Option<BearerMultiplexSupport>The multiplex support that the caller wants.
Added in ModemManager 1.18.
pin: Option<String>The SIM PIN to unlock the SIM with. It only applies to 3GPP devices.
operator_id: Option<String>The MCC and MNC of a network to register with. It only applies to 3GPP devices.
Trait Implementations§
§impl Clone for SimpleConnectProperties
impl Clone for SimpleConnectProperties
§fn clone(&self) -> SimpleConnectProperties
fn clone(&self) -> SimpleConnectProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more