Struct rotor::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 EventLoopConfig
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 EventLoopConfig
Sets the maximum number of messages that can be processed on any tick of the event loop.
The default value for this is 256.