[−][src]Struct mio::EventLoopConfig
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 Wpub fn notify_capacity(&mut self, capacity: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut W
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 Wpub fn messages_per_tick(&mut self, messages: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut W
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 Wpub fn timer_tick_ms(&mut self, ms: u64) -> &mut Self
[src]
ⓘImportant traits for &'_ mut W
ⓘImportant traits for &'_ mut Wpub fn timer_wheel_size(&mut self, size: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut W
ⓘImportant traits for &'_ mut Wpub fn timer_capacity(&mut self, cap: usize) -> &mut Self
[src]
ⓘImportant traits for &'_ mut W
Trait Implementations
impl Clone for EventLoopConfig
[src]
fn clone(&self) -> EventLoopConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for EventLoopConfig
[src]
fn default() -> 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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,