Enum netstack3_core::filter::ValidationError
source · pub enum ValidationError<RuleInfo> {
RuleWithInvalidMatcher(RuleInfo),
RuleWithInvalidAction(RuleInfo),
TransparentProxyWithInvalidMatcher(RuleInfo),
}
Expand description
Provided filtering state was invalid.
Variants§
RuleWithInvalidMatcher(RuleInfo)
A rule matches on a property that is unavailable in the context in which it will be evaluated. For example, matching on the input interface in the EGRESS hook.
RuleWithInvalidAction(RuleInfo)
A rule has an action that is unavailable in the context in which it will be evaluated. For example, the TransparentProxy action is only valid in the INGRESS hook.
TransparentProxyWithInvalidMatcher(RuleInfo)
A rule has a TransparentProxy action without a corresponding valid matcher: the rule must match on transport protocol to ensure that the packet has either a TCP or UDP header.
Trait Implementations§
source§impl<RuleInfo> Debug for ValidationError<RuleInfo>where
RuleInfo: Debug,
impl<RuleInfo> Debug for ValidationError<RuleInfo>where
RuleInfo: Debug,
source§impl<RuleInfo, IpType> GenericOverIp<IpType> for ValidationError<RuleInfo>where
IpType: Ip,
impl<RuleInfo, IpType> GenericOverIp<IpType> for ValidationError<RuleInfo>where
IpType: Ip,
§type Type = ValidationError<RuleInfo>
type Type = ValidationError<RuleInfo>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Auto Trait Implementations§
impl<RuleInfo> Freeze for ValidationError<RuleInfo>where
RuleInfo: Freeze,
impl<RuleInfo> RefUnwindSafe for ValidationError<RuleInfo>where
RuleInfo: RefUnwindSafe,
impl<RuleInfo> Send for ValidationError<RuleInfo>where
RuleInfo: Send,
impl<RuleInfo> Sync for ValidationError<RuleInfo>where
RuleInfo: Sync,
impl<RuleInfo> Unpin for ValidationError<RuleInfo>where
RuleInfo: Unpin,
impl<RuleInfo> UnwindSafe for ValidationError<RuleInfo>where
RuleInfo: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.