pub struct RouteEntry {
pub iface: String,
pub destination: Ipv4Addr,
pub gateway: Ipv4Addr,
pub flags: u16,
pub refcnt: u16,
pub in_use: u16,
pub metrics: u32,
pub mask: Ipv4Addr,
pub mtu: u32,
pub window: u32,
pub irtt: u32,
}Expand description
An entry in the ipv4 route table
Fields§
§iface: StringInterface to which packets for this route will be sent
destination: Ipv4AddrThe destination network or destination host
gateway: Ipv4Addr§flags: u16§refcnt: u16Number of references to this route
in_use: u16Count of lookups for the route
metrics: u32The ‘distance’ to the target (usually counted in hops)
mask: Ipv4Addr§mtu: u32Default maximum transmission unit for TCP connections over this route
window: u32Default window size for TCP connections over this route
irtt: u32Initial RTT (Round Trip Time)
Trait Implementations§
Source§impl Clone for RouteEntry
impl Clone for RouteEntry
Source§fn clone(&self) -> RouteEntry
fn clone(&self) -> RouteEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 RouteEntry
impl Debug for RouteEntry
Source§impl<'de> Deserialize<'de> for RouteEntry
impl<'de> Deserialize<'de> for RouteEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RouteEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RouteEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RouteEntry
impl Serialize for RouteEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for RouteEntry
impl RefUnwindSafe for RouteEntry
impl Send for RouteEntry
impl Sync for RouteEntry
impl Unpin for RouteEntry
impl UnwindSafe for RouteEntry
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