pub struct RouteEntry {
pub proto: Protocol,
pub dest: Destination,
pub gateway: Destination,
pub flags: HashSet<RoutingFlag>,
pub net_if: String,
pub expires: Option<Duration>,
}
Expand description
A single route obtained from the netstat -rn
output
Fields§
§proto: Protocol
Protocol
dest: Destination
Destination. E.g., a host or CIDR
gateway: Destination
Gateway (i.e., how to reach the destination)
flags: HashSet<RoutingFlag>
Routing flags
net_if: String
Network interface that holds this route
expires: Option<Duration>
RouteEntry expiration. This is primarily seen for ARP-derived entries
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
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