Skip to main content

close

Function close 

Source
pub async fn close<S: AsyncWrite + Unpin>(stream: &mut S) -> Result<()>
Expand description

Gracefully close after flushing accepted writes.