async_openai/
traits.rs

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