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 'life0: 'async_trait,
Self: Sized + 'async_trait;
}Expand description
Trait for creating instances asynchronously with input X
Required Associated Types§
Required Methods§
fn new<'life0, 'async_trait>(
input: &'life0 X,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sized + 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".