Struct ublox_cellular::DataService[][src]

pub struct DataService<'a, C, CLK, const N: usize, const L: usize> where
    C: AtatClient,
    CLK: 'static + Clock
{ /* fields omitted */ }

Implementations

Trait Implementations

The type returned when we have an error

Resolve the hostname of a host, given its ip address Read more

Resolve the first ip address of a host, given its hostname and a desired address record type to look for Read more

Open a new TCP socket to the given address and port. The socket starts in the unconnected state.

Connect to the given remote host and port.

Check if this socket is still connected

Write to the stream. Returns the number of bytes written is returned (which may be less than buffer.len()), or an error.

Read from the stream. Returns Ok(n), which means n bytes of data have been received and they have been placed in &buffer[0..n], or an error.

Close an existing TCP socket.

The type returned when we have an error

The type returned when we create a new TCP socket

Open a new UDP socket to the given address and port. UDP is connectionless, so unlike TcpStack no connect() is required.

Send a datagram to the remote host.

Read a datagram the remote host has sent to us. Returns Ok(n), which means a datagram of size n has been received and it has been placed in &buffer[0..n], or an error.

Close an existing UDP socket.

The type returned when we have an error

The type returned when we create a new UDP socket

Connect a UDP socket with a peer using a dynamically selected port. 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.