Skip to main content

ReplicationPlanner

Struct ReplicationPlanner 

Source
pub struct ReplicationPlanner;
Expand description

Simple range/visibility-based replication planner.

Implementations§

Source§

impl ReplicationPlanner

Source

pub fn plan_for_viewer_configured_into<F, E, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, mode: ReplicationSelectionMode, eligible: E, last_sent: L, scratch: &mut ReplicationScratch, plan: &mut ReplicationPlan, )

Plans one viewer through the canonical allocation-light configured kernel.

eligible applies caller-owned dirty or delivery state before budget consumption. last_sent supplies optional caller-owned cadence state; returning None admits the candidate without prior-send delay.

Source

pub fn plan_for_viewers_configured_into<'a, F, E, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewers: &[ViewerQuery], filter: &F, budget: ReplicationBudget, mode: ReplicationSelectionMode, max_cached_query_ranges: usize, eligible: E, last_sent: L, scratch: &mut ReplicationScratch, batch: &'a mut ReplicationBatchScratch, ) -> ReplicationBatchView<'a>

Plans viewers in input order through the configured reusable kernel.

Source

pub fn plan_for_viewer_into<F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, scratch: &mut ReplicationScratch, plan: &mut ReplicationPlan, )

Plans one viewer into caller-owned scratch and output storage.

Source

pub fn plan_for_viewers_into<'a, F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewers: &[ViewerQuery], filter: &F, budget: ReplicationBudget, scratch: &mut ReplicationScratch, batch: &'a mut ReplicationBatchScratch, ) -> ReplicationBatchView<'a>

Plans viewers into caller-owned scratch and ordered output storage.

Source

pub fn plan_for_viewer_range_into( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, budget: ReplicationBudget, scratch: &mut ReplicationScratch, plan: &mut ReplicationPlan, )

Plans one range-only viewer into reusable output with optional SIMD filtering.

Source

pub fn plan_for_viewers_range_into<'a>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewers: &[ViewerQuery], budget: ReplicationBudget, scratch: &mut ReplicationScratch, batch: &'a mut ReplicationBatchScratch, ) -> ReplicationBatchView<'a>

Plans a range-only viewer batch into caller-owned reusable output slots.

Trait Implementations§

Source§

impl Clone for ReplicationPlanner

Source§

fn clone(&self) -> ReplicationPlanner

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ReplicationPlanner

Source§

impl Debug for ReplicationPlanner

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ReplicationPlanner

Source§

fn default() -> ReplicationPlanner

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.