Trait FromStringValue

Source
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.

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 FromStringValue for Ordering

Source§

fn from_str_value( context: &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 SocketAddr

Source§

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

Source§

impl FromStringValue for Shutdown

Source§

fn from_str_value( context: &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 LevelFilter

Source§

fn from_str_value( context: &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 Ipv6Addr

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 SocketAddrV6

Source§

fn from_str_value( _: &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 PathBuf

Source§

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

Implementors§

Source§

impl<V: FromStr<Err = E> + 'static, E: Error + 'static> FromStringValue for FromStrHolder<V>