Trait AsyncCreateWithAndValidateEnv

Source
pub trait AsyncCreateWithAndValidateEnv:
    Sized
    + AsyncTryFromEnv
    + ValidateIntegrity<Error = <Self as AsyncTryFromEnv>::Error> {
    // Provided method
    fn new_from_env_and_validate<'life0, 'async_trait>(
        var_name: &'life0 str,
    ) -> Pin<Box<dyn Future<Output = Result<Self, <Self as AsyncTryFromEnv>::Error>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Trait that combines the environment creation with ValidateIntegrity.

Provided Methods§

Source

fn new_from_env_and_validate<'life0, 'async_trait>( var_name: &'life0 str, ) -> Pin<Box<dyn Future<Output = Result<Self, <Self as AsyncTryFromEnv>::Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§