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]

Returns a new TimeoutServerBinder wrapping the specified binder.

There is initially no read or write timeout.

Returns the current read timeout.

Sets the read timeout.

Returns the current write timeout.

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.

Bind the service. Read more