#[non_exhaustive]pub struct InputSenderConfig {
pub history_capacity: usize,
pub redundancy: usize,
}Expand description
Bounds for client-side unacknowledged input history.
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.history_capacity: usizeMaximum inputs retained until acknowledged by the server.
redundancy: usizeMost recent unacknowledged inputs included in each packet.
Implementations§
Source§impl InputSenderConfig
impl InputSenderConfig
Sourcepub fn validate(&self) -> NetcodeResult<()>
pub fn validate(&self) -> NetcodeResult<()>
Validates sender memory and packet bounds.
Trait Implementations§
Source§impl Clone for InputSenderConfig
impl Clone for InputSenderConfig
Source§fn clone(&self) -> InputSenderConfig
fn clone(&self) -> InputSenderConfig
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 InputSenderConfig
Source§impl Debug for InputSenderConfig
impl Debug for InputSenderConfig
Source§impl Default for InputSenderConfig
impl Default for InputSenderConfig
Source§impl<'de> Deserialize<'de> for InputSenderConfigwhere
InputSenderConfig: Default,
impl<'de> Deserialize<'de> for InputSenderConfigwhere
InputSenderConfig: 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 InputSenderConfig
Source§impl PartialEq for InputSenderConfig
impl PartialEq for InputSenderConfig
Source§impl Serialize for InputSenderConfig
impl Serialize for InputSenderConfig
impl StructuralPartialEq for InputSenderConfig
Auto Trait Implementations§
impl Freeze for InputSenderConfig
impl RefUnwindSafe for InputSenderConfig
impl Send for InputSenderConfig
impl Sync for InputSenderConfig
impl Unpin for InputSenderConfig
impl UnsafeUnpin for InputSenderConfig
impl UnwindSafe for InputSenderConfig
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