pub struct HybridRouter<P: RoutePolicy> { /* private fields */ }Expand description
Static hybrid scheduler router.
Implementations§
Source§impl<P: RoutePolicy> HybridRouter<P>
impl<P: RoutePolicy> HybridRouter<P>
Sourcepub const fn new(topology: RouteTopology) -> Self
pub const fn new(topology: RouteTopology) -> Self
Construct a router for a topology and compile-time policy.
Sourcepub const fn topology(self) -> RouteTopology
pub const fn topology(self) -> RouteTopology
Return the router topology.
Trait Implementations§
Source§impl<P: Clone + RoutePolicy> Clone for HybridRouter<P>
impl<P: Clone + RoutePolicy> Clone for HybridRouter<P>
impl<P: Copy + RoutePolicy> Copy for HybridRouter<P>
Auto Trait Implementations§
impl<P> Freeze for HybridRouter<P>where
PhantomData<P>: Freeze,
impl<P> RefUnwindSafe for HybridRouter<P>where
PhantomData<P>: RefUnwindSafe,
impl<P> Send for HybridRouter<P>where
PhantomData<P>: Send,
impl<P> Sync for HybridRouter<P>where
PhantomData<P>: Sync,
impl<P> Unpin for HybridRouter<P>where
PhantomData<P>: Unpin,
impl<P> UnsafeUnpin for HybridRouter<P>where
PhantomData<P>: UnsafeUnpin,
impl<P> UnwindSafe for HybridRouter<P>where
PhantomData<P>: 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