Enum ValidationError
pub enum ValidationError<RuleInfo> {
RuleWithInvalidMatcher(RuleInfo),
RuleWithInvalidAction(RuleInfo),
TransparentProxyWithInvalidMatcher(RuleInfo),
RedirectWithInvalidMatcher(RuleInfo),
MasqueradeWithInvalidMatcher(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.
RedirectWithInvalidMatcher(RuleInfo)
A rule has a Redirect action without a corresponding valid matcher: if the action specifies a destination port range, the rule must match on transport protocol to ensure that the packet has either a TCP or UDP header.
MasqueradeWithInvalidMatcher(RuleInfo)
A rule has a Masquerade action without a corresponding valid matcher: if the action specifies a source port range, the rule must match on transport protocol to ensure that the packet has either a TCP or UDP header.
Trait Implementations§
§impl<RuleInfo> Debug for ValidationError<RuleInfo>where
RuleInfo: Debug,
impl<RuleInfo> Debug for ValidationError<RuleInfo>where
RuleInfo: Debug,
§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>
Self
when its IP-generic parameter is replaced with the
type NewIp
.