Skip to main content

assert_child_state

Function assert_child_state 

Source
pub fn assert_child_state(
    state: &SupervisorState,
    path: &str,
    expected: ChildLifecycleState,
)
Expand description

Asserts that a child path has the expected lifecycle state.

§Arguments

  • state: Supervisor state to inspect.
  • path: Child path text.
  • expected: Expected lifecycle state.

§Returns

This function does not return a value.