pub struct TcpWriteHalf(/* private fields */);Trait Implementations§
Source§impl WriteOwned for TcpWriteHalf
impl WriteOwned for TcpWriteHalf
Source§async fn write_owned(
&mut self,
buf: impl Into<Piece>,
) -> BufResult<usize, Piece>
async fn write_owned( &mut self, buf: impl Into<Piece>, ) -> BufResult<usize, Piece>
Write a single buffer, taking ownership for the duration of the write.
Might perform a partial write, see WriteOwned::write_all_owned
Source§async fn writev_owned(&mut self, list: &PieceList) -> Result<usize>
async fn writev_owned(&mut self, list: &PieceList) -> Result<usize>
Write a list of buffers, taking ownership for the duration of the write.
Might perform a partial write, see WriteOwned::writev_all_owned
Source§async fn shutdown(&mut self) -> Result<()>
async fn shutdown(&mut self) -> Result<()>
Shuts down the write end of this socket. This flushes
any data that may not have been send.
Auto Trait Implementations§
impl Freeze for TcpWriteHalf
impl RefUnwindSafe for TcpWriteHalf
impl !Send for TcpWriteHalf
impl !Sync for TcpWriteHalf
impl Unpin for TcpWriteHalf
impl UnwindSafe for TcpWriteHalf
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