pub struct AllRouteSelector {}Expand description
Returns a list of all possible routes for insertion.
Trait Implementations§
Source§impl Default for AllRouteSelector
impl Default for AllRouteSelector
Source§fn default() -> AllRouteSelector
fn default() -> AllRouteSelector
Returns the “default value” for a type. Read more
Source§impl RouteSelector for AllRouteSelector
impl RouteSelector for AllRouteSelector
Source§fn select<'a>(
&'a self,
insertion_ctx: &'a InsertionContext,
_: &[&'a Job],
) -> Box<dyn Iterator<Item = &'a RouteContext> + 'a>
fn select<'a>( &'a self, insertion_ctx: &'a InsertionContext, _: &[&'a Job], ) -> Box<dyn Iterator<Item = &'a RouteContext> + 'a>
Returns routes for job insertion.
Source§fn prepare(&self, insertion_ctx: &mut InsertionContext)
fn prepare(&self, insertion_ctx: &mut InsertionContext)
This method is called before select. It allows to apply some changes on mutable context
before immutable borrowing could happen within select method.
Default implementation simply shuffles existing routes.
Auto Trait Implementations§
impl Freeze for AllRouteSelector
impl RefUnwindSafe for AllRouteSelector
impl Send for AllRouteSelector
impl Sync for AllRouteSelector
impl Unpin for AllRouteSelector
impl UnsafeUnpin for AllRouteSelector
impl UnwindSafe for AllRouteSelector
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more