pub struct RouteAddRequest<T = ()> { /* private fields */ }
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 table.

Default is main route table.

Sets the route protocol.

Default is static route protocol.

Sets the route scope.

Default is universe route scope.

Sets the route kind.

Default is unicast route kind.

Build an IP v4 route request

Build an IP v6 route request

Replace existing matching route.

Execute the request.

Return a mutable reference to the request message.

Sets the source address prefix.

Sets the preferred source address.

Sets the destination address prefix.

Sets the gateway (via) address.

Sets the source address prefix.

Sets the preferred source address.

Sets the destination address prefix.

Sets the gateway (via) address.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.