pub struct RouteInfo {
pub filter: IpCidr,
pub via: Option<IpAddress>,
pub interface_id: InterfaceId,
pub source: IpAddress,
pub metric: u32,
}Expand description
Public route snapshot.
Fields§
§filter: IpCidrDestination prefix.
via: Option<IpAddress>Optional gateway/next hop.
interface_id: InterfaceIdEgress interface.
source: IpAddressSource address selected by this route.
metric: u32Route metric; lower values are preferred.
Trait Implementations§
impl Copy for RouteInfo
impl Eq for RouteInfo
impl StructuralPartialEq for RouteInfo
Auto Trait Implementations§
impl Freeze for RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnsafeUnpin for RouteInfo
impl UnwindSafe for RouteInfo
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DmaPod for Twhere
T: Copy,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.