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

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

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

impl AtatCmd for ReadSocketData[src]

type Response = SocketData

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

type CommandLen = <Self::Len as Add<U11>>::Output

The max length of the command. Read more

impl AtatLen for ReadSocketData[src]

type Len = <<usize as AtatLen>::Len as Add<<<SocketHandle as AtatLen>::Len as Add<U1>>::Output>>::Output

impl Clone for ReadSocketData[src]

impl Serialize for ReadSocketData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.