[][src]Struct mio::EventLoopConfig

pub struct EventLoopConfig { /* fields omitted */ }

Configure EventLoop runtime details

Methods

impl EventLoopConfig[src]

pub fn new() -> EventLoopConfig[src]

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

Important traits for &'_ mut W
pub fn notify_capacity(&mut self, capacity: usize) -> &mut Self[src]

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.

Important traits for &'_ mut W
pub fn messages_per_tick(&mut self, messages: usize) -> &mut Self[src]

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

The default value for this is 256.

Important traits for &'_ mut W
pub fn timer_tick_ms(&mut self, ms: u64) -> &mut Self[src]

Important traits for &'_ mut W
pub fn timer_wheel_size(&mut self, size: usize) -> &mut Self[src]

Important traits for &'_ mut W
pub fn timer_capacity(&mut self, cap: usize) -> &mut Self[src]

Trait Implementations

impl Clone for EventLoopConfig[src]

impl Default for EventLoopConfig[src]

impl Debug for EventLoopConfig[src]

Auto Trait Implementations

impl Send for EventLoopConfig

impl Sync for EventLoopConfig

impl Unpin for EventLoopConfig

impl UnwindSafe for EventLoopConfig

impl RefUnwindSafe for EventLoopConfig

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]