pub struct TcpWriter<'a> { /* private fields */ }Expand description
The writer half of a TCP socket.
Implementations§
Trait Implementations§
Source§impl<'d> Write for TcpWriter<'d>
impl<'d> Write for TcpWriter<'d>
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.
Auto Trait Implementations§
impl<'a> Freeze for TcpWriter<'a>
impl<'a> !RefUnwindSafe for TcpWriter<'a>
impl<'a> !Send for TcpWriter<'a>
impl<'a> !Sync for TcpWriter<'a>
impl<'a> Unpin for TcpWriter<'a>
impl<'a> !UnwindSafe for TcpWriter<'a>
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