Struct StartNetwork
pub struct StartNetwork {
pub profile_index: Option<ProfileIndex>,
pub apn: Option<Apn>,
pub ip_family: Option<IpFamilyPreference>,
pub auth_preference: Option<AuthPreference>,
pub username: Option<Username>,
pub password: Option<Password>,
}Expand description
Starts a data call (QMI_WDS_START_NETWORK_INTERFACE).
Send it with Client::start_network,
which returns the reason if the network refuses the call.
The call uses the settings of a 3GPP profile. Name the profile with
profile_index. The other fields override the
profile for this call, except the APN. The IDL says that the modem ignores
the APN if a profile is given.
The request has a timeout of 120 seconds, a conservative bound for a PDP context activation with retries. If the request times out, the modem may still bring the call up.
Fields§
§profile_index: Option<ProfileIndex>3GPP profile for the call.
apn: Option<Apn>Access point name.
ip_family: Option<IpFamilyPreference>IP family of the call.
auth_preference: Option<AuthPreference>Allowed authentication protocols.
username: Option<Username>User name for authentication.
password: Option<Password>Password for authentication.
Trait Implementations§
§impl Clone for StartNetwork
impl Clone for StartNetwork
§fn clone(&self) -> StartNetwork
fn clone(&self) -> StartNetwork
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for StartNetwork
impl Debug for StartNetwork
§impl Default for StartNetwork
impl Default for StartNetwork
§fn default() -> StartNetwork
fn default() -> StartNetwork
Returns the “default value” for a type. Read more
impl Eq for StartNetwork
§impl PartialEq for StartNetwork
impl PartialEq for StartNetwork
§impl Request for StartNetwork
impl Request for StartNetwork
§type Response = StartedNetwork
type Response = StartedNetwork
Response message.
impl StructuralPartialEq for StartNetwork
Auto Trait Implementations§
impl !Freeze for StartNetwork
impl RefUnwindSafe for StartNetwork
impl Send for StartNetwork
impl Sync for StartNetwork
impl Unpin for StartNetwork
impl UnsafeUnpin for StartNetwork
impl UnwindSafe for StartNetwork
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more