Skip to main content

DataTaskResultReceiver

Trait DataTaskResultReceiver 

Source
pub trait DataTaskResultReceiver<T: Send + 'static>: Send + Sync {
    // Required method
    fn try_recv(&self) -> Option<T>;
}
Expand description

A result receiver for completed async data tasks.

Implementations should be non-blocking: try_recv returns None when no result is available yet.

Required Methods§

Source

fn try_recv(&self) -> Option<T>

Try to receive a completed result without blocking.

Returns Some(result) if a result is ready, None otherwise.

Implementors§