1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-02-07 14:44:24 +01:00

Fix Service documentation (#85)

This commit is contained in:
amosonn 2020-01-11 23:44:01 +01:00 committed by Yuki Okushi
parent 4dcdeb6795
commit 4bbba803c1

View File

@ -57,7 +57,7 @@ pub use self::transform::{apply, Transform};
/// ///
/// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { ... } /// fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { ... }
/// ///
/// fn call(&mut self) -> Self::Future { ... } /// fn call(&mut self, req: Self::Request) -> Self::Future { ... }
/// } /// }
/// ``` /// ```
/// ///
@ -82,7 +82,7 @@ pub trait Service {
/// Returns `Ready` when the service is able to process requests. /// Returns `Ready` when the service is able to process requests.
/// ///
/// If the service is at capacity, then `NotReady` is returned and the task /// If the service is at capacity, then `Pending` is returned and the task
/// is notified when the service becomes ready again. This function is /// is notified when the service becomes ready again. This function is
/// expected to be called while on a task. /// expected to be called while on a task.
/// ///