pub fn should_return_early(
    execution: &ExecutionState,
    abs_moniker: &AbsoluteMoniker,
) -> Option<Result<(), ModelError>> {
    if execution.is_shut_down() {
        Some(Err(ModelError::instance_shut_down(abs_moniker.clone())))
    } else if execution.runtime.is_some() {
        Some(Ok(()))
    } else {
        None
    }
}
/// Returns `Some(Result)` if `bind` should return early based on either of the following:
/// - The component instance is shut down.
/// - The component instance is already started.
Returns `Some(Result)` if `bind` should return early based on either of the following:
The component instance is shut down.
The component instance is already started.
Returns ` Some ( Result ) ` if ` bind ` should return early based on either of the following : The component instance is shut down . The component instance is already started .
pub fn should_return_early(
    execution: &ExecutionState,
    abs_moniker: &AbsoluteMoniker,
) -> Option<Result<(), ModelError>> {
    if execution.is_shut_down() {
        Some(Err(ModelError::instance_shut_down(abs_moniker.clone())))
    } else if execution.runtime.is_some() {
        Some(Ok(()))
    } else {
        None
    }
}
pub fn should_return_early ( execution : & ExecutionState , abs_moniker : & AbsoluteMoniker , ) -> Option < Result < ( ) , ModelError > > { if execution . is_shut_down ( ) { Some ( Err ( ModelError :: instance_shut_down ( abs_moniker . clone ( ) ) ) ) } else if execution . runtime . is_some ( ) { Some ( Ok ( ( ) ) ) } else { None } }
Returns `Some(Result)` if `bind` should return early based on either of the following:
 The component instance is shut down.
Returns ` Some ( Result ) ` if ` bind ` should return early based on either of the following : The component instance is shut down .
execution
&ExecutionState
abs_moniker
&AbsoluteMoniker
execution
&ExecutionState
abs_moniker
&AbsoluteMoniker