pub fn new<F, Fut>(init: F) -> Self
    where
        F: Fn(Info) -> Fut + Send + Sync + 'static,
        Fut: Future<Output = T> + Send + 'static,
    {
        Self(Inner::New(Box::new(move |info| Box::pin(init(info)))))
    }
/**
    Constructs a new Init handler with an async function that
    returns the handler post-initialization. The async function
    receives [`Info`] for the current server.
    */
Constructs a new Init handler with an async function that
returns the handler post-initialization. The async function
receives [`Info`] for the current server.
Constructs a new Init handler with an async function that returns the handler post - initialization . The async function receives [ ` Info ` ] for the current server .
pub fn new<F, Fut>(init: F) -> Self
    where
        F: Fn(Info) -> Fut + Send + Sync + 'static,
        Fut: Future<Output = T> + Send + 'static,
    {
        Self(Inner::New(Box::new(move |info| Box::pin(init(info)))))
    }
pub fn new < F , Fut > ( init : F ) -> Self where F : Fn ( Info ) -> Fut + Send + Sync + ' static , Fut : Future < Output = T > + Send + ' static , { Self ( Inner :: New ( Box :: new ( move | info | Box :: pin ( init ( info ) ) ) ) ) }
Constructs a new Init handler with an async function that
returns the handler post-initialization.
Constructs a new Init handler with an async function that returns the handler post - initialization .
init
F
init
F