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
max_msg_size: usize
buffer_grow_space: usize
window_size: u32
new_set_unsent_action: NewSetUnsent
resend_predicate: Box<FnMut(u32, Duration) -> bool>
min_heartbeat_period: Duration
Methods
impl EndpointConfig
[src]
impl EndpointConfig
pub fn default() -> Self
[src]
pub fn default() -> Self
Return a newly-constructed EndpointConfig
with fields populated by
default values.
Trait Implementations
impl Debug for EndpointConfig
[src]
impl Debug for EndpointConfig
Auto Trait Implementations
impl !Send for EndpointConfig
impl !Send for EndpointConfig
impl !Sync for EndpointConfig
impl !Sync for EndpointConfig