Struct ublox_cellular::command::ip_transport_layer::ReadSocketData[][src]

pub struct ReadSocketData {
    pub socket: SocketHandle,
    pub length: usize,
}
Expand description

25.12 Read Socket Data +USORD

Reads the specified amount of data from the specified socket, like the BSD read routine. This command can be used to know the total amount of unread data.

For the TCP socket type the URC +UUSORD: , notifies the data bytes available for reading, either when buffer is empty and new data arrives or after a partial read by the user.

For the UDP socket type the URC +UUSORD: , notifies that a UDP packet has been received, either when buffer is empty or after a UDP packet has been read and one or more packets are stored in the buffer.

In case of a partial read of a UDP packet +UUSORD: , will show the remaining number of data bytes of the packet the user is reading.

Fields

socket: SocketHandlelength: usize

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.