Skip to main content

provide

Function provide 

Source
pub fn provide<D: 'static>(cx: &Cx, handle: &LoopHandle<'static, D>)
Expand description

Makes the services reachable from cx and every context made from it. The shell calls this once, with its root context and its event loop.

Nothing starts here: each service starts when a config first asks for it. The loop is kept weakly, so it and the compositor connection still go when the shell drops.