pub fn start_allocation(
state: OpState,
plan: Vec<AllocationPlanEntry>,
op_id: u64,
) -> TransitionResExpand description
Start an allocation from Idle state.
§Arguments
state- Current state (must be Idle)plan- Allocation steps specifying where to allocateop_id- Unique operation ID for correlation
§Returns
Ok(TransitionResult)with new Allocating stateErr(TransitionError::WrongState)if not in Idle stateErr(TransitionError::EmptyAllocationPlan)if plan is empty