pub enum RuleSetRequest<I: FidlRuleAdminIpExt> {
AddRule {
index: RuleIndex,
matcher: Result<RuleMatcher<I>, RuleFidlConversionError>,
action: RuleAction,
responder: I::RuleSetAddRuleResponder,
},
RemoveRule {
index: RuleIndex,
responder: I::RuleSetRemoveRuleResponder,
},
AuthenticateForRouteTable {
table: u32,
token: Event,
responder: I::RuleSetAuthenticateForRouteTableResponder,
},
Close {
control_handle: I::RuleSetControlHandle,
},
}
Expand description
GenericOverIp version of RuleSetV{4, 6}Request.
Variants§
AddRule
Adds a rule to the rule set.
Fields
§
matcher: Result<RuleMatcher<I>, RuleFidlConversionError>
The matcher of the rule.
§
action: RuleAction
The action of the rule.
§
responder: I::RuleSetAddRuleResponder
The responder for this request.
RemoveRule
Removes a rule from the rule set.
Fields
§
responder: I::RuleSetRemoveRuleResponder
The responder for this request.
AuthenticateForRouteTable
Authenticates the rule set for managing routes on a route table.
Fields
§
responder: I::RuleSetAuthenticateForRouteTableResponder
The responder for this request.
Close
Closes the rule set
Fields
§
control_handle: I::RuleSetControlHandle
The control handle to rule set protocol.
Trait Implementations§
Source§impl<I: Debug + FidlRuleAdminIpExt> Debug for RuleSetRequest<I>where
I::RuleSetAddRuleResponder: Debug,
I::RuleSetRemoveRuleResponder: Debug,
I::RuleSetAuthenticateForRouteTableResponder: Debug,
I::RuleSetControlHandle: Debug,
impl<I: Debug + FidlRuleAdminIpExt> Debug for RuleSetRequest<I>where
I::RuleSetAddRuleResponder: Debug,
I::RuleSetRemoveRuleResponder: Debug,
I::RuleSetAuthenticateForRouteTableResponder: Debug,
I::RuleSetControlHandle: Debug,
Source§impl From<RuleSetV4Request> for RuleSetRequest<Ipv4>
impl From<RuleSetV4Request> for RuleSetRequest<Ipv4>
Source§fn from(value: RuleSetV4Request) -> Self
fn from(value: RuleSetV4Request) -> Self
Converts to this type from the input type.
Source§impl From<RuleSetV6Request> for RuleSetRequest<Ipv6>
impl From<RuleSetV6Request> for RuleSetRequest<Ipv6>
Source§fn from(value: RuleSetV6Request) -> Self
fn from(value: RuleSetV6Request) -> Self
Converts to this type from the input type.
Source§impl<I: FidlRuleAdminIpExt, IpType> GenericOverIp<IpType> for RuleSetRequest<I>where
IpType: FidlRuleAdminIpExt + Ip,
impl<I: FidlRuleAdminIpExt, IpType> GenericOverIp<IpType> for RuleSetRequest<I>where
IpType: FidlRuleAdminIpExt + Ip,
Source§type Type = RuleSetRequest<IpType>
type Type = RuleSetRequest<IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Auto Trait Implementations§
impl<I> Freeze for RuleSetRequest<I>where
<I as FidlRuleAdminIpExt>::RuleSetAddRuleResponder: Freeze,
<I as FidlRuleAdminIpExt>::RuleSetRemoveRuleResponder: Freeze,
<I as FidlRuleAdminIpExt>::RuleSetAuthenticateForRouteTableResponder: Freeze,
<I as FidlRuleAdminIpExt>::RuleSetControlHandle: Freeze,
<I as Ip>::Addr: Freeze,
impl<I> RefUnwindSafe for RuleSetRequest<I>where
<I as FidlRuleAdminIpExt>::RuleSetAddRuleResponder: RefUnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetRemoveRuleResponder: RefUnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetAuthenticateForRouteTableResponder: RefUnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetControlHandle: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I> Send for RuleSetRequest<I>
impl<I> Sync for RuleSetRequest<I>where
<I as FidlRuleAdminIpExt>::RuleSetAddRuleResponder: Sync,
<I as FidlRuleAdminIpExt>::RuleSetRemoveRuleResponder: Sync,
<I as FidlRuleAdminIpExt>::RuleSetAuthenticateForRouteTableResponder: Sync,
<I as FidlRuleAdminIpExt>::RuleSetControlHandle: Sync,
impl<I> Unpin for RuleSetRequest<I>where
<I as FidlRuleAdminIpExt>::RuleSetAddRuleResponder: Unpin,
<I as FidlRuleAdminIpExt>::RuleSetRemoveRuleResponder: Unpin,
<I as FidlRuleAdminIpExt>::RuleSetAuthenticateForRouteTableResponder: Unpin,
<I as FidlRuleAdminIpExt>::RuleSetControlHandle: Unpin,
<I as Ip>::Addr: Unpin,
impl<I> UnwindSafe for RuleSetRequest<I>where
<I as FidlRuleAdminIpExt>::RuleSetAddRuleResponder: UnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetRemoveRuleResponder: UnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetAuthenticateForRouteTableResponder: UnwindSafe,
<I as FidlRuleAdminIpExt>::RuleSetControlHandle: UnwindSafe,
<I as Ip>::Addr: 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§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>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.