1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-23 21:51:06 +01:00

update actix-rt changes

This commit is contained in:
Nikolay Kim 2019-07-17 10:30:59 +06:00
parent 9271b95c87
commit b491d373b1
3 changed files with 12 additions and 11 deletions

View File

@ -1,5 +1,12 @@
# Changes # Changes
## [0.2.4] - 2019-07-17
### Changed
* Avoid a copy of the Future when initializing the Box. #29
## [0.2.3] - 2019-06-22 ## [0.2.3] - 2019-06-22
### Added ### Added

View File

@ -1,6 +1,6 @@
[package] [package]
name = "actix-rt" name = "actix-rt"
version = "0.2.3" version = "0.2.4"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"] authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix runtime" description = "Actix runtime"
keywords = ["network", "framework", "async", "futures"] keywords = ["network", "framework", "async", "futures"]

View File

@ -6,17 +6,11 @@ use futures::{Async, Future, IntoFuture, Poll};
use crate::transform_err::{TransformFromErr, TransformMapInitErr}; use crate::transform_err::{TransformFromErr, TransformMapInitErr};
use crate::{IntoNewService, NewService, Service}; use crate::{IntoNewService, NewService, Service};
/// The `Transform` trait defines the interface of a Service factory. `Transform` /// The `Transform` trait defines the interface of a Service factory. `Transform`
/// is often implemented for middleware, defining how to manufacture a /// is often implemented for middleware, defining how to construct a
/// middleware Service. A Service that is manufactured by the factory takes /// middleware Service. A Service that is constructed by the factory takes
/// the Service that follows it during execution as a parameter, assuming /// the Service that follows it during execution as a parameter, assuming
/// ownership of the next Service. A Service can be a variety of types, such /// ownership of the next Service.
/// as (but not limited to) another middleware Service, an extractor Service,
/// other helper Services, or the request handler endpoint Service.
///
/// A Service is created by the factory during server initialization.
///
/// `Config` is a service factory configuration type.
pub trait Transform<S> { pub trait Transform<S> {
/// Requests handled by the service. /// Requests handled by the service.
type Request; type Request;