pub struct CompiledSyncPolicy {
pub id: PolicyId,
pub min_hz: u16,
pub max_hz: u16,
pub interest_radius: f32,
pub priority_weight: u16,
pub allow_ghost: bool,
pub allow_aggregate: bool,
}Expand description
Compiled sync policy used by hot-path replication planning.
Fields§
§id: PolicyIdSmall policy id used by entities.
min_hz: u16Minimum update rate in hertz.
max_hz: u16Maximum update rate in hertz.
interest_radius: f32Primary interest radius in world units.
priority_weight: u16Weight used when client budget is tight.
allow_ghost: boolWhether this entity can be represented by ghosts.
allow_aggregate: boolWhether this entity can be aggregated at low detail.
Implementations§
Trait Implementations§
Source§impl Clone for CompiledSyncPolicy
impl Clone for CompiledSyncPolicy
Source§fn clone(&self) -> CompiledSyncPolicy
fn clone(&self) -> CompiledSyncPolicy
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 CompiledSyncPolicy
Source§impl Debug for CompiledSyncPolicy
impl Debug for CompiledSyncPolicy
Source§impl PartialEq for CompiledSyncPolicy
impl PartialEq for CompiledSyncPolicy
impl StructuralPartialEq for CompiledSyncPolicy
Auto Trait Implementations§
impl Freeze for CompiledSyncPolicy
impl RefUnwindSafe for CompiledSyncPolicy
impl Send for CompiledSyncPolicy
impl Sync for CompiledSyncPolicy
impl Unpin for CompiledSyncPolicy
impl UnsafeUnpin for CompiledSyncPolicy
impl UnwindSafe for CompiledSyncPolicy
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