pub trait AsyncTryFromEnv {
type Error;
// Required method
fn new_from_env<'life0, 'async_trait>(
var_name: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Sized + 'async_trait;
}Expand description
Trait for asynchronously creating Self specifically from an environment variable name.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".