Trait nix_netconfig::systemd::NetworkConfigLoader [] [src]

pub trait NetworkConfigLoader {
    fn new(path: &'static str) -> Self;
    fn is_dhcp(&self) -> bool;
    fn ip_addres(&self) -> Option<IPv4Network>;
    fn gateway(&self) -> Option<Ipv4Addr>;
    fn get_settings_section(&self) -> Option<String>;
    fn dns(&self) -> Option<Vec<Ipv4Addr>>;
    fn enable_dhcp(&self) -> Result<()Error>;
    fn static_ip(&self, address: &str, gateway: &str) -> Result<()StaticIPError>;
}

Required Methods

fn new(path: &'static str) -> Self

fn is_dhcp(&self) -> bool

fn ip_addres(&self) -> Option<IPv4Network>

fn gateway(&self) -> Option<Ipv4Addr>

fn get_settings_section(&self) -> Option<String>

fn dns(&self) -> Option<Vec<Ipv4Addr>>

fn enable_dhcp(&self) -> Result<()Error>

fn static_ip(&self, address: &str, gateway: &str) -> Result<()StaticIPError>

Implementors