pub struct SocketConfig {
pub default_session_params: SessionParameters,
pub app_params: ApplicationParameters,
pub allow_port_remaps: bool,
pub base_rng_seed: u64,
}Expand description
Options controlling a SoeMultiplexer.
Fields§
§default_session_params: SessionParametersThe session parameters used when creating new sessions.
app_params: ApplicationParametersThe application parameters (e.g. encryption key) cloned into each session.
allow_port_remaps: boolWhether established sessions are permitted to remap to a new port.
base_rng_seed: u64The base seed used to derive each new session’s RNG seed. Successive sessions receive successive seeds, keeping behaviour deterministic for a given base.
Trait Implementations§
Source§impl Clone for SocketConfig
impl Clone for SocketConfig
Source§fn clone(&self) -> SocketConfig
fn clone(&self) -> SocketConfig
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 moreSource§impl Debug for SocketConfig
impl Debug for SocketConfig
Source§impl Default for SocketConfig
impl Default for SocketConfig
Source§fn default() -> SocketConfig
fn default() -> SocketConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SocketConfig
impl RefUnwindSafe for SocketConfig
impl Send for SocketConfig
impl Sync for SocketConfig
impl Unpin for SocketConfig
impl UnsafeUnpin for SocketConfig
impl UnwindSafe for SocketConfig
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