[][src]Struct socket_collection::SocketConfig

pub struct SocketConfig {
    pub max_payload_size: usize,
    pub msg_drop_priority: u8,
    pub max_msg_age_secs: u64,
    pub enc_ctx: EncryptContext,
    pub dec_ctx: DecryptContext,
}

Configures socket behavior.

Fields

Maximum data size that the socket will send. Nonaplicable for UDP socket whose max message size is determined by max UDP payload size.

Minimum priority for droppable messages. Messages with lower values will never be dropped.

Maximum age of a message waiting to be sent. If a message is older, the queue is dropped.

Data that goes throught socket encryption scheme.

Data that goes throught socket decryption scheme.

Trait Implementations

impl Clone for SocketConfig
[src]

Performs copy-assignment from source. Read more

impl Default for SocketConfig
[src]

impl Debug for SocketConfig
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

impl<T> Same for T

Should always be Self