#[non_exhaustive]pub enum FilterAction {
Accept,
Discard,
Reject,
NextTerm,
}Expand description
The terminating action of a filter term. A term without one accepts matching packets.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for FilterAction
impl Clone for FilterAction
impl Copy for FilterAction
Source§impl Debug for FilterAction
impl Debug for FilterAction
impl Eq for FilterAction
Source§impl PartialEq for FilterAction
impl PartialEq for FilterAction
impl StructuralPartialEq for FilterAction
Auto Trait Implementations§
impl Forget for FilterAction
impl Freeze for FilterAction
impl Move for FilterAction
impl RefUnwindSafe for FilterAction
impl Send for FilterAction
impl Sync for FilterAction
impl Unpin for FilterAction
impl UnsafeUnpin for FilterAction
impl UnwindSafe for FilterAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more