1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-30 18:34:36 +01:00

mentioned re-use in wrap doc

This commit is contained in:
dowwie 2019-04-01 09:59:21 -04:00
parent 220c04b7b3
commit 8800b8ef13

View File

@ -113,8 +113,8 @@ where
} }
/// Registers heavyweight Application-level middleware, in the form of a /// Registers heavyweight Application-level middleware, in the form of a
/// middleware type, that runs during inbound and/or outbound processing in the /// re-usable middleware type, that runs during inbound and/or outbound
/// request lifecycle (request -> response). /// processing in the request lifecycle (request -> response).
/// ///
/// ```rust /// ```rust
/// use actix_service::Service; /// use actix_service::Service;
@ -422,8 +422,8 @@ where
} }
/// Registers heavyweight Route-level middleware, in the form of a /// Registers heavyweight Route-level middleware, in the form of a
/// middleware type, that runs during inbound and/or outbound processing in the /// re-usable middleware type, that runs during inbound and/or outbound
/// request lifecycle (request -> response). /// processing in the request lifecycle (request -> response).
pub fn wrap<M, B1, F>( pub fn wrap<M, B1, F>(
self, self,
mw: F, mw: F,