pub struct TcpConnection<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> { /* private fields */ }
Expand description
Opened TCP connection in a TcpClient
.
Trait Implementations§
Source§impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Drop for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Drop for TcpConnection<'d, N, TX_SZ, RX_SZ>
Source§impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> ErrorType for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> ErrorType for TcpConnection<'d, N, TX_SZ, RX_SZ>
Source§impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Read for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Read for TcpConnection<'d, N, TX_SZ, RX_SZ>
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>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async 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<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Write for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Write for TcpConnection<'d, N, TX_SZ, RX_SZ>
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. Read more
Auto Trait Implementations§
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Freeze for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> !RefUnwindSafe for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> !Send for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> !Sync for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> Unpin for TcpConnection<'d, N, TX_SZ, RX_SZ>
impl<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> !UnwindSafe for TcpConnection<'d, N, TX_SZ, RX_SZ>
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