Clarify built-in request guard implementations.

This commit is contained in:
Sergio Benitez 2022-07-17 18:45:11 -07:00
parent f64029f079
commit 8e8dfc7d45
1 changed files with 9 additions and 8 deletions

View File

@ -159,20 +159,21 @@ impl<S, E> IntoOutcome<S, (Status, E), ()> for Result<S, E> {
/// ///
/// * **ContentType** /// * **ContentType**
/// ///
/// Extracts the [`ContentType`] from the incoming request. If the request /// Extracts the [`ContentType`] from the incoming request via
/// didn't specify a Content-Type, the request is forwarded. /// [`Request::content_type()`]. If the request didn't specify a
/// Content-Type, the request is forwarded.
/// ///
/// * **IpAddr** /// * **IpAddr**
/// ///
/// Extracts the client ip address of the incoming request as an [`IpAddr`]. /// Extracts the client ip address of the incoming request as an [`IpAddr`]
/// If the client's IP address is not known, the request is forwarded. /// via [`Request::client_ip()`]. If the client's IP address is not known,
/// the request is forwarded.
/// ///
/// * **SocketAddr** /// * **SocketAddr**
/// ///
/// Extracts the remote address of the incoming request as a [`SocketAddr`]. /// Extracts the remote address of the incoming request as a [`SocketAddr`]
/// If the remote address is not known, the request is forwarded. /// via [`Request::remote()`]. If the remote address is not known, the
/// /// request is forwarded.
/// _This implementation always returns successfully._
/// ///
/// * **Option&lt;T>** _where_ **T: FromRequest** /// * **Option&lt;T>** _where_ **T: FromRequest**
/// ///