[−][src]Struct ublox_cellular::command::ip_transport_layer::ReadSocketData
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:
For the UDP socket type the URC +UUSORD:
In case of a partial read of a UDP packet +UUSORD:
Fields
socket: SocketHandle
length: 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
pub fn as_bytes(&self) -> Vec<u8, Self::CommandLen>
[src]
pub fn parse(&self, resp: &[u8]) -> Result<SocketData, Error>
[src]
pub fn can_abort(&self) -> bool
[src]
pub fn max_timeout_ms(&self) -> u32
[src]
pub fn force_receive_state(&self) -> bool
[src]
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]
pub fn clone(&self) -> ReadSocketData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Serialize for ReadSocketData
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,