pub trait FidlRuleIpExt: Ip {
type RuleWatcherMarker: ProtocolMarker<RequestStream = Self::RuleWatcherRequestStream>;
type RuleWatcherRequestStream: RequestStream<Ok: Send, ControlHandle: Send>;
type RuleEvent: From<RuleEvent<Self>> + TryInto<RuleEvent<Self>, Error = RuleFidlConversionError> + Unpin;
type RuleWatcherWatchResponder: SliceResponder<Self::RuleEvent>;
// Required method
fn into_rule_watcher_request(
request: Request<Self::RuleWatcherMarker>,
) -> RuleWatcherRequest<Self>;
}
Expand description
Observation extension for the rules part of fuchsia.net.routes
FIDL API.
Required Associated Types§
sourcetype RuleWatcherMarker: ProtocolMarker<RequestStream = Self::RuleWatcherRequestStream>
type RuleWatcherMarker: ProtocolMarker<RequestStream = Self::RuleWatcherRequestStream>
The “rules watcher” protocol to use for this IP version.
sourcetype RuleWatcherRequestStream: RequestStream<Ok: Send, ControlHandle: Send>
type RuleWatcherRequestStream: RequestStream<Ok: Send, ControlHandle: Send>
The “rules watcher” request stream.
sourcetype RuleEvent: From<RuleEvent<Self>> + TryInto<RuleEvent<Self>, Error = RuleFidlConversionError> + Unpin
type RuleEvent: From<RuleEvent<Self>> + TryInto<RuleEvent<Self>, Error = RuleFidlConversionError> + Unpin
The rule event to be watched.
sourcetype RuleWatcherWatchResponder: SliceResponder<Self::RuleEvent>
type RuleWatcherWatchResponder: SliceResponder<Self::RuleEvent>
The responder to the watch request.
Required Methods§
sourcefn into_rule_watcher_request(
request: Request<Self::RuleWatcherMarker>,
) -> RuleWatcherRequest<Self>
fn into_rule_watcher_request( request: Request<Self::RuleWatcherMarker>, ) -> RuleWatcherRequest<Self>
Turns a FIDL rule watcher request into the extension type.
Object Safety§
This trait is not object safe.