pub struct Interface {
pub ifname: String,
pub active: bool,
}Expand description
Represents a network interface in the batman-adv mesh.
This struct provides the interface name and whether it is currently active within the mesh.
Fields§
§ifname: StringName of the interface, e.g., “eth0” or “bat0”.
active: boolIndicates whether this interface is currently active in the mesh.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin for Interface
impl UnwindSafe for Interface
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