pub struct RuleAddRequest<T = ()> { /* private fields */ }
Expand description

A request to create a new rule. This is equivalent to the ip rule add command.

Implementations§

Sets the input interface name.

Sets the output interface name.

Sets the rule table.

Default is main rule table.

Set the tos.

Set action.

Build an IP v4 rule

Build an IP v6 rule

Replace existing matching rule.

Execute the request.

Sets the source address prefix.

Sets the destination address prefix.

Sets the source address prefix.

Sets the destination address prefix.

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.