Struct ublox_cellular::command::psn::SetAuthParameters[][src]

pub struct SetAuthParameters<'a> {
    pub cid: ContextId,
    pub auth_type: AuthenticationType,
    pub username: &'a str,
    pub password: &'a str,
}
Expand description

18.39 Configure the authentication parameters of a PDP/EPS bearer +UAUTHREQ

Configures the authentication parameters of a defined PDP/EPS bearer. The authentication parameters will be sent during the context activation phase as a protocol configuration options (PCO) information element.

NOTES:

  • LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / SARA-G3 - When <auth_type>=3 is set, AT+CGACT=1, may trigger at most 3 PDP context activation requests for to the protocol stack. The first request for is done with no authentication. If the PDP context activation fails, a second attempt is triggered with PAP authentication. If the second PDP context activation fails, a third attempt is triggered with CHAP authentication. These 3 PDP context activation requests are not to be confused with the effective number of request PDP context activations sent to the network (see the 3GPP TS 24.008 [12]).
  • TOBY-L4 / TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / SARA-G4 / SARA-G3 - The command returns an error result code if the input is already active or not yet defined.

Fields

cid: ContextIdauth_type: AuthenticationTypeusername: &'a strpassword: &'a str

Trait Implementations

The type of the response. Must implement the AtatResp trait.

The type of the error.

Return the command as a heapless Vec of bytes.

Parse the response into a Self::Response or Error<Self::Error> instance.

Whether or not this command can be aborted.

The max timeout in milliseconds.

Force the ingress manager into receive state immediately after sending the command. Read more

Force client to look for a response. Empty slice is then passed to parse by client. Implemented to enhance expandability fo ATAT Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.