Struct rudp::EndpointConfig[][src]

pub struct EndpointConfig {
    pub max_msg_size: usize,
    pub buffer_grow_space: usize,
    pub window_size: u32,
    pub new_set_unsent_action: NewSetUnsent,
    pub resend_predicate: Box<FnMut(u32, Duration) -> bool>,
    pub min_heartbeat_period: Duration,
}

This object contains all the configuration information required by the Endpoint struct. default() will return a new configuration object with default values which can be directly manipulated before being passed to the Endpoint.

Fields

Methods

impl EndpointConfig
[src]

Return a newly-constructed EndpointConfig with fields populated by default values.

Trait Implementations

impl Debug for EndpointConfig
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations