toe-beans 0.11.0

DHCP library, client, and server
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::v4::SocketConfig;
use clap::Args;

/// Configuration that can be passed in via the command line or programmatically to a Client
#[derive(Args, Debug)]
pub struct ClientConfig {
    /// Used to configure the `Client`'s `Socket`.
    #[command(flatten)]
    pub socket_config: SocketConfig,
}

impl Default for ClientConfig {
    fn default() -> Self {
        Self {
            socket_config: SocketConfig::default_client(),
        }
    }
}