Struct tokio_io_timeout::TimeoutServerBinder [] [src]

pub struct TimeoutServerBinder<Kind, T, P> where
    P: BindServer<Kind, TimeoutStream<T>>,
    T: 'static, 
{ /* fields omitted */ }

A BindServer which wraps streams in a TimeoutStream before delegating to another BindServer.

Methods

impl<Kind, T, P> TimeoutServerBinder<Kind, T, P> where
    P: BindServer<Kind, TimeoutStream<T>>,
    T: AsyncRead + AsyncWrite + 'static,
    Kind: 'static, 
[src]

[src]

Returns a new TimeoutServerBinder wrapping the specified binder.

There is initially no read or write timeout.

[src]

Returns the current read timeout.

[src]

Sets the read timeout.

[src]

Returns the current write timeout.

[src]

Sets the write timeout.

Trait Implementations

impl<Kind, T, P> BindServer<TimeoutKind, T> for TimeoutServerBinder<Kind, T, P> where
    P: BindServer<Kind, TimeoutStream<T>>,
    T: AsyncRead + AsyncWrite + 'static,
    Kind: 'static, 
[src]

The request type for the service.

The response type for the service.

The error type for the service.

[src]

Bind the service. Read more