pub struct ReplicationPlanner;Expand description
Simple range/visibility-based replication planner.
Implementations§
Source§impl ReplicationPlanner
impl ReplicationPlanner
Sourcepub fn plan_for_viewer<F: VisibilityFilter>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
) -> ReplicationPlan
pub fn plan_for_viewer<F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, ) -> ReplicationPlan
Plans a frame for one viewer using the station-local spatial index.
Sourcepub fn plan_for_viewer_with_scratch<F: VisibilityFilter>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
scratch: &mut ReplicationScratch,
) -> ReplicationPlan
pub fn plan_for_viewer_with_scratch<F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, scratch: &mut ReplicationScratch, ) -> ReplicationPlan
Plans a frame using caller-provided scratch storage.
Sourcepub fn plan_for_viewer_with_cadence<F, L>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
last_sent: L,
) -> ReplicationPlan
pub fn plan_for_viewer_with_cadence<F, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, last_sent: L, ) -> ReplicationPlan
Plans a frame and skips entities whose distance-based cadence has not elapsed.
Sourcepub fn plan_for_viewer_with_cadence_and_scratch<F, L>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
last_sent: L,
scratch: &mut ReplicationScratch,
) -> ReplicationPlan
pub fn plan_for_viewer_with_cadence_and_scratch<F, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, last_sent: L, scratch: &mut ReplicationScratch, ) -> ReplicationPlan
Plans a cadence-aware frame using caller-provided scratch storage.
Sourcepub fn plan_for_viewer_prioritized<F: VisibilityFilter>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
) -> ReplicationPlan
pub fn plan_for_viewer_prioritized<F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, ) -> ReplicationPlan
Plans a frame and selects the highest-priority entities when budgeted.
Sourcepub fn plan_for_viewer_prioritized_with_scratch<F: VisibilityFilter>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
scratch: &mut ReplicationScratch,
) -> ReplicationPlan
pub fn plan_for_viewer_prioritized_with_scratch<F: VisibilityFilter>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, scratch: &mut ReplicationScratch, ) -> ReplicationPlan
Plans a budgeted priority frame using caller-provided scratch storage.
Sourcepub fn plan_for_viewer_prioritized_with_cadence<F, L>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
last_sent: L,
) -> ReplicationPlan
pub fn plan_for_viewer_prioritized_with_cadence<F, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, last_sent: L, ) -> ReplicationPlan
Plans a budgeted priority frame with distance-based cadence checks.
Sourcepub fn plan_for_viewer_prioritized_with_cadence_and_scratch<F, L>(
station: &Station,
index: &CellIndex,
policies: &PolicyTable,
viewer: &ViewerQuery,
filter: &F,
budget: ReplicationBudget,
last_sent: L,
scratch: &mut ReplicationScratch,
) -> ReplicationPlan
pub fn plan_for_viewer_prioritized_with_cadence_and_scratch<F, L>( station: &Station, index: &CellIndex, policies: &PolicyTable, viewer: &ViewerQuery, filter: &F, budget: ReplicationBudget, last_sent: L, scratch: &mut ReplicationScratch, ) -> ReplicationPlan
Plans a priority/cadence frame using caller-provided scratch storage.
Trait Implementations§
Source§impl Clone for ReplicationPlanner
impl Clone for ReplicationPlanner
Source§fn clone(&self) -> ReplicationPlanner
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReplicationPlanner
Source§impl Debug for ReplicationPlanner
impl Debug for ReplicationPlanner
Source§impl Default for ReplicationPlanner
impl Default for ReplicationPlanner
Source§fn default() -> ReplicationPlanner
fn default() -> ReplicationPlanner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReplicationPlanner
impl RefUnwindSafe for ReplicationPlanner
impl Send for ReplicationPlanner
impl Sync for ReplicationPlanner
impl Unpin for ReplicationPlanner
impl UnsafeUnpin for ReplicationPlanner
impl UnwindSafe for ReplicationPlanner
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