pub enum VrrpConfig {
File(FileConfig),
Cli(CliConfig),
}Variants§
File(FileConfig)
Cli(CliConfig)
Implementations§
Source§impl VrrpConfig
impl VrrpConfig
pub fn name(&self) -> String
pub fn vrid(&self) -> u8
pub fn ip_addresses(&self) -> Vec<String>
pub fn interface_name(&self) -> String
pub fn priority(&self) -> u8
pub fn advert_interval(&self) -> u8
pub fn preempt_mode(&self) -> bool
pub fn action(&self) -> Action
Trait Implementations§
Source§impl Clone for VrrpConfig
impl Clone for VrrpConfig
Source§fn clone(&self) -> VrrpConfig
fn clone(&self) -> VrrpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VrrpConfig
impl RefUnwindSafe for VrrpConfig
impl Send for VrrpConfig
impl Sync for VrrpConfig
impl Unpin for VrrpConfig
impl UnsafeUnpin for VrrpConfig
impl UnwindSafe for VrrpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more