5b63058129
A bit of tidying up ahead of the 0.1 release: - Drop `poll_ready` for now, given that we're uncertain about the overall backpressure story, and it can be added easily as a defaulted method later on. Backpressure should be a major goal in an upcoming release. - Rename `SimpleService` to `FnService`, matching the `Fn*` traits. - Rename `NewService::Item` to `NewService::Instance`, for greater clarity about their relationship. |
||
---|---|---|
src | ||
.gitignore | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
appveyor.yml |
README.md
tokio-service
Definition of the core Service
trait in Tokio
Usage
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;
License
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.