pub struct InterfaceProperties {
pub iftype: InterfaceType,
pub mtu: u32,
/* private fields */
}Expand description
Properties of an interface (flags, MTU) as seen by Bird
Fields§
§iftype: InterfaceType§mtu: u32Implementations§
Source§impl InterfaceProperties
impl InterfaceProperties
Sourcepub fn from_enum(message: &Message) -> Option<Self>
pub fn from_enum(message: &Message) -> Option<Self>
Parse the response of a 1004 response. Returns None if message isn’t a
Message::InterfaceFlags, or if we encounter an unrecoverable error during
parsing.
Details here
Sourcepub fn is_broadcast_set(&self) -> bool
pub fn is_broadcast_set(&self) -> bool
Interface has broadcast address set
Sourcepub fn is_multicast_set(&self) -> bool
pub fn is_multicast_set(&self) -> bool
Interface supports multicast
Sourcepub fn is_admin_up(&self) -> bool
pub fn is_admin_up(&self) -> bool
Interface is up & running
Sourcepub fn is_link_up(&self) -> bool
pub fn is_link_up(&self) -> bool
Interface has its lower link up
Sourcepub fn is_loopback(&self) -> bool
pub fn is_loopback(&self) -> bool
Interface is a loopback device
Sourcepub fn is_ignored_for_routing(&self) -> bool
pub fn is_ignored_for_routing(&self) -> bool
Interface is ignored by routing protocols
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InterfaceProperties
impl RefUnwindSafe for InterfaceProperties
impl Send for InterfaceProperties
impl Sync for InterfaceProperties
impl Unpin for InterfaceProperties
impl UnwindSafe for InterfaceProperties
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