Searched refs:from_str (Results 1 – 4 of 4) sorted by relevance
85 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str() method86 serde_json::from_str::<Config>(s) in from_str()115 Ok(T::from_str(&config)?) in get_device_config()125 Ok(T::from_str(&value)?) in get_property()
145 .and_then(|s| Config::from_str(&s).ok()) in new()
69 Ok(SocketAddr::new(IpAddr::from_str(&self.address)?, self.port)) in to_socket_addr()
71 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str() method