pub(crate) fn next(
    service_handler: &ServiceHandler,
    repo: &Repo,
    lifecycle_status: LifecycleStatus,
) -> Vec<Event> {
    match lifecycle_status {
        LifecycleStatus::Running => next_events(repo, service_handler),
        LifecycleStatus::ShuttingDown(shutting_down) => {
            next_events_shutting_down(service_handler, shutting_down)
        }
    }
}
/// Generates events that, if applied, will make service_handler FSM progress
Generates events that, if applied, will make service_handler FSM progress
Generates events that if applied will make service_handler FSM progress
pub(crate) fn next(
    service_handler: &ServiceHandler,
    repo: &Repo,
    lifecycle_status: LifecycleStatus,
) -> Vec<Event> {
    match lifecycle_status {
        LifecycleStatus::Running => next_events(repo, service_handler),
        LifecycleStatus::ShuttingDown(shutting_down) => {
            next_events_shutting_down(service_handler, shutting_down)
        }
    }
}
pub ( crate ) fn next ( service_handler : & ServiceHandler , repo : & Repo , lifecycle_status : LifecycleStatus , ) -> Vec < Event > { match lifecycle_status { LifecycleStatus :: Running => next_events ( repo , service_handler ) , LifecycleStatus :: ShuttingDown ( shutting_down ) => { next_events_shutting_down ( service_handler , shutting_down ) } } }
Generates events that, if applied, will make service_handler FSM progress
Generates events that if applied will make service_handler FSM progress
service_handler
&ServiceHandler
repo
&Repo
lifecycle_status
LifecycleStatus
service_handler
&ServiceHandler
repo
&Repo
lifecycle_status
LifecycleStatus