Function set_state

Source
pub fn set_state(state: State)
Expand description

Sets the current state of the service.

In most cases, the service state is updated automatically and does not need to be set directly.