Struct dht_logger::DhtLoggerConfig
source · [−]pub struct DhtLoggerConfig {
pub port: PathBuf,
pub baud: u32,
pub logger_config: HashMap<String, Value>,
}
Expand description
Configuration of a DHT Logger client.
Example configuration YAML:
port: /dev/ttyUSB0
baud: 115200
logger_config:
verbose: true
Fields
port: PathBuf
baud: u32
logger_config: HashMap<String, Value>
Implementations
sourceimpl DhtLoggerConfig
impl DhtLoggerConfig
sourcepub fn load_yaml(config_file: &Path) -> DhtLoggerConfig
pub fn load_yaml(config_file: &Path) -> DhtLoggerConfig
Load a YAML config file into a config struct
Trait Implementations
sourceimpl Debug for DhtLoggerConfig
impl Debug for DhtLoggerConfig
sourceimpl<'de> Deserialize<'de> for DhtLoggerConfig
impl<'de> Deserialize<'de> for DhtLoggerConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for DhtLoggerConfig
impl Serialize for DhtLoggerConfig
Auto Trait Implementations
impl RefUnwindSafe for DhtLoggerConfig
impl Send for DhtLoggerConfig
impl Sync for DhtLoggerConfig
impl Unpin for DhtLoggerConfig
impl UnwindSafe for DhtLoggerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more