mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-24 01:11:07 +01:00
docs tweak
This commit is contained in:
parent
4e6d88d143
commit
7a82288066
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#![no_std]
|
#![no_std]
|
||||||
#![deny(rust_2018_idioms, nonstandard_style)]
|
#![deny(rust_2018_idioms, nonstandard_style)]
|
||||||
|
#![warn(missing_docs)]
|
||||||
#![allow(clippy::type_complexity)]
|
#![allow(clippy::type_complexity)]
|
||||||
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
|
||||||
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
|
||||||
@ -59,7 +60,7 @@ use self::ready::{err, ok, ready, Ready};
|
|||||||
/// response type.
|
/// response type.
|
||||||
///
|
///
|
||||||
/// Services can also have mutable state that influence computation by using a `Cell`, `RefCell`
|
/// Services can also have mutable state that influence computation by using a `Cell`, `RefCell`
|
||||||
/// or `Mutex`. Services intentionally do not take `&mut self` to reduce over-head in the
|
/// or `Mutex`. Services intentionally do not take `&mut self` to reduce overhead in the
|
||||||
/// common cases.
|
/// common cases.
|
||||||
///
|
///
|
||||||
/// `Service` provides a symmetric and uniform API; the same abstractions can be used to represent
|
/// `Service` provides a symmetric and uniform API; the same abstractions can be used to represent
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/// A boilerplate implementation of [`Service::poll_ready`] that always signals readiness.
|
/// An implementation of [`poll_ready`]() that always signals readiness.
|
||||||
///
|
///
|
||||||
/// [`Service::poll_ready`]: crate::Service::poll_ready
|
/// [`poll_ready`]: crate::Service::poll_ready
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
@ -34,12 +34,12 @@ macro_rules! always_ready {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A boilerplate implementation of [`Service::poll_ready`] that forwards readiness checks to a
|
/// An implementation of [`poll_ready`] that forwards readiness checks to a
|
||||||
/// named struct field.
|
/// named struct field.
|
||||||
///
|
///
|
||||||
/// Tuple structs are not supported.
|
/// Tuple structs are not supported.
|
||||||
///
|
///
|
||||||
/// [`Service::poll_ready`]: crate::Service::poll_ready
|
/// [`poll_ready`]: crate::Service::poll_ready
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
/// ```no_run
|
/// ```no_run
|
||||||
|
Loading…
Reference in New Issue
Block a user