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§

source

type RuleWatcherMarker: ProtocolMarker<RequestStream = Self::RuleWatcherRequestStream>

The “rules watcher” protocol to use for this IP version.

source

type RuleWatcherRequestStream: RequestStream<Ok: Send, ControlHandle: Send>

The “rules watcher” request stream.

source

type RuleEvent: From<RuleEvent<Self>> + TryInto<RuleEvent<Self>, Error = RuleFidlConversionError> + Unpin

The rule event to be watched.

source

type RuleWatcherWatchResponder: SliceResponder<Self::RuleEvent>

The responder to the watch request.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl FidlRuleIpExt for Ipv4

source§

impl FidlRuleIpExt for Ipv6

Implementors§