pub struct Config { /* private fields */ }
Expand description
Event loop configuration
The structure currently embeds mio configuration too
Implementations§
Source§impl Config
impl Config
Sourcepub fn mio(&mut self) -> &mut EventLoopConfig
pub fn mio(&mut self) -> &mut EventLoopConfig
A mutable reference for mio::EventLoopConfig
Sourcepub fn slab_capacity(&mut self, capacity: usize)
pub fn slab_capacity(&mut self, capacity: usize)
A capacity of state machine slab
This limits the number of state machines that application is able to create. Consequently this limits the number of connections that server is able to establish.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more