Skip to main content

SetSystemSelectionPreference

Struct SetSystemSelectionPreference 

pub struct SetSystemSelectionPreference<'a> {
Show 14 fields pub emergency_mode: Option<bool>, pub mode_preference: Option<ModePreference>, pub band_preference: Option<u64>, pub roam_preference: Option<RoamPreference>, pub lte_band_preference: Option<u64>, pub network_selection: Option<NetworkSelection>, pub change_duration: Option<ChangeDuration>, pub service_domain_preference: Option<ServiceDomainPreference>, pub gw_acquisition_order: Option<GwAcquisitionOrder>, pub tdscdma_band_preference: Option<u64>, pub acquisition_order: Option<AcquisitionOrder<'a>>, pub service_registration_restriction: Option<ServiceRegistrationRestriction>, pub usage_setting: Option<UsagePreference>, pub voice_domain_preference: Option<VoiceDomainPreference>,
}
Expand description

Sets the system selection preference (QMI_NAS_SET_SYSTEM_SELECTION_PREFERENCE).

Fields set to None are left unchanged. Without change_duration the change is permanent.

The encoder’s IDL table also has TLVs 0x1B and 0x1C with the same fields as service_domain_preference and gw_acquisition_order. The C struct doesn’t have them. This crate only sends 0x18 and 0x19.

Fields§

§emergency_mode: Option<bool>

Emergency mode (emergency_mode).

§mode_preference: Option<ModePreference>

Allowed radio technologies (mode_pref).

§band_preference: Option<u64>

GSM, WCDMA and CDMA bands, as the raw nas_band_pref_mask_type_v01 mask (band_pref).

§roam_preference: Option<RoamPreference>

Roaming preference (roam_pref).

§lte_band_preference: Option<u64>

LTE bands 1 to 64, as the raw lte_band_pref_mask_type_v01 mask. Bit 0 is band 1 (lte_band_pref).

§network_selection: Option<NetworkSelection>

Automatic or manual network selection (net_sel_pref and mnc_includes_pcs_digit).

§change_duration: Option<ChangeDuration>

How long the change lasts (change_duration).

§service_domain_preference: Option<ServiceDomainPreference>

Service domain preference (srv_domain_pref).

§gw_acquisition_order: Option<GwAcquisitionOrder>

Acquisition order of GSM and WCDMA (gw_acq_order_pref).

§tdscdma_band_preference: Option<u64>

TD-SCDMA bands, as the raw nas_tdscdma_band_pref_mask_type_v01 mask (tdscdma_band_pref).

§acquisition_order: Option<AcquisitionOrder<'a>>

Order in which the modem tries radio technologies (acq_order).

§service_registration_restriction: Option<ServiceRegistrationRestriction>

Registration restriction (srv_reg_restriction).

§usage_setting: Option<UsagePreference>

Usage setting (usage_setting).

§voice_domain_preference: Option<VoiceDomainPreference>

Voice domain preference (voice_domain_pref).

Trait Implementations§

§

impl<'a> Clone for SetSystemSelectionPreference<'a>

§

fn clone(&self) -> SetSystemSelectionPreference<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'a> Copy for SetSystemSelectionPreference<'a>

§

impl<'a> Debug for SetSystemSelectionPreference<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl<'a> Default for SetSystemSelectionPreference<'a>

§

fn default() -> SetSystemSelectionPreference<'a>

Returns the “default value” for a type. Read more
§

impl<'a> Eq for SetSystemSelectionPreference<'a>

§

impl<'a> PartialEq for SetSystemSelectionPreference<'a>

§

fn eq(&self, other: &SetSystemSelectionPreference<'a>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl Request for SetSystemSelectionPreference<'_>

§

const ID: u16 = 0x0033

Message ID.
§

type Response = ()

Response message.
§

type Service = Nas

Service that the request belongs to.
§

fn encode(&self, tlvs: &mut TlvWriter)

Writes the TLVs of the request.
Source§

const TIMEOUT: Option<Duration> = None

Timeout of the request, if it differs from the client’s default.
Source§

fn decode_response(response: Message) -> Result<Self::Response, Error>

Checks and decodes the response. Read more
§

impl<'a> StructuralPartialEq for SetSystemSelectionPreference<'a>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more