pub struct EspHttpRawConnection<'a>(/* private fields */);
Implementations§
Source§impl EspHttpRawConnection<'_>
impl EspHttpRawConnection<'_>
pub fn read(&mut self, buf: &mut [u8]) -> Result<usize, EspError>
pub fn write(&mut self, buf: &[u8]) -> Result<usize, EspError>
pub fn write_all(&mut self, data: &[u8]) -> Result<(), EspError>
Sourcepub fn source_ipv4(&self) -> Result<Ipv4Addr, EspError>
pub fn source_ipv4(&self) -> Result<Ipv4Addr, EspError>
Retrieves the source IPv4 of the request.
The IPv4 is retrieved using the underlying session socket.
Sourcepub fn source_ipv6(&self) -> Result<Ipv6Addr, EspError>
pub fn source_ipv6(&self) -> Result<Ipv6Addr, EspError>
Retrieves the source IPv6 of the request.
The IPv6 is retrieved using the underlying session socket.
Trait Implementations§
Source§impl ErrorType for EspHttpRawConnection<'_>
impl ErrorType for EspHttpRawConnection<'_>
Source§type Error = EspIOError
type Error = EspIOError
Error type of all the IO operations on this type.
Source§impl RawHandle for EspHttpRawConnection<'_>
impl RawHandle for EspHttpRawConnection<'_>
Source§impl Read for EspHttpRawConnection<'_>
impl Read for EspHttpRawConnection<'_>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf
. Read moreSource§impl Write for EspHttpRawConnection<'_>
impl Write for EspHttpRawConnection<'_>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.