Struct procfs::net::RouteEntry

source ·
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: String

Interface to which packets for this route will be sent

§destination: Ipv4Addr

The destination network or destination host

§gateway: Ipv4Addr§flags: u16§refcnt: u16

Number of references to this route

§in_use: u16

Count of lookups for the route

§metrics: u32

The ‘distance’ to the target (usually counted in hops)

§mask: Ipv4Addr§mtu: u32

Default maximum transmission unit for TCP connections over this route

§window: u32

Default window size for TCP connections over this route

§irtt: u32

Initial RTT (Round Trip Time)

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.