This crate is deprecated in favor of tower.
Definition of the core Service
trait in Tokio
First, add this to your Cargo.toml
:
[dependencies]
tokio-service = { git = "https://github.com/tokio-rs/tokio-service" }
Next, add this to your crate:
extern crate tokio_service;
You can find extensive examples and tutorials in addition to the API documentation at https://tokio.rs
tokio-service
is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0), with portions covered by various
BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.