Skip to main content

decide

Function decide 

Source
pub async fn decide<St: ComponentStore>(
    store: &St,
    id: &Id,
    cmd: &Command,
    ctx: &DecideCtx,
) -> Result<Vec<Event>, Denied>
Expand description

Run cmd through the ordered guards (first denial wins, spec §13 Q2 default), reading current state from store. On allow, emit the events. Async: guards get only the capabilities they inspect.