pub struct MeshSelector {
pub name: Option<String>,
pub ifindex: Option<u32>,
}Expand description
Selects a BATMAN-adv mesh interface either by interface name or by ifindex.
Fields§
§name: Option<String>Selects the mesh interface by interface name (for example, "bat0").
ifindex: Option<u32>Selects the mesh interface by Linux interface index.
Implementations§
Source§impl MeshSelector
impl MeshSelector
Sourcepub fn builder() -> MeshSelectorBuilder
pub fn builder() -> MeshSelectorBuilder
Creates an empty selector.
Sourcepub const fn with_ifindex(ifindex: u32) -> Self
pub const fn with_ifindex(ifindex: u32) -> Self
Creates a selector from an interface index.
Trait Implementations§
Source§impl Clone for MeshSelector
impl Clone for MeshSelector
Source§fn clone(&self) -> MeshSelector
fn clone(&self) -> MeshSelector
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 moreSource§impl Debug for MeshSelector
impl Debug for MeshSelector
Source§impl Default for MeshSelector
impl Default for MeshSelector
Source§fn default() -> MeshSelector
fn default() -> MeshSelector
Returns the “default value” for a type. Read more
impl Eq for MeshSelector
Source§impl PartialEq for MeshSelector
impl PartialEq for MeshSelector
Source§fn eq(&self, other: &MeshSelector) -> bool
fn eq(&self, other: &MeshSelector) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MeshSelector
Source§impl Validate for MeshSelector
impl Validate for MeshSelector
Auto Trait Implementations§
impl Freeze for MeshSelector
impl RefUnwindSafe for MeshSelector
impl Send for MeshSelector
impl Sync for MeshSelector
impl Unpin for MeshSelector
impl UnsafeUnpin for MeshSelector
impl UnwindSafe for MeshSelector
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