pub enum RequestBody {
Hello {
version: u32,
settings: Option<Settings>,
},
Step {
step: Step,
},
Relocate,
Bye,
}Expand description
What the client wants done.
do names either a control message or a step, using the same
vocabulary as flow files and chained argv — so {"do":"click"} is
the wire form of action = "click". Because one key names both
kinds, the two are separated by hand in parse_request rather
than by a derive; the payoff is that a client writes the verb it
already knows instead of nesting it under a wrapper.
Variants§
Hello
First message: agree on a version before anything else happens,
and optionally set the run settings for the whole session — the
same fields a flow file’s [settings] table carries, so there is
nothing new to learn and no CLI flag to keep in sync.
Step
Perform one step.
Relocate
Re-locate every region and report where they are, without acting.
Bye
End the session. Closing stdin does the same thing.
Trait Implementations§
Source§impl Clone for RequestBody
impl Clone for RequestBody
Source§fn clone(&self) -> RequestBody
fn clone(&self) -> RequestBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more