pub struct Ipv4Route {
pub dest_prefix: u8,
pub destination: Ipv4Addr,
pub gateway: Option<Ipv4Addr>,
pub out_if_index: Option<u32>,
pub priority: u32,
}Expand description
Represents an IPv4 route.
Fields§
§dest_prefix: u8The destination prefix length (CIDR).
destination: Ipv4AddrThe destination IPv4 address.
gateway: Option<Ipv4Addr>The gateway IP address, if any.
out_if_index: Option<u32>The index of the output interface.
priority: u32The priority of the route. Lower values are preferred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ipv4Route
impl RefUnwindSafe for Ipv4Route
impl Send for Ipv4Route
impl Sync for Ipv4Route
impl Unpin for Ipv4Route
impl UnwindSafe for Ipv4Route
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more