Skip to main content

Interface

Trait Interface 

Source
pub trait Interface {
    type Error;

    // Required methods
    fn get_iface_configuration(&self) -> Result<Configuration, Self::Error>;
    fn set_iface_configuration(
        &mut self,
        conf: &Configuration,
    ) -> Result<(), Self::Error>;
    fn is_iface_up(&self) -> bool;
    fn get_ip_info(&self) -> Result<IpInfo, Self::Error>;
}

Required Associated Types§

Required Methods§

Implementors§