#[non_exhaustive]pub struct PlanContext<'a> {
pub planner_state: Option<&'a [u8]>,
pub generation: u64,
}Expand description
What the backend hands the planner on each run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.planner_state: Option<&'a [u8]>The cursor persisted by the previous run’s
SplitPlan::planner_state; None on the first ever plan.
generation: u64The current plan generation: bumped on every leader failover, so a planner can tell a fresh leadership from a continuation.
Implementations§
Source§impl<'a> PlanContext<'a>
impl<'a> PlanContext<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PlanContext<'a>
impl<'a> RefUnwindSafe for PlanContext<'a>
impl<'a> Send for PlanContext<'a>
impl<'a> Sync for PlanContext<'a>
impl<'a> Unpin for PlanContext<'a>
impl<'a> UnsafeUnpin for PlanContext<'a>
impl<'a> UnwindSafe for PlanContext<'a>
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