pub struct RuleSetV4SynchronousProxy { /* private fields */ }Implementations§
Source§impl RuleSetV4SynchronousProxy
impl RuleSetV4SynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RuleSetV4Event, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RuleSetV4Event, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn authenticate_for_route_table(
&self,
table: u32,
token: Event,
___deadline: MonotonicInstant,
) -> Result<BaseRuleSetAuthenticateForRouteTableResult, Error>
pub fn authenticate_for_route_table( &self, table: u32, token: Event, ___deadline: MonotonicInstant, ) -> Result<BaseRuleSetAuthenticateForRouteTableResult, Error>
Authenticates for a route table that will be used in an action.
Sourcepub fn remove_rule(
&self,
index: u32,
___deadline: MonotonicInstant,
) -> Result<BaseRuleSetRemoveRuleResult, Error>
pub fn remove_rule( &self, index: u32, ___deadline: MonotonicInstant, ) -> Result<BaseRuleSetRemoveRuleResult, Error>
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
indexthe index of the rule.
Sourcepub fn close(&self) -> Result<(), Error>
pub fn close(&self) -> Result<(), Error>
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.
Sourcepub fn add_rule(
&self,
index: u32,
matcher: &RuleMatcherV4,
action: &RuleAction,
___deadline: MonotonicInstant,
) -> Result<RuleSetV4AddRuleResult, Error>
pub fn add_rule( &self, index: u32, matcher: &RuleMatcherV4, action: &RuleAction, ___deadline: MonotonicInstant, ) -> Result<RuleSetV4AddRuleResult, Error>
Adds a rule to this rule set.
If there is already a rule at the provided index, RULE_ALREADY_EXISTS
is returned.
- request
indexwhere to insert the rule. - request
matcherthe matcher of the rule. - request
actionaction of the rule.
Trait Implementations§
Source§impl Debug for RuleSetV4SynchronousProxy
impl Debug for RuleSetV4SynchronousProxy
Source§impl From<Channel> for RuleSetV4SynchronousProxy
Available on Fuchsia only.
impl From<Channel> for RuleSetV4SynchronousProxy
Available on Fuchsia only.
Source§impl From<RuleSetV4SynchronousProxy> for Handle
Available on Fuchsia only.
impl From<RuleSetV4SynchronousProxy> for Handle
Available on Fuchsia only.
Source§fn from(value: RuleSetV4SynchronousProxy) -> Self
fn from(value: RuleSetV4SynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for RuleSetV4SynchronousProxy
Available on Fuchsia only.
impl FromClient for RuleSetV4SynchronousProxy
Available on Fuchsia only.
Source§type Protocol = RuleSetV4Marker
type Protocol = RuleSetV4Marker
The protocol.
Source§fn from_client(value: ClientEnd<RuleSetV4Marker>) -> Self
fn from_client(value: ClientEnd<RuleSetV4Marker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for RuleSetV4SynchronousProxy
Available on Fuchsia only.
impl SynchronousProxy for RuleSetV4SynchronousProxy
Available on Fuchsia only.
Source§type Proxy = RuleSetV4Proxy
type Proxy = RuleSetV4Proxy
The async proxy for the same protocol.
Source§type Protocol = RuleSetV4Marker
type Protocol = RuleSetV4Marker
The protocol which this
Proxy controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for RuleSetV4SynchronousProxy
impl RefUnwindSafe for RuleSetV4SynchronousProxy
impl Send for RuleSetV4SynchronousProxy
impl Sync for RuleSetV4SynchronousProxy
impl Unpin for RuleSetV4SynchronousProxy
impl UnwindSafe for RuleSetV4SynchronousProxy
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