Struct rotor::Config [] [src]

pub struct Config {
    // some fields omitted
}

Event loop configuration

The structure currently embeds mio configuration too

Methods

impl Config
[src]

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 Clone for Config
[src]

fn clone(&self) -> Config

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 Debug for Config
[src]

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

Formats the value using the given formatter.

impl Default for Config
[src]

fn default() -> Config

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