Struct TcpConnection
pub struct TcpConnection<'d, const N: usize, const TX_SZ: usize, const RX_SZ: usize> { /* private fields */ }
Available on crate feature
tcp
only.Expand description
Opened TCP connection in a TcpClient
.
Trait Implementations§
§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>
§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>
§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>
§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>
§async fn write(
&mut self,
buf: &[u8],
) -> Result<usize, <TcpConnection<'d, N, TX_SZ, RX_SZ> as ErrorType>::Error>
async fn write( &mut self, buf: &[u8], ) -> Result<usize, <TcpConnection<'d, N, TX_SZ, RX_SZ> as ErrorType>::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
§async fn flush(
&mut self,
) -> Result<(), <TcpConnection<'d, N, TX_SZ, RX_SZ> as ErrorType>::Error>
async fn flush( &mut self, ) -> Result<(), <TcpConnection<'d, N, TX_SZ, RX_SZ> as ErrorType>::Error>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination.
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