mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-21 14:46:32 +01:00
Reference the requirements for from_fn_with_state (#2950)
This commit is contained in:
parent
4944ed3b1c
commit
20b9445347
1 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,8 @@ pub fn from_fn<F, T>(f: F) -> FromFnLayer<F, (), T> {
|
|||
|
||||
/// Create a middleware from an async function with the given state.
|
||||
///
|
||||
/// For the requirements for the function supplied see [`from_fn`].
|
||||
///
|
||||
/// See [`State`](crate::extract::State) for more details about accessing state.
|
||||
///
|
||||
/// # Example
|
||||
|
|
Loading…
Reference in a new issue