Skip to main content

drive_messages

Function drive_messages 

Source
pub async fn drive_messages<H, T>(
    handshake: H,
    transport: &mut T,
) -> Result<Established<H::Output>, DriveError<H::Error>>
Expand description

drive_messages over an async message transport.

ยงErrors

DriveError when the transport fails or the handshake refuses the peer.