1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-11-26 19:41:12 +00:00

make Pipeline private

This commit is contained in:
Nikolay Kim 2017-12-29 09:16:50 -08:00
parent d87fafb563
commit 1d195a2cf2
2 changed files with 2 additions and 3 deletions

View file

@ -170,7 +170,6 @@ pub mod dev {
pub use handler::Handler;
pub use json::JsonBody;
pub use router::{Router, Pattern};
pub use pipeline::Pipeline;
pub use channel::{HttpChannel, HttpHandler, IntoHttpHandler};
pub use param::{FromParam, Params};
pub use httprequest::UrlEncoded;

View file

@ -17,11 +17,11 @@ use httpresponse::HttpResponse;
use middleware::{Middleware, Finished, Started, Response};
use application::Inner;
pub trait PipelineHandler<S> {
pub(crate) trait PipelineHandler<S> {
fn handle(&mut self, req: HttpRequest<S>) -> Reply;
}
pub struct Pipeline<S, H>(PipelineInfo<S>, PipelineState<S, H>);
pub(crate) struct Pipeline<S, H>(PipelineInfo<S>, PipelineState<S, H>);
enum PipelineState<S, H> {
None,