Struct mio::EventLoopConfig
[−]
[src]
pub struct EventLoopConfig { /* fields omitted */ }
Configure EventLoop runtime details
Methods
impl EventLoopConfig
[src]
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 Clone for EventLoopConfig
[src]
fn clone(&self) -> EventLoopConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for EventLoopConfig
[src]
impl Default for EventLoopConfig
[src]
fn default() -> EventLoopConfig
Returns the "default value" for a type. Read more