Enum fidl_fuchsia_net_filter::Action
source · pub enum Action {
Accept(Empty),
Drop(Empty),
Jump(String),
Return_(Empty),
// some variants omitted
}
Expand description
The action to take on a packet.
Variants§
Accept(Empty)
Accept the packet.
This is a terminal action for the current installed routine, i.e. no further rules will be evaluated for this packet in the installed routine (or any subroutines) in which this rule is installed. Subsequent routines installed on the same hook will still be evaluated.
Drop(Empty)
Drop the packet.
This is a terminal action, i.e. no further rules will be evaluated for this packet, even in other routines on the same hook.
Jump(String)
Jump from the current routine to the routine identified by the provided name.
The target routine must be in the same namespace as the calling routine, and it cannot be installed on a hook; it must be an uninstalled routine.
Return_(Empty)
Stop evaluation of the current routine and return to the calling routine (the routine from which the current routine was jumped), continuing evaluation at the next rule.
If invoked in an installed routine, equivalent to accept
, given packets
are accepted by default in the absence of any matching rules.
Implementations§
Trait Implementations§
source§impl Decode<Action> for Action
impl Decode<Action> for Action
source§impl PartialEq for Action
impl PartialEq for Action
source§impl TypeMarker for Action
impl TypeMarker for Action
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.