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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.