Struct copra::server::ServerBuilder [] [src]

pub struct ServerBuilder<'a> { /* fields omitted */ }

Server factory, which can be used to setup up a new server

You can chain up the methods to configure the channel.

Methods

impl<'a> ServerBuilder<'a>
[src]

[src]

Create a server listening to addr.

[src]

Set the number of event loops.

The thread number should not exceed the CPU core number. Default to 1.

[src]

[WIP] Set the protocols that the server willing to support.

[src]

Keep an idle connection for idle seconds before it iS shuted down by the server.

Default to 60 seconds

[src]

[WIP] Server monitor, expose throught to the shared variable throughput.

[src]

Consume the builder and build.

Trait Implementations

impl<'a> Debug for ServerBuilder<'a>
[src]

[src]

Formats the value using the given formatter.