pub async fn request_file(
    wormhole: Wormhole,
    relay_hints: Vec<RelayHint>,
    transit_abilities: Abilities,
    cancel: impl Future<Output = ()>
) -> Result<Option<ReceiveRequest>, TransferError>
Expand description

Wait for a file offer from the other side

This method waits for an offer message and builds up a ReceiveRequest. It will also start building a TCP connection to the other side using the transit protocol.

Returns None if the task got cancelled.