Struct cotoxy::ProxyServerBuilder [] [src]

pub struct ProxyServerBuilder { /* fields omitted */ }

A builder for ProxyServer.

Methods

impl ProxyServerBuilder
[src]

DEFAULT_BIND_ADDR: &'static str = "0.0.0.0:17382"

The default address to which the proxy server bind.

DEFAULT_CONNECT_TIMEOUT_MS: u64 = 1000

The default timeout of a TCP connect operation.

[src]

Makes a new ProxyServerBuilder for the given service.

[src]

Sets the logger of the server.

The default value is Logger::root(Discard, o!()).

[src]

Sets the address to which the server bind.

The default value is ProxyServerBuilder::DEFAULT_BIND_ADDR.

[src]

Sets the port number of the service handled by the proxy server.

If omitted, the value of the selected node's ServicePort field registered in Consul will be used.

[src]

Sets the timeout of a TCP connect operation.

The default value is Duration::from_millis(ProxyServerBuilder::DEFAULT_CONNECT_TIMEOUT_MS).

[src]

Returns the mutable reference to ConsulClientBuilder.

[src]

Builds a new proxy server with the specified settings.

Trait Implementations

impl Debug for ProxyServerBuilder
[src]

[src]

Formats the value using the given formatter.

impl Clone for ProxyServerBuilder
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more