Skip to main content

settle_broadcast

Function settle_broadcast 

Source
pub(super) fn settle_broadcast(
    state: &AppState,
    outcomes: Vec<BroadcastOutcome>,
    is_local: impl Fn(&str) -> bool,
    msg_id: &str,
    message: &str,
) -> FleetActionResult
Expand description

Sorts the outcomes of a broadcast into a FleetActionResult. is_local says whether a block is an agent of this instance, whose history gets what the person typed.