Skip to main content

complete_stream_until

Function complete_stream_until 

Source
pub async fn complete_stream_until<H, T>(
    handshake: H,
    io: &mut T,
    deadline: Instant,
) -> Result<H, DriveError<H::Error>>
where H: Handshake, T: AsyncRead + AsyncWrite + Unpin,
Expand description

complete_stream that ends at deadline, as drive_stream_until does.

ยงErrors

As drive_stream_until.