#[non_exhaustive]pub struct SecondaryEngineOptimizerRequest { /* private fields */ }Expand description
The pair the secondary engine returns from
Handlerton::secondary_engine_check_optimizer_request.
Mirrors struct SecondaryEngineGraphSimplificationRequestParameters in
mysql-server/sql/handler.h. Fields are crate-private and the type is
#[non_exhaustive] so a future MySQL field can land without a
SemVer-breaking change; engine code constructs values via Self::new or
Self::keep_going and reads them via Self::request /
Self::subgraph_pair_limit.
Implementations§
Source§impl SecondaryEngineOptimizerRequest
impl SecondaryEngineOptimizerRequest
Sourcepub const fn new(
request: SecondaryEngineGraphSimplificationRequest,
subgraph_pair_limit: i32,
) -> Self
pub const fn new( request: SecondaryEngineGraphSimplificationRequest, subgraph_pair_limit: i32, ) -> Self
Construct a request from its two parts.
Sourcepub const fn keep_going() -> Self
pub const fn keep_going() -> Self
“Keep going” default — what the trait returns when the engine has no
opinion. Matches the upstream documented default (kContinue, 0).
Sourcepub const fn request(&self) -> SecondaryEngineGraphSimplificationRequest
pub const fn request(&self) -> SecondaryEngineGraphSimplificationRequest
The transition the engine asks the optimizer to make.
Sourcepub const fn subgraph_pair_limit(&self) -> i32
pub const fn subgraph_pair_limit(&self) -> i32
Subgraph-pair limit for the (possibly) restarted hypergraph.
Trait Implementations§
Source§impl Clone for SecondaryEngineOptimizerRequest
impl Clone for SecondaryEngineOptimizerRequest
Source§fn clone(&self) -> SecondaryEngineOptimizerRequest
fn clone(&self) -> SecondaryEngineOptimizerRequest
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 moreimpl Copy for SecondaryEngineOptimizerRequest
impl Eq for SecondaryEngineOptimizerRequest
Source§impl PartialEq for SecondaryEngineOptimizerRequest
impl PartialEq for SecondaryEngineOptimizerRequest
Source§fn eq(&self, other: &SecondaryEngineOptimizerRequest) -> bool
fn eq(&self, other: &SecondaryEngineOptimizerRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecondaryEngineOptimizerRequest
Auto Trait Implementations§
impl Freeze for SecondaryEngineOptimizerRequest
impl RefUnwindSafe for SecondaryEngineOptimizerRequest
impl Send for SecondaryEngineOptimizerRequest
impl Sync for SecondaryEngineOptimizerRequest
impl Unpin for SecondaryEngineOptimizerRequest
impl UnsafeUnpin for SecondaryEngineOptimizerRequest
impl UnwindSafe for SecondaryEngineOptimizerRequest
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