Struct mio::deprecated::EventLoopBuilder [] [src]

pub struct EventLoopBuilder {
    // some fields omitted
}

Methods

impl EventLoopBuilder
[src]

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.

Trait Implementations

impl Clone for EventLoopBuilder
[src]

fn clone(&self) -> EventLoopBuilder

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 Default for EventLoopBuilder
[src]

fn default() -> EventLoopBuilder

Returns the "default value" for a type. Read more

impl Debug for EventLoopBuilder
[src]

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

Formats the value using the given formatter.