pub enum Disposition {
    Drop,
    Accept,
    Stolen,
    Queue {
        queue_id: u16,
        accept_if_queue_non_existent: bool,
    },
}
Expand description

Specifies the action to be taken by the netfilter core.

Variants

Drop

Drop the packet.

Accept

Accept the packet.

Stolen

The packet was stolen by the filter and must be treated as if it didn’t exist.

Queue

Fields

queue_id: u16

The identifier of the queue to which the packet should be added.

accept_if_queue_non_existent: bool

Specifies the behaviour if a queue with the given identifier doesn’t exist: if true, the packet is accepted, otherwise it is rejected.

Queue the packet to the given user-space queue.

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.