pub enum RouteSetRequest<I: FidlRouteAdminIpExt> {
AddRoute {
route: Result<Route<I>, FidlConversionError<RoutePropertiesRequiredFields>>,
responder: I::AddRouteResponder,
},
RemoveRoute {
route: Result<Route<I>, FidlConversionError<RoutePropertiesRequiredFields>>,
responder: I::RemoveRouteResponder,
},
AuthenticateForInterface {
credential: ProofOfInterfaceAuthorization,
responder: I::RouteSetAuthenticateForInterfaceResponder,
},
}
Expand description
GenericOverIp version of RouteSetV{4, 6}Request.
Variants§
AddRoute
Adds a route to the route set.
Fields
§
route: Result<Route<I>, FidlConversionError<RoutePropertiesRequiredFields>>
The route to add.
§
responder: I::AddRouteResponder
The responder for this request.
RemoveRoute
Removes a route from the route set.
Fields
§
route: Result<Route<I>, FidlConversionError<RoutePropertiesRequiredFields>>
The route to add.
§
responder: I::RemoveRouteResponder
The responder for this request.
AuthenticateForInterface
Authenticates the route set for managing routes on an interface.
Fields
§
credential: ProofOfInterfaceAuthorization
The credential proving authorization for this interface.
§
responder: I::RouteSetAuthenticateForInterfaceResponder
The responder for this request.
Trait Implementations§
Source§impl<I: Debug + FidlRouteAdminIpExt> Debug for RouteSetRequest<I>where
I::AddRouteResponder: Debug,
I::RemoveRouteResponder: Debug,
I::RouteSetAuthenticateForInterfaceResponder: Debug,
impl<I: Debug + FidlRouteAdminIpExt> Debug for RouteSetRequest<I>where
I::AddRouteResponder: Debug,
I::RemoveRouteResponder: Debug,
I::RouteSetAuthenticateForInterfaceResponder: Debug,
Source§impl From<RouteSetV4Request> for RouteSetRequest<Ipv4>
impl From<RouteSetV4Request> for RouteSetRequest<Ipv4>
Source§fn from(value: RouteSetV4Request) -> Self
fn from(value: RouteSetV4Request) -> Self
Converts to this type from the input type.
Source§impl From<RouteSetV6Request> for RouteSetRequest<Ipv6>
impl From<RouteSetV6Request> for RouteSetRequest<Ipv6>
Source§fn from(value: RouteSetV6Request) -> Self
fn from(value: RouteSetV6Request) -> Self
Converts to this type from the input type.
Source§impl<I: FidlRouteAdminIpExt, IpType> GenericOverIp<IpType> for RouteSetRequest<I>where
IpType: FidlRouteAdminIpExt + Ip,
impl<I: FidlRouteAdminIpExt, IpType> GenericOverIp<IpType> for RouteSetRequest<I>where
IpType: FidlRouteAdminIpExt + Ip,
Source§type Type = RouteSetRequest<IpType>
type Type = RouteSetRequest<IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Auto Trait Implementations§
impl<I> Freeze for RouteSetRequest<I>where
<I as FidlRouteAdminIpExt>::AddRouteResponder: Freeze,
<I as FidlRouteAdminIpExt>::RemoveRouteResponder: Freeze,
<I as FidlRouteAdminIpExt>::RouteSetAuthenticateForInterfaceResponder: Freeze,
<I as Ip>::Addr: Freeze,
impl<I> RefUnwindSafe for RouteSetRequest<I>where
<I as FidlRouteAdminIpExt>::AddRouteResponder: RefUnwindSafe,
<I as FidlRouteAdminIpExt>::RemoveRouteResponder: RefUnwindSafe,
<I as FidlRouteAdminIpExt>::RouteSetAuthenticateForInterfaceResponder: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I> Send for RouteSetRequest<I>
impl<I> Sync for RouteSetRequest<I>where
<I as FidlRouteAdminIpExt>::AddRouteResponder: Sync,
<I as FidlRouteAdminIpExt>::RemoveRouteResponder: Sync,
<I as FidlRouteAdminIpExt>::RouteSetAuthenticateForInterfaceResponder: Sync,
impl<I> Unpin for RouteSetRequest<I>where
<I as FidlRouteAdminIpExt>::AddRouteResponder: Unpin,
<I as FidlRouteAdminIpExt>::RemoveRouteResponder: Unpin,
<I as FidlRouteAdminIpExt>::RouteSetAuthenticateForInterfaceResponder: Unpin,
<I as Ip>::Addr: Unpin,
impl<I> UnwindSafe for RouteSetRequest<I>where
<I as FidlRouteAdminIpExt>::AddRouteResponder: UnwindSafe,
<I as FidlRouteAdminIpExt>::RemoveRouteResponder: UnwindSafe,
<I as FidlRouteAdminIpExt>::RouteSetAuthenticateForInterfaceResponder: UnwindSafe,
<I as Ip>::Addr: UnwindSafe,
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.