FromEnv

Trait FromEnv 

Source
pub trait FromEnv: Sized {
    // Required method
    fn from_ctx(ctx: &mut Context) -> Result<Self>;

    // Provided method
    fn from_env() -> Result<Self> { ... }
}

Required Methods§

Source

fn from_ctx(ctx: &mut Context) -> Result<Self>

Provided Methods§

Source

fn from_env() -> Result<Self>

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§