pub struct ShardedRuntimeConfig {
pub shard_count: usize,
pub outbound_tick_interval: Duration,
pub metrics_emit_interval: Duration,
pub event_queue_capacity: usize,
pub command_queue_capacity: usize,
pub event_overflow_policy: EventOverflowPolicy,
pub max_new_datagrams_per_session: usize,
pub max_new_bytes_per_session: usize,
pub max_resend_datagrams_per_session: usize,
pub max_resend_bytes_per_session: usize,
}Fields§
§shard_count: usize§outbound_tick_interval: Duration§metrics_emit_interval: Duration§event_queue_capacity: usize§command_queue_capacity: usize§event_overflow_policy: EventOverflowPolicy§max_new_datagrams_per_session: usize§max_new_bytes_per_session: usize§max_resend_datagrams_per_session: usize§max_resend_bytes_per_session: usizeImplementations§
Source§impl ShardedRuntimeConfig
impl ShardedRuntimeConfig
pub fn validate(&self) -> Result<(), ConfigValidationError>
Trait Implementations§
Source§impl Clone for ShardedRuntimeConfig
impl Clone for ShardedRuntimeConfig
Source§fn clone(&self) -> ShardedRuntimeConfig
fn clone(&self) -> ShardedRuntimeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardedRuntimeConfig
impl Debug for ShardedRuntimeConfig
Auto Trait Implementations§
impl Freeze for ShardedRuntimeConfig
impl RefUnwindSafe for ShardedRuntimeConfig
impl Send for ShardedRuntimeConfig
impl Sync for ShardedRuntimeConfig
impl Unpin for ShardedRuntimeConfig
impl UnsafeUnpin for ShardedRuntimeConfig
impl UnwindSafe for ShardedRuntimeConfig
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