Struct Client
pub struct Client {
qmi: Client<Nas>,
}Expand description
Client of the NAS service.
Its Connection must run for requests to complete.
Cloning the client is cheap. Clones share the connection and its indication
registration. Dropping every clone stops the connection. The IDL says that
the modem keeps the indication registration of each client separately.
Fields§
§qmi: Client<Nas>Implementations§
§impl Client
impl Client
pub const fn builder() -> ClientBuilder<Nas, Self>
pub const fn builder() -> ClientBuilder<Nas, Self>
Returns a builder for the client, for example to change the request timeout.
pub fn cell_location_info(&self) -> RequestBuilder<'_, CellLocationInfo>
pub fn cell_location_info(&self) -> RequestBuilder<'_, CellLocationInfo>
Reads the serving and neighbor cells. Sends GetCellLocationInfo.
pub fn config_sig_info2(
&self,
request: &ConfigSigInfo2<'_>,
) -> RequestBuilder<'_, ()>
pub fn config_sig_info2( &self, request: &ConfigSigInfo2<'_>, ) -> RequestBuilder<'_, ()>
Sets when the modem sends signal strength indications. Sends
ConfigSigInfo2.
pub fn events(&self) -> Result<Indications<Event>, Error>
pub fn events(&self) -> Result<Indications<Event>, Error>
Subscribes to indications.
Only indications received after this call are delivered. Subscribe
before you enable them with
indication_register, otherwise the
first ones are lost.
§Errors
Returns ql_qmi::Error::Disconnected if the connection has stopped.
pub fn indication_register(
&self,
request: &IndicationRegister,
) -> RequestBuilder<'_, ()>
pub fn indication_register( &self, request: &IndicationRegister, ) -> RequestBuilder<'_, ()>
Sets which indications the modem sends to this client. Sends
IndicationRegister.
pub const fn qmi(&self) -> &Client<Nas>
pub const fn qmi(&self) -> &Client<Nas>
Returns the typed QMI client, for example to send a custom request.
pub fn set_sys_info_ind_reporting_limit(
&self,
limit: SysInfoLimit,
) -> RequestBuilder<'_, ()>
pub fn set_sys_info_ind_reporting_limit( &self, limit: SysInfoLimit, ) -> RequestBuilder<'_, ()>
Limits the indications of system information to some changes. An empty
mask removes the limit. Sends SetSysInfoIndReportingLimit.
pub fn set_system_selection_preference(
&self,
request: &SetSystemSelectionPreference<'_>,
) -> RequestBuilder<'_, ()>
pub fn set_system_selection_preference( &self, request: &SetSystemSelectionPreference<'_>, ) -> RequestBuilder<'_, ()>
Sets the system selection preference. Sends
SetSystemSelectionPreference.
pub fn sig_info(&self) -> RequestBuilder<'_, SignalInfo>
pub fn sig_info(&self) -> RequestBuilder<'_, SignalInfo>
Reads the signal strength. Sends GetSigInfo.
pub fn sys_info(&self) -> RequestBuilder<'_, SysInfo>
pub fn sys_info(&self) -> RequestBuilder<'_, SysInfo>
Reads the system information. Sends GetSysInfo.
pub fn sys_info_ind_reporting_limit(
&self,
) -> RequestBuilder<'_, SysInfoIndReportingLimit>
pub fn sys_info_ind_reporting_limit( &self, ) -> RequestBuilder<'_, SysInfoIndReportingLimit>
Reads the limit of system information indications. Sends
GetSysInfoIndReportingLimit.
pub fn system_selection_preference(
&self,
) -> RequestBuilder<'_, SystemSelectionPreference>
pub fn system_selection_preference( &self, ) -> RequestBuilder<'_, SystemSelectionPreference>
Reads the system selection preference. Sends
GetSystemSelectionPreference.