Struct rotor::Config [] [src]

pub struct Config {
    // some fields omitted
}

Event loop configuration

The structure currently embeds mio configuration too

Methods

impl Config

fn new() -> Config

Create new configuration with default options

fn mio(&mut self) -> &mut EventLoopConfig

A mutable reference for mio::EventLoopConfig

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

impl Default for Config

fn default() -> Config

Derived Implementations

impl Clone for Config

fn clone(&self) -> Config

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Config

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