pub struct ReliableSettings {
pub rtt_resend_factor: f32,
pub max_messages_per_tick: Option<u16>,
pub max_queue_depth: Option<usize>,
}Expand description
Tuning parameters for reliable channel delivery and backpressure.
Fields§
§rtt_resend_factor: f32Multiplier on the current RTT that sets the retransmit timeout.
max_messages_per_tick: Option<u16>Maximum messages to deliver per tick per connection. None = unlimited.
max_queue_depth: Option<usize>Maximum number of unacknowledged messages buffered per connection on
this channel. When the queue is full, Server::send_message /
Client::send_message returns
Err(NaiaServerError::MessageQueueFull) /
Err(NaiaClientError::MessageQueueFull) and the caller must decide
whether to retry or discard. None = unlimited (not recommended for
production servers). Default: Some(1024).
Implementations§
Trait Implementations§
Source§impl Clone for ReliableSettings
impl Clone for ReliableSettings
Source§fn clone(&self) -> ReliableSettings
fn clone(&self) -> ReliableSettings
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 moreAuto Trait Implementations§
impl Freeze for ReliableSettings
impl RefUnwindSafe for ReliableSettings
impl Send for ReliableSettings
impl Sync for ReliableSettings
impl Unpin for ReliableSettings
impl UnsafeUnpin for ReliableSettings
impl UnwindSafe for ReliableSettings
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