async_compression/tokio/write/buf_writer.rs
1// Originally sourced from `futures_util::io::buf_writer`, needs to be redefined locally so that
2// the `AsyncBufWrite` impl can access its internals, and changed a bit to make it more efficient
3// with those methods.
4
5use crate::generic::write::impl_buf_writer;
6use std::{
7 io,
8 pin::Pin,
9 task::{Context, Poll},
10};
11use tokio::io::AsyncWrite;
12
13impl_buf_writer!(poll_shutdown);