pub struct Gateway {
pub ip: IpAddr,
pub lladdr: Option<MacAddr>,
pub l2_state: NeighState,
pub is_router: bool,
}Expand description
The L3 default-route next-hop plus its L2 ARP/ND state. Having both lets the diagnostician say “your route points at 192.168.1.1 but it’s not answering ARP” rather than just “unreachable”.
Fields§
§ip: IpAddr§lladdr: Option<MacAddr>§l2_state: NeighState§is_router: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for Gateway
impl<'de> Deserialize<'de> for Gateway
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Gateway
impl StructuralPartialEq for Gateway
Auto Trait Implementations§
impl Freeze for Gateway
impl RefUnwindSafe for Gateway
impl Send for Gateway
impl Sync for Gateway
impl Unpin for Gateway
impl UnsafeUnpin for Gateway
impl UnwindSafe for Gateway
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