pub struct ServiceConfigBuilder<H> { /* private fields */ }
Expand description

A service config builder

This type can be used to construct an instance of ServiceConfig through a builder-like pattern.

Implementations§

Create instance of ServiceConfigBuilder

Enable secure flag for current server.

By default this flag is set to false.

Set server keep-alive setting.

By default keep alive is set to a 5 seconds.

Set server client timeout in milliseconds for first request.

Defines a timeout for reading client request header. If a client does not transmit the entire set headers within this time, the request is terminated with the 408 (Request Time-out) error.

To disable timeout set value to 0.

By default client timeout is set to 5000 milliseconds.

Set server connection shutdown timeout in milliseconds.

Defines a timeout for shutdown connection. If a shutdown procedure does not complete within this time, the request is dropped. This timeout affects only secure connections.

To disable timeout set value to 0.

By default client timeout is set to 5000 milliseconds.

Set server host name.

Host name is used by application router aa a hostname for url generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo. html#method.host) documentation for more information.

By default host name is set to a “localhost” value.

Set server ip address.

Host name is used by application router aa a hostname for url generation. Check [ConnectionInfo](./dev/struct.ConnectionInfo. html#method.host) documentation for more information.

By default server address is set to a “127.0.0.1:8080”

Finish service configuration and create ServiceConfig object.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. Read more
Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.