Skip to main content

scope

Function scope 

Source
pub fn scope<F: Future>(
    identity: Option<AuthenticatedIdentity>,
    fut: F,
) -> impl Future<Output = F::Output>
Expand description

Run fut with identity set as the current auth context for this task.

Called by core.rs before dispatching each handler invocation.