pub enum AgentMessage {
Show 22 variants
Welcome,
Refused {
reason: String,
},
Parse(ParseRequest),
Task(Box<TaskRequest>),
ForkServer(ForkServerRequest),
Watchers(WatchersRequest),
StartWatcher {
watcher: u64,
task: Box<TaskRequest>,
cancel_grace_ms: u64,
moved_in: bool,
},
MoveWatcher {
watcher: u64,
},
GoWatcher {
watcher: u64,
max_wait_ms: Option<u64>,
},
CancelWatcher {
watcher: u64,
},
ToWatcher {
watcher: u64,
message: Box<AgentMessage>,
},
EventStored,
Fork(ForkRequest),
ScriptDeclaration(Box<ScriptDeclaration>),
ScriptNotFound {
message: String,
},
Secret {
value: Value,
},
ApiAnswer {
status: u16,
body: Value,
note: Option<String>,
},
HandleAdded,
HandleRefused {
message: String,
},
SecretFailed {
kind: String,
message: String,
},
Connection {
values: BTreeMap<String, Value>,
},
ConnectionFailed {
kind: String,
message: String,
},
}Expand description
A message from the agent to the runner.
Variants§
Welcome
The handshake succeeded.
Refused
The handshake failed; the runner exits.
Parse(ParseRequest)
A parse job.
Task(Box<TaskRequest>)
A task attempt.
ForkServer(ForkServerRequest)
The fork server’s preload list (its mode’s request).
Watchers(WatchersRequest)
A watcher host’s code set (its mode’s request).
StartWatcher
Start a wait step in a watcher host.
Fields
task: Box<TaskRequest>What to run.
cancel_grace_ms: u64How long a thread it left running has to end before the host does (decision 337).
moved_in: boolA poke moving here from older code (decision 335): it says task_imported when it
could start, or task_failed, and makes no call until a Self::GoWatcher.
MoveWatcher
Stop a poke between its calls: watcher_moved, unless it ended first.
GoWatcher
Let a poke that moved here make its first call.
CancelWatcher
Cancel a watcher: CancelledError at its next await.
ToWatcher
An answer to one watcher, in a watcher host.
EventStored
The master has what a trigger found: on to the next.
Fork(ForkRequest)
Start a runner process (to the fork server).
ScriptDeclaration(Box<ScriptDeclaration>)
The declaration a RunnerMessage::ScriptDeclaration asked for, checked.
ScriptNotFound
Why the declaration a RunnerMessage::ScriptDeclaration asked for can’t be used:
its script root isn’t on this worker (decision 295), its file or job isn’t there, or
the file has problems; the DAG file’s import error.
Secret
The value of the secret a RunnerMessage::SecretGet asked for.
ApiAnswer
What the API answered a RunnerMessage::ApiCall.
Fields
HandleAdded
The handle of a RunnerMessage::HandleAdd is registered.
HandleRefused
Why the handle of a RunnerMessage::HandleAdd isn’t registered.
SecretFailed
Why the secret a RunnerMessage::SecretGet asked for can’t be read.
Fields
Connection
The values of the connection a RunnerMessage::ConnectionGet asked for, rendered.
ConnectionFailed
Why the connection a RunnerMessage::ConnectionGet asked for can’t be opened.
Trait Implementations§
Source§impl Clone for AgentMessage
impl Clone for AgentMessage
Source§fn clone(&self) -> AgentMessage
fn clone(&self) -> AgentMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentMessage
impl Debug for AgentMessage
Source§impl<'de> Deserialize<'de> for AgentMessage
impl<'de> Deserialize<'de> for AgentMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AgentMessage
Source§impl JsonSchema for AgentMessage
impl JsonSchema for AgentMessage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more