mirror of https://github.com/rwf2/Rocket.git
Clarify manage method docs.
This commit is contained in:
parent
a88aa21b60
commit
5abb8d99b4
|
@ -483,6 +483,9 @@ impl Rocket {
|
||||||
|
|
||||||
/// Add `state` to the state managed by this instance of Rocket.
|
/// Add `state` to the state managed by this instance of Rocket.
|
||||||
///
|
///
|
||||||
|
/// This method can be called any number of times as long as each call
|
||||||
|
/// referes to a different `T`.
|
||||||
|
///
|
||||||
/// Managed state can be retrieved by any request handler via the
|
/// Managed state can be retrieved by any request handler via the
|
||||||
/// [State](/rocket/struct.State.html) request guard. In particular, if a
|
/// [State](/rocket/struct.State.html) request guard. In particular, if a
|
||||||
/// value of type `T` is managed by Rocket, adding `State<T>` to the list of
|
/// value of type `T` is managed by Rocket, adding `State<T>` to the list of
|
||||||
|
|
Loading…
Reference in New Issue