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
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnwindSafe for Disposition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more