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§
Source§impl<RuleInfo: Debug> Debug for ValidationError<RuleInfo>
impl<RuleInfo: Debug> Debug for ValidationError<RuleInfo>
Source§impl<RuleInfo, IpType: Ip> GenericOverIp<IpType> for ValidationError<RuleInfo>
impl<RuleInfo, IpType: Ip> GenericOverIp<IpType> for ValidationError<RuleInfo>
Source§type Type = ValidationError<RuleInfo>
type Type = ValidationError<RuleInfo>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more