Implemented poll_flush for Box<S:Socket> (#2742)

This commit is contained in:
Bogdan Mircea 2023-09-12 05:02:38 +03:00 committed by GitHub
parent 2e4533eb32
commit 4d12ca4e1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,6 +173,10 @@ impl<S: Socket + ?Sized> Socket for Box<S> {
(**self).poll_write_ready(cx)
}
fn poll_flush(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
(**self).poll_flush(cx)
}
fn poll_shutdown(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<()>> {
(**self).poll_shutdown(cx)
}