pub enum BaseRuleSetRequest {
AuthenticateForRouteTable {
table: u32,
token: Event,
responder: BaseRuleSetAuthenticateForRouteTableResponder,
},
RemoveRule {
index: u32,
responder: BaseRuleSetRemoveRuleResponder,
},
Close {
control_handle: BaseRuleSetControlHandle,
},
}
Expand description
Common base for RuleSet
protocol that is IP version agnostic. This
helps reduce FIDL duplication.
Variants§
AuthenticateForRouteTable
Authenticates for a route table that will be used in an action.
RemoveRule
Removes a rule from this rule set.
If the client tries to remove from an index that does not have a rule,
the error RULE_DOES_NOT_EXIST
will be returned.
- request
index
the index of the rule.
Close
Removes all rules in the rule set and the underlying channel will be closed after the rules are removed.
This method provides a way for synchronous closure.
Fields
§
control_handle: BaseRuleSetControlHandle
Implementations§
Source§impl BaseRuleSetRequest
impl BaseRuleSetRequest
pub fn into_authenticate_for_route_table( self, ) -> Option<(u32, Event, BaseRuleSetAuthenticateForRouteTableResponder)>
pub fn into_remove_rule(self) -> Option<(u32, BaseRuleSetRemoveRuleResponder)>
pub fn into_close(self) -> Option<BaseRuleSetControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BaseRuleSetRequest
impl !RefUnwindSafe for BaseRuleSetRequest
impl Send for BaseRuleSetRequest
impl Sync for BaseRuleSetRequest
impl Unpin for BaseRuleSetRequest
impl !UnwindSafe for BaseRuleSetRequest
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