pub struct AutomaticPlanner { /* private fields */ }Expand description
Backend-neutral automatic planner.
Implementations§
Source§impl AutomaticPlanner
impl AutomaticPlanner
Sourcepub fn new(policy: AutomaticPlannerPolicy) -> Self
pub fn new(policy: AutomaticPlannerPolicy) -> Self
Creates a planner with an explicit, serializable policy.
Sourcepub fn policy(&self) -> &AutomaticPlannerPolicy
pub fn policy(&self) -> &AutomaticPlannerPolicy
Returns the policy used for subsequent planning calls.
Sourcepub fn plan<B: AutomaticPlanningBackend>(
&self,
backend: &B,
request: &AutomaticPlanRequest,
) -> Result<ExecutionPlanReport, AutomaticPlanningError>
pub fn plan<B: AutomaticPlanningBackend>( &self, backend: &B, request: &AutomaticPlanRequest, ) -> Result<ExecutionPlanReport, AutomaticPlanningError>
Selects a plan using only portable policy and backend observations.
Trait Implementations§
Source§impl Clone for AutomaticPlanner
impl Clone for AutomaticPlanner
Source§fn clone(&self) -> AutomaticPlanner
fn clone(&self) -> AutomaticPlanner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutomaticPlanner
impl Debug for AutomaticPlanner
Source§impl Default for AutomaticPlanner
impl Default for AutomaticPlanner
Source§fn default() -> AutomaticPlanner
fn default() -> AutomaticPlanner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AutomaticPlanner
impl<'de> Deserialize<'de> for AutomaticPlanner
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AutomaticPlanner
Source§impl PartialEq for AutomaticPlanner
impl PartialEq for AutomaticPlanner
Source§impl Serialize for AutomaticPlanner
impl Serialize for AutomaticPlanner
impl StructuralPartialEq for AutomaticPlanner
Auto Trait Implementations§
impl Freeze for AutomaticPlanner
impl RefUnwindSafe for AutomaticPlanner
impl Send for AutomaticPlanner
impl Sync for AutomaticPlanner
impl Unpin for AutomaticPlanner
impl UnsafeUnpin for AutomaticPlanner
impl UnwindSafe for AutomaticPlanner
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