pub struct Socket {
pub family: String<5>,
pub type_: String<6>,
pub protocol: String<3>,
}Expand description
Create a socket
Fields§
§family: String<5>§type_: String<6>§protocol: String<3>Trait Implementations§
Source§impl AtatCmd<AtatCmd> for Socket
impl AtatCmd<AtatCmd> for Socket
Source§const MAX_TIMEOUT_MS: u32 = 100u32
const MAX_TIMEOUT_MS: u32 = 100u32
The max timeout in milliseconds.
Source§type Response = EmptyResponse
type Response = EmptyResponse
The type of the response. Must implement the
AtatResp trait.Source§fn parse(
&self,
res: Result<&[u8], InternalError<'_>>,
) -> Result<Self::Response, Error>
fn parse( &self, res: Result<&[u8], InternalError<'_>>, ) -> Result<Self::Response, Error>
Parse the response into a
Self::Response or Error instance.Source§const ATTEMPTS: u8 = 1u8
const ATTEMPTS: u8 = 1u8
The max number of times to attempt a command with automatic retries if
using
send_retry.Source§const EXPECTS_RESPONSE_CODE: bool = true
const EXPECTS_RESPONSE_CODE: bool = true
Force client to look for a response.
Empty slice is then passed to parse by client.
Implemented to enhance expandability of ATAT
fn get_slice<'a>(&'a self, bytes: &'a Vec<u8, LEN>) -> &'a [u8]
Auto Trait Implementations§
impl Freeze for Socket
impl RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl UnwindSafe for Socket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more