[−][src]Function tendermint_light_node::rpc::run
pub fn run<H>(server: Server<H>, addr: &str) -> Result<(), Error> where
H: Handle + Send + Sync + 'static,
Run the given Server on the given address and blocks until closed.
n.b. The underlying server has semantics to close on drop. Also it does not offer any way to get the underlying Future to await, so we are left with this rather rudimentary way to control the lifecycle. Should we be interested in a more controlled way to close the server we can expose a handle in the future.