1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-18 05:41:50 +01: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,