Skip to main content

drive_async_stream

Function drive_async_stream 

Source
pub async fn drive_async_stream<S, D>(
    policy: StreamPolicy,
    source: &mut S,
    sink: &mut D,
    scratch: &mut [u8],
    outcome: &mut StreamOutcome,
) -> Result<StreamCompletion, StreamExecutionError<S::Error, D::Error>>
Expand description

Drives one cross-thread asynchronous transfer without owning an executor.