Skip to main content

EnvParse

Trait EnvParse 

Source
pub(super) trait EnvParse: Sized {
    // Required method
    fn parse(value: EnvValue) -> Result<Self>;
}

Required Methods§

Source

fn parse(value: EnvValue) -> 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.

Implementations on Foreign Types§

Source§

impl EnvParse for IpAddr

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for SocketAddr

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for bool

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for u8

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for u16

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for u64

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for usize

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for String

Source§

fn parse(value: EnvValue) -> Result<Self>

Source§

impl EnvParse for Duration

Source§

fn parse(value: EnvValue) -> Result<Self>

Implementors§