Skip to main content

grant

Function grant 

Source
pub(crate) fn grant(
    state: &AppState,
    pane: &str,
    agent: &str,
    origins: Vec<String>,
    powers: Vec<Power>,
    minutes: u64,
    how: How,
) -> Grant
Expand description

Record a grant on pane for agent over origins, show it in the pane’s header, log it (how: the person’s header button, or their answer to the agent’s request), and end it when its time is up or its agent goes quiet. Replaces any grant the pane had.