pub struct RoutingBuilder { /* private fields */ }Expand description
Builder for Routing.
Implementations§
Source§impl RoutingBuilder
impl RoutingBuilder
pub fn oif_index(&mut self, value: i32) -> &mut Self
pub fn iif_index(&mut self, value: i32) -> &mut Self
pub fn family(&mut self, value: u8) -> &mut Self
pub fn dst(&mut self, value: Option<IpNet>) -> &mut Self
pub fn src(&mut self, value: Option<IpAddr>) -> &mut Self
pub fn gw(&mut self, value: Option<IpAddr>) -> &mut Self
pub fn tos(&mut self, value: u8) -> &mut Self
pub fn table(&mut self, value: u8) -> &mut Self
pub fn protocol(&mut self, value: u8) -> &mut Self
pub fn scope(&mut self, value: u8) -> &mut Self
pub fn rtm_type(&mut self, value: u8) -> &mut Self
pub fn via(&mut self, value: Option<Via>) -> &mut Self
pub fn mtu(&mut self, value: Option<u32>) -> &mut Self
pub fn flags(&mut self, value: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for RoutingBuilder
impl Clone for RoutingBuilder
Source§fn clone(&self) -> RoutingBuilder
fn clone(&self) -> RoutingBuilder
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 moreAuto Trait Implementations§
impl Freeze for RoutingBuilder
impl RefUnwindSafe for RoutingBuilder
impl Send for RoutingBuilder
impl Sync for RoutingBuilder
impl Unpin for RoutingBuilder
impl UnwindSafe for RoutingBuilder
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