pub struct RoutesAnyApi<C>(/* private fields */);
Expand description
The routes API interacting with all IP versions.
Implementations§
Source§impl<C> RoutesAnyApi<C>
impl<C> RoutesAnyApi<C>
Source§impl<C> RoutesAnyApi<C>where
C: ContextPair,
C::CoreContext: RoutesApiCoreContext<Ipv4, C::BindingsContext> + RoutesApiCoreContext<Ipv6, C::BindingsContext>,
C::BindingsContext: RoutesApiBindingsContext<Ipv4, <C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId> + RoutesApiBindingsContext<Ipv6, <C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId>,
<C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId: Ord,
impl<C> RoutesAnyApi<C>where
C: ContextPair,
C::CoreContext: RoutesApiCoreContext<Ipv4, C::BindingsContext> + RoutesApiCoreContext<Ipv6, C::BindingsContext>,
C::BindingsContext: RoutesApiBindingsContext<Ipv4, <C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId> + RoutesApiBindingsContext<Ipv6, <C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId>,
<C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId: Ord,
Sourcepub fn select_device_for_gateway(
&mut self,
gateway: SpecifiedAddr<IpAddr>,
) -> Option<<C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId>
pub fn select_device_for_gateway( &mut self, gateway: SpecifiedAddr<IpAddr>, ) -> Option<<C::CoreContext as DeviceIdContext<AnyDevice>>::DeviceId>
Like RoutesApi::select_device_for_gateway
but for any IP version.
Auto Trait Implementations§
impl<C> Freeze for RoutesAnyApi<C>where
C: Freeze,
impl<C> RefUnwindSafe for RoutesAnyApi<C>where
C: RefUnwindSafe,
impl<C> Send for RoutesAnyApi<C>where
C: Send,
impl<C> Sync for RoutesAnyApi<C>where
C: Sync,
impl<C> Unpin for RoutesAnyApi<C>where
C: Unpin,
impl<C> UnwindSafe for RoutesAnyApi<C>where
C: 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<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more