Skip to main content

Module action_commands

Module action_commands 

Source
Expand description

Which websocket RPC commands are recorded (super::action_record), decided one by one. Every command a connection can call is in exactly one of the lists below (a test checks it against the commands a real connection registers), so a new command cannot be added without someone deciding whether it changes anything.

Enums§

Policy
Whether a call of a command is recorded.

Constants§

ALWAYS
Changes state, runs or stops a process, writes files, sends to an agent or changes who may do what. Recorded whoever calls.
LIVE_INPUT
Terminal and language-server input and event subscriptions: live traffic, not actions.
READ_ONLY
Returns data and changes nothing.
UNLESS_OPERATOR
The window’s own view and bookkeeping state.

Functions§

is_a_read
Whether this request, of a command that can write, only reads.
is_recorded
A command that is in no list is recorded: forgetting to decide never hides a call.
policy
How command is recorded; None for a command in no list.