[−][src]Trait spirit_tokio::net::limits::ListenLimits
Additional configuration for limiting of connections & error handling when accepting.
The canonical implementation is the Limits
‒ have a look at that.
If you don't like how/where it gets the configuration, you can provide your own implementation of this trait.
Required methods
fn error_sleep(&self) -> Duration
How long to sleep when error happens.
fn max_conn(&self) -> usize
Maximum number of active connections one instance will have.
If you don't want the limit, return some huge number (usize::max_value() / 8 - 1
is
recommended maximum).