Struct BearerProperties
#[non_exhaustive]pub struct BearerProperties {Show 16 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 force: Option<bool>,
}Expand description
The settings of a bearer or connection profile.
The service reports these settings in Bearer.Properties, reads them in
CreateBearer and the profile calls and uses a subset in
SetInitialEpsBearerSettings. 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.
force: Option<bool>Whether to apply the settings even if they equal the current ones.
Only set_initial_eps_bearer_settings reads it.
Added in ModemManager 1.24.
Trait Implementations§
§impl Clone for BearerProperties
impl Clone for BearerProperties
§fn clone(&self) -> BearerProperties
fn clone(&self) -> BearerProperties
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more