Struct fibers_rpc::server::ServerBuilder [] [src]

pub struct ServerBuilder { /* fields omitted */ }

RPC server builder.

Methods

impl ServerBuilder
[src]

[src]

Makes a new ServerBuilder instance.

Important traits for &'a mut W
[src]

Sets the logger of the server.

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

Important traits for &'a mut W
[src]

Sets ChannelOptions used by the service.

The default value is ChannelOptions::default().

Important traits for &'a mut W
[src]

Sets MetricBuilder used by the service.

The default value is MetricBuilder::new().

Important traits for &'a mut W
[src]

Registers a handler for the request/response RPC.

This equivalent to add_call_handler_with_codec(handler, DefaultFactory::new(), DefaultFactory::new()).

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

Important traits for &'a mut W
[src]

Registers a handler (with the given decoder maker) for the request/response RPC.

This equivalent to add_call_handler_with_codec(handler, decoder_factory, DefaultFactory::new()).

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

Important traits for &'a mut W
[src]

Registers a handler (with the given encoder maker) for the request/response RPC.

This equivalent to add_call_handler_with_codec(handler, DefaultFactory::new(), encoder_factory).

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

Important traits for &'a mut W
[src]

Registers a handler (with the given decoder/encoder makers) for the request/response RPC.

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

Important traits for &'a mut W
[src]

Registers a handler for the notification RPC.

This equivalent to add_cast_handler_with_encoder(handler, DefaultFactory::new()).

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

Important traits for &'a mut W
[src]

Registers a handler (with the given decoder maker) for the notification RPC.

Panices

If a procedure which has T::ID already have been registered, the calling thread will panic.

[src]

Returns the resulting RPC server.

The invocation of this method consumes all registered handlers.

Trait Implementations

Auto Trait Implementations

impl Send for ServerBuilder

impl !Sync for ServerBuilder