nested_supervisor

Function nested_supervisor 

Source
pub fn nested_supervisor(
    supervisor: Supervisor,
) -> NestedSupervisorBuilder<'static>
Expand description

Creates a builder for a nested supervisor on the ambient supervisor.

The ambient counterpart to SupervisorHandle::nested_supervisor, which documents what the builder is for.

ยงPanics

NestedSupervisorBuilder::spawn panics if there is no ambient supervisor. See spawn.