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
sourceimpl<'a, T> Drop for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
impl<'a, T> Drop for Esp8266Socket<'a, T>where
T: Read + Write + 'a,
sourceimpl<'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.
sourceimpl<'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,
sourcefn read<'m>(&'m mut self, buf: &'m mut [u8]) -> Self::ReadFuture<'m>
fn read<'m>(&'m mut self, buf: &'m mut [u8]) -> Self::ReadFuture<'m>
Pull some bytes from this source into the specified buffer, returning how many bytes were read.
type ReadFuture<'m>
where
Self: 'm = impl Future<Output = Result<usize, <Esp8266Socket<'a, T> as Io>::Error>> + 'm
type ReadFuture<'m>
where
Self: 'm = impl Future<Output = Result<usize, <Esp8266Socket<'a, T> as Io>::Error>> + 'm
Future returned by
read
.sourcefn read_exact(
&'a mut self,
buf: &'a mut [u8]
) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>> + 'a
fn read_exact(
&'a mut self,
buf: &'a mut [u8]
) -> impl Future<Output = Result<(), ReadExactError<Self::Error>>> + 'a
Read the exact number of bytes required to fill
buf
.sourceimpl<'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,
sourcefn write<'m>(&'m mut self, buf: &'m [u8]) -> Self::WriteFuture<'m>
fn write<'m>(&'m mut self, buf: &'m [u8]) -> Self::WriteFuture<'m>
Write a buffer into this writer, returning how many bytes were written.
type FlushFuture<'m>
where
Self: 'm = impl Future<Output = Result<(), <Esp8266Socket<'a, T> as Io>::Error>> + 'm
type FlushFuture<'m>
where
Self: 'm = impl Future<Output = Result<(), <Esp8266Socket<'a, T> as Io>::Error>> + 'm
Future returned by flush
.
sourcefn flush<'m>(&'m mut self) -> Self::FlushFuture<'m>
fn flush<'m>(&'m mut self) -> Self::FlushFuture<'m>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
type WriteFuture<'m>
where
Self: 'm = impl Future<Output = Result<usize, <Esp8266Socket<'a, T> as Io>::Error>> + 'm
type WriteFuture<'m>
where
Self: 'm = impl Future<Output = Result<usize, <Esp8266Socket<'a, T> as Io>::Error>> + 'm
Future returned by
write
.Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for Esp8266Socket<'a, T>
impl<'a, T> !Send for Esp8266Socket<'a, T>
impl<'a, T> !Sync for Esp8266Socket<'a, T>
impl<'a, T> Unpin for Esp8266Socket<'a, T>
impl<'a, T> !UnwindSafe for Esp8266Socket<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more