#[repr(u8)]pub enum GatewayEventAction {
Add = 1,
Change = 2,
Delete = 3,
}Expand description
Gateway event action types
These correspond to batman-adv’s BATACTION uevent field.
Variants§
Add = 1
First gateway was selected (ADD)
This event is sent when a batman-adv node transitions to having a selected gateway. Applications should typically start a DHCP client on this event.
Change = 2
A better gateway was found (CHANGE)
This event is sent when a batman-adv node switches to a different gateway due to improved link quality or other selection criteria. Applications should typically renew their DHCP lease on this event.
Delete = 3
The selected gateway is no longer available (DEL)
This event is sent when the currently selected gateway disappears
and no alternative gateway is available. The gateway_mac field
will be None for this action.
Trait Implementations§
Source§impl Clone for GatewayEventAction
impl Clone for GatewayEventAction
Source§fn clone(&self) -> GatewayEventAction
fn clone(&self) -> GatewayEventAction
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 moreimpl Copy for GatewayEventAction
Source§impl Debug for GatewayEventAction
impl Debug for GatewayEventAction
Source§impl Display for GatewayEventAction
impl Display for GatewayEventAction
impl Eq for GatewayEventAction
Source§impl Hash for GatewayEventAction
impl Hash for GatewayEventAction
Source§impl PartialEq for GatewayEventAction
impl PartialEq for GatewayEventAction
Source§fn eq(&self, other: &GatewayEventAction) -> bool
fn eq(&self, other: &GatewayEventAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GatewayEventAction
Auto Trait Implementations§
impl Freeze for GatewayEventAction
impl RefUnwindSafe for GatewayEventAction
impl Send for GatewayEventAction
impl Sync for GatewayEventAction
impl Unpin for GatewayEventAction
impl UnsafeUnpin for GatewayEventAction
impl UnwindSafe for GatewayEventAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP