Struct Modem3gppProxy
pub struct Modem3gppProxy<'p>(Proxy<'p>);Expand description
Client for the 3GPP features of a modem.
The interface appears once the modem can register. A 3GPP modem needs an unlocked SIM first.
Upstream documentation: https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.Modem3gpp.html.
Tuple Fields§
§0: Proxy<'p>Implementations§
§impl<'p> Modem3gppProxy<'p>
impl<'p> Modem3gppProxy<'p>
pub async fn new<P>(conn: &Connection, path: P) -> Result<Modem3gppProxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<Modem3gppProxy<'p>>
Creates a new proxy with the given path, and the default destination.
pub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
pub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
pub fn inner(&self) -> &Proxy<'p>
pub fn inner(&self) -> &Proxy<'p>
The reference to the underlying zbus::Proxy.
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
pub async fn register(&self, operator_id: &str) -> Result<()>
pub async fn register(&self, operator_id: &str) -> Result<()>
Registers with a network.
Use the MCC and MNC as the operator ID, or an empty string for the home network.
pub async fn scan(&self) -> Result<Vec<NetworkScanResult>>
pub async fn scan(&self) -> Result<Vec<NetworkScanResult>>
Scans for networks.
The call can take a long time.
pub async fn set_eps_ue_mode_operation(
&self,
mode: Modem3gppEpsUeModeOperation,
) -> Result<()>
pub async fn set_eps_ue_mode_operation( &self, mode: Modem3gppEpsUeModeOperation, ) -> Result<()>
Sets the UE mode of operation for EPS.
pub async fn set_initial_eps_bearer_settings(
&self,
properties: &BearerProperties,
) -> Result<()>
pub async fn set_initial_eps_bearer_settings( &self, properties: &BearerProperties, ) -> Result<()>
Sets the settings of the initial EPS bearer for the LTE attach.
Only the 3GPP settings apply: apn, ip_type, allowed_auth, user
and password. The service skips the update if the settings equal the
current ones. Set force to apply them anyway.
pub async fn set_nr5g_registration_settings(
&self,
properties: &Modem3gppNr5gRegistrationSettings,
) -> Result<()>
pub async fn set_nr5g_registration_settings( &self, properties: &Modem3gppNr5gRegistrationSettings, ) -> Result<()>
Sets the 5G registration settings.
Added in ModemManager 1.20.
pub async fn disable_facility_lock(
&self,
properties: (Modem3gppFacility, &str),
) -> Result<()>
pub async fn disable_facility_lock( &self, properties: (Modem3gppFacility, &str), ) -> Result<()>
Disables a facility lock.
The tuple is the facility and the key that unlocks it.
Added in ModemManager 1.18.
pub async fn set_carrier_lock(&self, data: &[u8]) -> Result<()>
pub async fn set_carrier_lock(&self, data: &[u8]) -> Result<()>
Sends the carrier lock configuration to the modem.
Added in ModemManager 1.22.
pub async fn set_packet_service_state(
&self,
state: Modem3gppPacketServiceState,
) -> Result<()>
pub async fn set_packet_service_state( &self, state: Modem3gppPacketServiceState, ) -> Result<()>
Attaches or detaches the packet service on the registered network.
Added in ModemManager 1.20.
pub fn cached_imei(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_imei( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
The IMEI of the modem.
Get the cached value of the Imei property, or None if the property is not cached.
pub async fn receive_imei_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_imei_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
The IMEI of the modem.
Create a stream for the Imei property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn registration_state(&self) -> Result<Modem3gppRegistrationState>
pub async fn registration_state(&self) -> Result<Modem3gppRegistrationState>
The registration state.
pub fn cached_registration_state(
&self,
) -> Result<Option<<Result<Modem3gppRegistrationState> as ResultAdapter>::Ok>, <Result<Modem3gppRegistrationState> as ResultAdapter>::Err>
pub fn cached_registration_state( &self, ) -> Result<Option<<Result<Modem3gppRegistrationState> as ResultAdapter>::Ok>, <Result<Modem3gppRegistrationState> as ResultAdapter>::Err>
The registration state.
Get the cached value of the RegistrationState property, or None if the property is not cached.
pub async fn receive_registration_state_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppRegistrationState> as ResultAdapter>::Ok>
pub async fn receive_registration_state_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppRegistrationState> as ResultAdapter>::Ok>
The registration state.
Create a stream for the RegistrationState property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn network_rejection(&self) -> Result<Modem3gppNetworkRejection>
pub async fn network_rejection(&self) -> Result<Modem3gppNetworkRejection>
The last rejection of the network during registration.
The service clears it after a successful registration.
Added in ModemManager 1.24.
pub fn cached_network_rejection(
&self,
) -> Result<Option<<Result<Modem3gppNetworkRejection> as ResultAdapter>::Ok>, <Result<Modem3gppNetworkRejection> as ResultAdapter>::Err>
pub fn cached_network_rejection( &self, ) -> Result<Option<<Result<Modem3gppNetworkRejection> as ResultAdapter>::Ok>, <Result<Modem3gppNetworkRejection> as ResultAdapter>::Err>
The last rejection of the network during registration.
The service clears it after a successful registration.
Added in ModemManager 1.24.
Get the cached value of the NetworkRejection property, or None if the property is not cached.
pub async fn receive_network_rejection_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppNetworkRejection> as ResultAdapter>::Ok>
pub async fn receive_network_rejection_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppNetworkRejection> as ResultAdapter>::Ok>
The last rejection of the network during registration.
The service clears it after a successful registration.
Added in ModemManager 1.24.
Create a stream for the NetworkRejection property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn operator_code(&self) -> Result<String>
pub async fn operator_code(&self) -> Result<String>
The MCC and MNC of the registered operator, or an empty string.
pub fn cached_operator_code(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_operator_code( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
The MCC and MNC of the registered operator, or an empty string.
Get the cached value of the OperatorCode property, or None if the property is not cached.
pub async fn receive_operator_code_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_operator_code_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
The MCC and MNC of the registered operator, or an empty string.
Create a stream for the OperatorCode property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn operator_name(&self) -> Result<String>
pub async fn operator_name(&self) -> Result<String>
The name of the registered operator, or an empty string.
pub fn cached_operator_name(
&self,
) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
pub fn cached_operator_name( &self, ) -> Result<Option<<Result<String> as ResultAdapter>::Ok>, <Result<String> as ResultAdapter>::Err>
The name of the registered operator, or an empty string.
Get the cached value of the OperatorName property, or None if the property is not cached.
pub async fn receive_operator_name_changed(
&self,
) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
pub async fn receive_operator_name_changed( &self, ) -> PropertyStream<'p, <Result<String> as ResultAdapter>::Ok>
The name of the registered operator, or an empty string.
Create a stream for the OperatorName property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn enabled_facility_locks(&self) -> Result<Modem3gppFacility>
pub async fn enabled_facility_locks(&self) -> Result<Modem3gppFacility>
The facilities with an enabled PIN lock.
pub fn cached_enabled_facility_locks(
&self,
) -> Result<Option<<Result<Modem3gppFacility> as ResultAdapter>::Ok>, <Result<Modem3gppFacility> as ResultAdapter>::Err>
pub fn cached_enabled_facility_locks( &self, ) -> Result<Option<<Result<Modem3gppFacility> as ResultAdapter>::Ok>, <Result<Modem3gppFacility> as ResultAdapter>::Err>
The facilities with an enabled PIN lock.
Get the cached value of the EnabledFacilityLocks property, or None if the property is not cached.
pub async fn receive_enabled_facility_locks_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppFacility> as ResultAdapter>::Ok>
pub async fn receive_enabled_facility_locks_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppFacility> as ResultAdapter>::Ok>
The facilities with an enabled PIN lock.
Create a stream for the EnabledFacilityLocks property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn subscription_state(&self) -> Result<Modem3gppSubscriptionState>
👎Deprecated: Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
pub async fn subscription_state(&self) -> Result<Modem3gppSubscriptionState>
Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
The subscription state of the account.
pub fn cached_subscription_state(
&self,
) -> Result<Option<<Result<Modem3gppSubscriptionState> as ResultAdapter>::Ok>, <Result<Modem3gppSubscriptionState> as ResultAdapter>::Err>
👎Deprecated: Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
pub fn cached_subscription_state( &self, ) -> Result<Option<<Result<Modem3gppSubscriptionState> as ResultAdapter>::Ok>, <Result<Modem3gppSubscriptionState> as ResultAdapter>::Err>
Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
The subscription state of the account.
Get the cached value of the SubscriptionState property, or None if the property is not cached.
pub async fn receive_subscription_state_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppSubscriptionState> as ResultAdapter>::Ok>
👎Deprecated: Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
pub async fn receive_subscription_state_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppSubscriptionState> as ResultAdapter>::Ok>
Deprecated in ModemManager 1.10. The value needs operator-specific logic, so the service no longer sets it.
The subscription state of the account.
Create a stream for the SubscriptionState property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn eps_ue_mode_operation(&self) -> Result<Modem3gppEpsUeModeOperation>
pub async fn eps_ue_mode_operation(&self) -> Result<Modem3gppEpsUeModeOperation>
The UE mode of operation for EPS.
pub fn cached_eps_ue_mode_operation(
&self,
) -> Result<Option<<Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Ok>, <Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Err>
pub fn cached_eps_ue_mode_operation( &self, ) -> Result<Option<<Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Ok>, <Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Err>
The UE mode of operation for EPS.
Get the cached value of the EpsUeModeOperation property, or None if the property is not cached.
pub async fn receive_eps_ue_mode_operation_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Ok>
pub async fn receive_eps_ue_mode_operation_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppEpsUeModeOperation> as ResultAdapter>::Ok>
The UE mode of operation for EPS.
Create a stream for the EpsUeModeOperation property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn pco(&self) -> Result<Vec<(u32, bool, Vec<u8>)>>
pub async fn pco(&self) -> Result<Vec<(u32, bool, Vec<u8>)>>
The raw PCO elements from the network.
Each element holds the session ID, a flag that tells whether the data is the complete structure and the raw data.
pub fn cached_pco(
&self,
) -> Result<Option<<Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Ok>, <Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Err>
pub fn cached_pco( &self, ) -> Result<Option<<Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Ok>, <Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Err>
The raw PCO elements from the network.
Each element holds the session ID, a flag that tells whether the data
is the complete structure and the raw data.
Get the cached value of the Pco property, or None if the property is not cached.
pub async fn receive_pco_changed(
&self,
) -> PropertyStream<'p, <Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Ok>
pub async fn receive_pco_changed( &self, ) -> PropertyStream<'p, <Result<Vec<(u32, bool, Vec<u8>)>> as ResultAdapter>::Ok>
The raw PCO elements from the network.
Each element holds the session ID, a flag that tells whether the data
is the complete structure and the raw data.
Create a stream for the Pco property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn initial_eps_bearer(&self) -> Result<OwnedObjectPath>
pub async fn initial_eps_bearer(&self) -> Result<OwnedObjectPath>
The initial default EPS bearer.
pub fn cached_initial_eps_bearer(
&self,
) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
pub fn cached_initial_eps_bearer( &self, ) -> Result<Option<<Result<OwnedObjectPath> as ResultAdapter>::Ok>, <Result<OwnedObjectPath> as ResultAdapter>::Err>
The initial default EPS bearer.
Get the cached value of the InitialEpsBearer property, or None if the property is not cached.
pub async fn receive_initial_eps_bearer_changed(
&self,
) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
pub async fn receive_initial_eps_bearer_changed( &self, ) -> PropertyStream<'p, <Result<OwnedObjectPath> as ResultAdapter>::Ok>
The initial default EPS bearer.
Create a stream for the InitialEpsBearer property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn initial_eps_bearer_settings(&self) -> Result<BearerProperties>
pub async fn initial_eps_bearer_settings(&self) -> Result<BearerProperties>
The settings that the device asked for the initial EPS bearer.
The network can use other settings. Change them with
set_initial_eps_bearer_settings.
pub fn cached_initial_eps_bearer_settings(
&self,
) -> Result<Option<<Result<BearerProperties> as ResultAdapter>::Ok>, <Result<BearerProperties> as ResultAdapter>::Err>
pub fn cached_initial_eps_bearer_settings( &self, ) -> Result<Option<<Result<BearerProperties> as ResultAdapter>::Ok>, <Result<BearerProperties> as ResultAdapter>::Err>
The settings that the device asked for the initial EPS bearer.
The network can use other settings. Change them with
set_initial_eps_bearer_settings.
Get the cached value of the InitialEpsBearerSettings property, or None if the property is not cached.
pub async fn receive_initial_eps_bearer_settings_changed(
&self,
) -> PropertyStream<'p, <Result<BearerProperties> as ResultAdapter>::Ok>
pub async fn receive_initial_eps_bearer_settings_changed( &self, ) -> PropertyStream<'p, <Result<BearerProperties> as ResultAdapter>::Ok>
The settings that the device asked for the initial EPS bearer.
The network can use other settings. Change them with
set_initial_eps_bearer_settings.
Create a stream for the InitialEpsBearerSettings property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn packet_service_state(&self) -> Result<Modem3gppPacketServiceState>
pub async fn packet_service_state(&self) -> Result<Modem3gppPacketServiceState>
The state of the packet service.
Added in ModemManager 1.20.
pub fn cached_packet_service_state(
&self,
) -> Result<Option<<Result<Modem3gppPacketServiceState> as ResultAdapter>::Ok>, <Result<Modem3gppPacketServiceState> as ResultAdapter>::Err>
pub fn cached_packet_service_state( &self, ) -> Result<Option<<Result<Modem3gppPacketServiceState> as ResultAdapter>::Ok>, <Result<Modem3gppPacketServiceState> as ResultAdapter>::Err>
The state of the packet service.
Added in ModemManager 1.20.
Get the cached value of the PacketServiceState property, or None if the property is not cached.
pub async fn receive_packet_service_state_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppPacketServiceState> as ResultAdapter>::Ok>
pub async fn receive_packet_service_state_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppPacketServiceState> as ResultAdapter>::Ok>
The state of the packet service.
Added in ModemManager 1.20.
Create a stream for the PacketServiceState property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
pub async fn nr5g_registration_settings(
&self,
) -> Result<Modem3gppNr5gRegistrationSettings>
pub async fn nr5g_registration_settings( &self, ) -> Result<Modem3gppNr5gRegistrationSettings>
The 5G registration settings.
Change them with set_nr5g_registration_settings.
Added in ModemManager 1.20.
pub fn cached_nr5g_registration_settings(
&self,
) -> Result<Option<<Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Ok>, <Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Err>
pub fn cached_nr5g_registration_settings( &self, ) -> Result<Option<<Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Ok>, <Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Err>
The 5G registration settings.
Change them with set_nr5g_registration_settings.
Added in ModemManager 1.20.
Get the cached value of the Nr5gRegistrationSettings property, or None if the property is not cached.
pub async fn receive_nr5g_registration_settings_changed(
&self,
) -> PropertyStream<'p, <Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Ok>
pub async fn receive_nr5g_registration_settings_changed( &self, ) -> PropertyStream<'p, <Result<Modem3gppNr5gRegistrationSettings> as ResultAdapter>::Ok>
The 5G registration settings.
Change them with set_nr5g_registration_settings.
Added in ModemManager 1.20.
Create a stream for the Nr5gRegistrationSettings property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Trait Implementations§
§impl<'p> AsMut<Proxy<'p>> for Modem3gppProxy<'p>
impl<'p> AsMut<Proxy<'p>> for Modem3gppProxy<'p>
§impl<'p> AsRef<Proxy<'p>> for Modem3gppProxy<'p>
impl<'p> AsRef<Proxy<'p>> for Modem3gppProxy<'p>
§impl<'p> Clone for Modem3gppProxy<'p>
impl<'p> Clone for Modem3gppProxy<'p>
§fn clone(&self) -> Modem3gppProxy<'p>
fn clone(&self) -> Modem3gppProxy<'p>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more