Skip to main content

wrap

Function wrap 

Source
pub fn wrap<D>(
    app: Router,
    federation: Federation<D>,
    data: impl Fn(&Parts) -> Option<D> + Send + Sync + 'static,
) -> Router
where D: Clone + Send + Sync + 'static,
Expand description

app, with federation answering what is Ojak’s. app is a router with its state already given, as it would be served.