Skip to main content

complete_stream

Function complete_stream 

Source
pub fn complete_stream<H, T>(
    handshake: H,
    io: &mut T,
) -> Result<H, DriveError<H::Error>>
where H: Handshake, T: Read + Write,
Expand description

drive_stream without the final finish: returns the handshake once it is_complete, with everything it queued sent.

For a method whose own way of finishing differs from Handshake::finish, such as a TLS server that does not authenticate its client at that layer and so has no verified peer to name. The caller finishes it with the method’s own call.

§Errors

As drive_stream.