FnPinBoxFutureSend

Trait FnPinBoxFutureSend 

Source
pub trait FnPinBoxFutureSend<T>:
    Fn() -> SendableAsyncTask<T>
    + Send
    + Sync { }
Expand description

A trait for thread-safe, reference-counted closures that produce a sendable async task.

Implementors§

Source§

impl<T, O> FnPinBoxFutureSend<O> for T
where T: Fn() -> SendableAsyncTask<O> + Send + Sync,

Blanket implementation of FnPinBoxFutureSend for any type that satisfies the bounds.