#[non_exhaustive]pub struct InputReceiverConfig {
pub max_inputs_per_packet: usize,
pub reorder_window: u64,
pub max_past_ticks: u64,
pub max_future_ticks: u64,
}Expand description
Bounds for server-side input validation and reordering.
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.max_inputs_per_packet: usizeMaximum input frames accepted in one packet.
reorder_window: u64Maximum sequence distance retained above the cumulative acknowledgement.
max_past_ticks: u64Maximum number of past ticks accepted for application-owned rollback.
max_future_ticks: u64Maximum number of future ticks accepted for scheduling.
Implementations§
Source§impl InputReceiverConfig
impl InputReceiverConfig
Sourcepub fn validate(&self) -> NetcodeResult<()>
pub fn validate(&self) -> NetcodeResult<()>
Validates packet, sequence, and Tick bounds.
Trait Implementations§
Source§impl Clone for InputReceiverConfig
impl Clone for InputReceiverConfig
Source§fn clone(&self) -> InputReceiverConfig
fn clone(&self) -> InputReceiverConfig
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 InputReceiverConfig
Source§impl Debug for InputReceiverConfig
impl Debug for InputReceiverConfig
Source§impl Default for InputReceiverConfig
impl Default for InputReceiverConfig
Source§impl<'de> Deserialize<'de> for InputReceiverConfigwhere
InputReceiverConfig: Default,
impl<'de> Deserialize<'de> for InputReceiverConfigwhere
InputReceiverConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InputReceiverConfig
Source§impl PartialEq for InputReceiverConfig
impl PartialEq for InputReceiverConfig
Source§impl Serialize for InputReceiverConfig
impl Serialize for InputReceiverConfig
impl StructuralPartialEq for InputReceiverConfig
Auto Trait Implementations§
impl Freeze for InputReceiverConfig
impl RefUnwindSafe for InputReceiverConfig
impl Send for InputReceiverConfig
impl Sync for InputReceiverConfig
impl Unpin for InputReceiverConfig
impl UnsafeUnpin for InputReceiverConfig
impl UnwindSafe for InputReceiverConfig
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