pub struct RaknetClientConfig {Show 20 fields
pub local_addr: Option<SocketAddr>,
pub guid: u64,
pub protocol_version: u8,
pub mtu: u16,
pub mtu_probe_order: Vec<u16>,
pub mtu_probe_attempts_per_step: usize,
pub mtu_probe_wait_per_attempt: Duration,
pub handshake_timeout: Duration,
pub outbound_tick_interval: Duration,
pub session_keepalive_interval: Duration,
pub session_idle_timeout: Duration,
pub recv_buffer_capacity: usize,
pub max_new_datagrams_per_tick: usize,
pub max_new_bytes_per_tick: usize,
pub max_resend_datagrams_per_tick: usize,
pub max_resend_bytes_per_tick: usize,
pub max_new_datagrams_per_recv: usize,
pub max_new_bytes_per_recv: usize,
pub max_resend_datagrams_per_recv: usize,
pub max_resend_bytes_per_recv: usize,
}Expand description
Configuration for RaknetClient.
Fields§
§local_addr: Option<SocketAddr>§guid: u64§protocol_version: u8§mtu: u16§mtu_probe_order: Vec<u16>§mtu_probe_attempts_per_step: usize§mtu_probe_wait_per_attempt: Duration§handshake_timeout: Duration§outbound_tick_interval: Duration§session_keepalive_interval: Duration§session_idle_timeout: Duration§recv_buffer_capacity: usize§max_new_datagrams_per_tick: usize§max_new_bytes_per_tick: usize§max_resend_datagrams_per_tick: usize§max_resend_bytes_per_tick: usize§max_new_datagrams_per_recv: usize§max_new_bytes_per_recv: usize§max_resend_datagrams_per_recv: usize§max_resend_bytes_per_recv: usizeImplementations§
Source§impl RaknetClientConfig
impl RaknetClientConfig
Sourcepub fn validate(&self) -> Result<(), ConfigValidationError>
pub fn validate(&self) -> Result<(), ConfigValidationError>
Validates configuration invariants.
Trait Implementations§
Source§impl Clone for RaknetClientConfig
impl Clone for RaknetClientConfig
Source§fn clone(&self) -> RaknetClientConfig
fn clone(&self) -> RaknetClientConfig
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 RaknetClientConfig
impl Debug for RaknetClientConfig
Auto Trait Implementations§
impl Freeze for RaknetClientConfig
impl RefUnwindSafe for RaknetClientConfig
impl Send for RaknetClientConfig
impl Sync for RaknetClientConfig
impl Unpin for RaknetClientConfig
impl UnsafeUnpin for RaknetClientConfig
impl UnwindSafe for RaknetClientConfig
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