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§
source§impl Clone for RouteEntry
impl Clone for RouteEntry
source§fn clone(&self) -> RouteEntry
fn clone(&self) -> RouteEntry
Returns a copy 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<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
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)