Function rmp_rpc::serve
[−]
[src]
ⓘImportant traits for Box<W>
pub fn serve<'a, S: Service + 'a, T: AsyncRead + AsyncWrite + 'a>(
stream: T,
service: S,
handle: Handle
) -> Box<Future<Item = (), Error = Error> + 'a>
Creates a future for running a Service
on a stream.
The returned future will run until the stream is closed; if the stream encounters an error, then the future will propagate it and terminate.