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 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

Execute the request.

Return a mutable reference to the request message.

Sets the source address prefix.

Sets the destination address prefix.

Sets the gateway (via) address.

Sets the source address prefix.

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

Performs the conversion.

Performs the conversion.

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.