[][src]Struct fibers_rpc::client::ClientServiceBuilder

pub struct ClientServiceBuilder { /* fields omitted */ }

ClientService builder.

Methods

impl ClientServiceBuilder[src]

pub fn new() -> Self[src]

Makes a new ClientServiceBuilder instance.

pub fn logger(&mut self, logger: Logger) -> &mut Self[src]

Sets the logger of the service.

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

pub fn keep_alive_timeout(&mut self, timeout: Duration) -> &mut Self[src]

Sets the keep-alive timeout for each RPC connection of the service.

If a connection do not send or receive any messages duration the timeout period, it will be disconnected.

The default value is Duration::from_secs(60 * 10).

pub fn channel_options(&mut self, options: ChannelOptions) -> &mut Self[src]

Sets ChannelOptions used by the service.

The default value is ChannelOptions::default().

pub fn metrics(&mut self, builder: MetricBuilder) -> &mut Self[src]

Sets MetricBuilder used by the service.

The default value is MetricBuilder::new().

pub fn finish<S>(&self, spawner: S) -> ClientService where
    S: Spawn + Send + 'static, 
[src]

Builds a new ClientService instance.

Trait Implementations

impl Default for ClientServiceBuilder[src]

impl Debug for ClientServiceBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]