Skip to main content

loaded

Function loaded 

Source
pub fn loaded<T>(cx: &Cx) -> Option<&T>
where T: Load,
Expand description

The T the request’s panel loaded. None when the panel does not load T, and where no request loaded it: a signed-out page, a route outside the panel, or a context built for a job with PanelHandle::context.

A policy reads None as a refusal: loaded::<Plan>(cx).is_some_and(..).