fidl_fuchsia_net_routes_ext

Trait FidlRouteIpExt

Source
pub trait FidlRouteIpExt: Ip {
    type StateMarker: DiscoverableProtocolMarker;
    type WatcherMarker: ProtocolMarker;
    type WatchEvent: TryInto<Event<Self>, Error = FidlConversionError<InstalledRouteRequiredFields>> + TryFrom<Event<Self>, Error = NetTypeConversionError> + Clone + Debug + PartialEq + Unpin + Send;
    type Route: TryFrom<Route<Self>, Error = NetTypeConversionError> + TryInto<Route<Self>, Error = FidlConversionError<RoutePropertiesRequiredFields>> + Debug;
}
Expand description

IP Extension for the fuchsia.net.routes FIDL API.

Required Associated Types§

Source

type StateMarker: DiscoverableProtocolMarker

The “state” protocol to use for this IP version.

Source

type WatcherMarker: ProtocolMarker

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

Source

type WatchEvent: TryInto<Event<Self>, Error = FidlConversionError<InstalledRouteRequiredFields>> + TryFrom<Event<Self>, Error = NetTypeConversionError> + Clone + Debug + PartialEq + Unpin + Send

The type of “event” returned by this IP version’s watcher protocol.

Source

type Route: TryFrom<Route<Self>, Error = NetTypeConversionError> + TryInto<Route<Self>, Error = FidlConversionError<RoutePropertiesRequiredFields>> + Debug

The “route” FIDL type to use for this IP version.

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.

Implementations on Foreign Types§

Source§

impl FidlRouteIpExt for Ipv4

Source§

impl FidlRouteIpExt for Ipv6

Implementors§