Struct ublox_cellular::command::dns::ResolveNameIp[][src]

pub struct ResolveNameIp<'a> {
    pub resolution_type: ResolutionType,
    pub ip_domain_string: &'a str,
}
Expand description

24.1 Resolve name / IP number through DNS +UDNSRN

Translates a domain name to an IP address or an IP address to a domain name by using an available DNS. There are two available DNSs, primary and secondary. The network usually provides them after a GPRS activation or a CSD establishment. They are automatically used in the resolution process if available. The resolver will use first the primary DNS, otherwise if there is no answer, the second DNS will be involved.

Notes:

  • TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / LISA-U1 / SARA-G4 / SARA-G3 / LEON-G1 The user can replace each network provided DNS by setting its own DNS for a PSD context by means of the +UPSD AT command. If a DNS value different from “0.0.0.0” is provided, the user DNS will replace the correspondent network-provided one. Usage of the network provided DNSs is recommended.
  • SARA-G3 / LEON-G1 The user can replace each network provided DNS by setting its own DNS for a CSD context by means of the +UCSD AT command. If a DNS value different from “0.0.0.0” is provided, the user DNS will replace the correspondent network-provided one. Usage of the network provided DNSs is recommended.
  • The DNS resolution timeout depends on the number of DNS servers available to the DNS resolution system. The response time for the DNS resolution is estimated in case 8 servers are used to perform this task.
  • Pay attention to the DNS setting for the different profiles since the user DNS can be put into action if the corresponding profile is activated (if the user sets a DNS for a profile, and a different profile is activated, the user DNS has no action and the network DNS is used if available).

Fields

resolution_type: ResolutionTypeip_domain_string: &'a str

Trait Implementations

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

The type of the error.

The max timeout in milliseconds.

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.

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.