[−][src]Struct fibers_rpc::client::ClientServiceBuilder
ClientService
builder.
Implementations
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]
S: Spawn + Send + 'static,
Builds a new ClientService
instance.
Trait Implementations
impl Debug for ClientServiceBuilder
[src]
impl Default for ClientServiceBuilder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ClientServiceBuilder
impl Send for ClientServiceBuilder
impl !Sync for ClientServiceBuilder
impl Unpin for ClientServiceBuilder
impl !UnwindSafe for ClientServiceBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,