Trait AsyncTryFrom

Source
pub trait AsyncTryFrom<X> {
    type Error;

    // Required method
    fn new<'life0, 'async_trait>(
        input: &'life0 X,
    ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
       where Self: Sized + 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for creating instances asynchronously with input X

Required Associated Types§

Required Methods§

Source

fn new<'life0, 'async_trait>( input: &'life0 X, ) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
where Self: Sized + 'async_trait, 'life0: 'async_trait,

Implementors§