remove SendStream's send_data as its behaviour is unclear

This commit is contained in:
François Michel 2023-07-10 11:30:31 +00:00
parent 78f68a6fa0
commit f33251d69b
1 changed files with 0 additions and 3 deletions

View File

@ -90,9 +90,6 @@ pub trait SendStream {
/// Polls if the stream can send more data.
fn poll_ready(&mut self, cx: &mut task::Context<'_>) -> Poll<Result<(), Error>>;
/// Send more data on the stream.
fn send_data<T: Buf>(&mut self, data: T) -> Result<(), Error>;
/// Poll to finish the sending side of the stream.
fn poll_finish(&mut self, cx: &mut task::Context<'_>) -> Poll<Result<(), Error>>;