Struct fibers_rpc::server::Reply
[−]
[src]
pub struct Reply<T: Call> { /* fields omitted */ }
This represents a reply from a RPC server.
Methods
impl<T: Call> Reply<T>
[src]
pub fn future<F>(future: F) -> Self where
F: Future<Item = T::Res, Error = Never> + Send + 'static,
[src]
F: Future<Item = T::Res, Error = Never> + Send + 'static,
Makes a Reply
instance which will execute future
then reply the resulting item as the response.
pub fn done(response: T::Res) -> Self
[src]
Makes a Reply
instance which replies the response immediately.