Struct mio::EventLoopBuilder
[−]
[src]
pub struct EventLoopBuilder { // some fields omitted }
Methods
impl EventLoopBuilder
fn new() -> EventLoopBuilder
Construct a new EventLoopBuilder
with the default configuration
values.
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(&mut self, val: Duration) -> &mut Self
fn timer_wheel_size(&mut self, size: usize) -> &mut Self
fn timer_capacity(&mut self, cap: usize) -> &mut Self
fn build<H: Handler>(self) -> Result<EventLoop<H>>
Constructs a new EventLoop
using the configured values. The
EventLoop
will not be running.