relay

Function relay 

Source
async fn relay(
    pipe: DuplexStream,
    events: UnboundedSender<HostEvent>,
    wire: UnboundedReceiver<Vec<u8>>,
)
Expand description

Carry the pipe to the device and back until the host lets go, which stops the device.