Skip to main content

broadcast_action

Function broadcast_action 

Source
pub(crate) fn broadcast_action(
    route: Result<AgentRoute, String>,
) -> BroadcastAction
Expand description

Maps route_agent_message’s answer to an action. A PTY-based target is refused rather than typed into: a broadcast is prose, and keystrokes into a shell prompt would run it as a command.