pub struct Config {
pub ip_address: Ipv4Addr,
pub port: u16,
pub directory: PathBuf,
}Expand description
Configuration struct used for parsing TFTP options from user
input.
This struct is meant to be created by Config::new(). See its
documentation for more.
Example
// Create TFTP configuration from user arguments.
use std::env;
use tftpd::Config;
let config = Config::new(env::args()).unwrap();Fields§
§ip_address: Ipv4AddrLocal IP address of the TFTP Server. (default: 127.0.0.1)
port: u16Local Port number of the TFTP Server. (default: 69)
directory: PathBufDefault directory of the TFTP Server. (default: current working directory)