pub trait FromStringValue: Sized + Any {
    // Required method
    fn from_str_value(
        context: &mut ConfigContext<'_>,
        value: &str
    ) -> Result<Self, ConfigError>;
}
Expand description

Get from string.

Required Methods§

source

fn from_str_value( context: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

Convert from string value.

Implementations on Foreign Types§

source§

impl FromStringValue for Shutdown

source§

fn from_str_value( context: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for SocketAddrV6

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for Ordering

source§

fn from_str_value( context: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for PathBuf

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for Ipv4Addr

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for IpAddr

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for Level

source§

fn from_str_value( context: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for OsString

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for SocketAddr

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for SocketAddrV4

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for Ipv6Addr

source§

fn from_str_value( _: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

source§

impl FromStringValue for LevelFilter

source§

fn from_str_value( context: &mut ConfigContext<'_>, value: &str ) -> Result<Self, ConfigError>

Implementors§