pub struct RoutingEngine { /* private fields */ }Expand description
The standard routing engine.
Implementations§
Source§impl RoutingEngine
impl RoutingEngine
Sourcepub fn new(policy: impl RoutingPolicy + 'static) -> Self
pub fn new(policy: impl RoutingPolicy + 'static) -> Self
Create a new engine with the given policy.
Sourcepub fn route(&self, plan: &ExecutionPlan) -> RoutingDecision
pub fn route(&self, plan: &ExecutionPlan) -> RoutingDecision
Route a program to a backend.
Sourcepub fn route_with_explanation(&self, plan: &ExecutionPlan) -> RoutingExplanation
pub fn route_with_explanation(&self, plan: &ExecutionPlan) -> RoutingExplanation
Route a program and return operator-visible evidence.
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingEngine
impl !UnwindSafe for RoutingEngine
impl Freeze for RoutingEngine
impl Send for RoutingEngine
impl Sync for RoutingEngine
impl Unpin for RoutingEngine
impl UnsafeUnpin for RoutingEngine
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