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§
Sourcefn from_str_value(
context: &mut ConfigContext<'_>,
value: &str,
) -> Result<Self, ConfigError>
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
impl FromStringValue for Ordering
fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for IpAddr
impl FromStringValue for IpAddr
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for SocketAddr
impl FromStringValue for SocketAddr
fn from_str_value( _: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for Shutdown
impl FromStringValue for Shutdown
fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for Level
Available on crate feature log only.
impl FromStringValue for Level
Available on crate feature
log only.fn from_str_value( context: &mut ConfigContext<'_>, value: &str, ) -> Result<Self, ConfigError>
Source§impl FromStringValue for LevelFilter
Available on crate feature log only.
impl FromStringValue for LevelFilter
Available on crate feature
log only.