1 2 3 4 5
use futures::Future; pub trait AsyncFrom<T> { fn async_from(value: T) -> impl Future<Output = Self>; }