pub enum Action {
Accept,
Drop,
Jump(String),
Return,
TransparentProxy(TransparentProxy),
Redirect {
dst_port: Option<PortRange>,
},
Masquerade {
src_port: Option<PortRange>,
},
Mark {
domain: MarkDomain,
action: MarkAction,
},
None,
Reject(RejectType),
}Expand description
Extension type for [fnet_filter::Action].
Variants§
Accept
Drop
Jump(String)
Return
TransparentProxy(TransparentProxy)
Redirect
Masquerade
Mark
None
Reject(RejectType)
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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