1 2 3 4 5 6 7
pub trait AsyncTryFrom<T>: Sized { /// The type returned in the event of a conversion error. type Error; /// Performs the conversion. fn try_from(value: T) -> impl std::future::Future<Output = Result<Self, Self::Error>> + Send; }