Struct esp8266_at_driver::Esp8266Socket
source · Expand description
A handle for a connection using the Esp8266 driver. The socket is closed when the instance is drop’ed.
Trait Implementations§
source§impl<'a, T> Io for Esp8266Socket<'a, T>where
T: Read + Write,
impl<'a, T> Io for Esp8266Socket<'a, T>where
T: Read + Write,
§type Error = DriverError
type Error = DriverError
Error type of all the IO operations on this type.
source§impl<'a, T> Read for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
impl<'a, T> Read for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
source§async fn read_exact(
&mut self,
buf: &mut [u8]
) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>>
async fn read_exact(
&mut self,
buf: &mut [u8]
) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>>
Read the exact number of bytes required to fill
buf
.source§impl<'a, T> Write for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
impl<'a, T> Write for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written.