Struct mio::EventLoopConfig [] [src]

pub struct EventLoopConfig {
    // some fields omitted
}

Configure EventLoop runtime details

Methods

impl EventLoopConfig

fn new() -> EventLoopConfig

Creates a new configuration for the event loop with all default options specified.

fn notify_capacity(&mut self, capacity: usize) -> &mut Self

Sets the maximum number of messages that can be buffered on the event loop's notification channel before a send will fail.

The default value for this is 4096.

fn messages_per_tick(&mut self, messages: usize) -> &mut Self

Sets the maximum number of messages that can be processed on any tick of the event loop.

The default value for this is 256.

fn timer_tick_ms(&mut self, ms: u64) -> &mut Self

fn timer_wheel_size(&mut self, size: usize) -> &mut Self

fn timer_capacity(&mut self, cap: usize) -> &mut Self

Trait Implementations

impl Default for EventLoopConfig

fn default() -> EventLoopConfig

Derived Implementations

impl Debug for EventLoopConfig

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for EventLoopConfig

fn clone(&self) -> EventLoopConfig

1.0.0fn clone_from(&mut self, source: &Self)