Struct nispor::RouteRule[][src]

pub struct RouteRule {
Show 23 fields pub action: RuleAction, pub address_family: AddressFamily, pub flags: u32, pub tos: u8, pub table: Option<u32>, pub dst: Option<String>, pub src: Option<String>, pub iif: Option<String>, pub oif: Option<String>, pub goto: Option<u32>, pub priority: Option<u32>, pub fw_mark: Option<u32>, pub fw_mask: Option<u32>, pub mask: Option<u32>, pub flow: Option<u32>, pub tun_id: Option<u32>, pub suppress_ifgroup: Option<u32>, pub suppress_prefix_len: Option<u32>, pub protocol: Option<RouteProtocol>, pub ip_proto: Option<AddressFamily>, pub src_port_range: Option<Vec<u8>>, pub dst_port_range: Option<Vec<u8>>, pub l3mdev: Option<bool>,
}

Fields

action: RuleActionaddress_family: AddressFamilyflags: u32tos: u8table: Option<u32>dst: Option<String>src: Option<String>iif: Option<String>oif: Option<String>goto: Option<u32>priority: Option<u32>fw_mark: Option<u32>fw_mask: Option<u32>mask: Option<u32>flow: Option<u32>tun_id: Option<u32>suppress_ifgroup: Option<u32>suppress_prefix_len: Option<u32>protocol: Option<RouteProtocol>ip_proto: Option<AddressFamily>src_port_range: Option<Vec<u8>>dst_port_range: Option<Vec<u8>>l3mdev: Option<bool>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.