Struct rtnetlink::RouteAddRequest [−][src]
pub struct RouteAddRequest<T = ()> { /* fields omitted */ }
Expand description
A request to create a new route. This is equivalent to the ip route add
commands.
Implementations
Sets the input interface index.
Sets the output interface index.
Sets the route protocol.
Default is static route protocol.
Build an IP v4 route request
Build an IP v6 route request
Return a mutable reference to the request message.
Sets the source address prefix.
Sets the destination address prefix.
Sets the source address prefix.
Sets the destination address prefix.
Auto Trait Implementations
impl<T = ()> !RefUnwindSafe for RouteAddRequest<T>
impl<T> Send for RouteAddRequest<T> where
T: Send,
impl<T> Sync for RouteAddRequest<T> where
T: Sync,
impl<T> Unpin for RouteAddRequest<T> where
T: Unpin,
impl<T = ()> !UnwindSafe for RouteAddRequest<T>