#[non_exhaustive]pub enum Reply {
Show 22 variants
Hello {
id: u64,
protocol: u32,
version: String,
},
Accepted {
id: u64,
operation: OperationId,
run: RunName,
position: u32,
},
Status {
id: u64,
status: Box<Status>,
},
Variables {
id: u64,
variables: Vec<InputVariable>,
},
Runs {
id: u64,
runs: Vec<RunRow>,
},
Run {
id: u64,
run: Option<Box<RunRow>>,
},
Shell {
id: u64,
command: ShellCommand,
},
Console {
id: u64,
console: Box<ReachedConsole>,
},
ConsoleClosed {
id: u64,
reason: String,
},
Native {
id: u64,
console: NativeConsole,
},
Endpoints {
id: u64,
endpoints: Vec<ServiceEndpoint>,
},
Usage {
id: u64,
machines: Vec<MachineUsage>,
},
PublicKey {
id: u64,
key: String,
},
Downloads {
id: u64,
downloads: Vec<Download>,
},
DownloadsRemoved {
id: u64,
removed: Vec<DownloadRemoval>,
},
DownloadsAdopted {
id: u64,
adopted: Vec<Download>,
},
AddressBlocks {
id: u64,
blocks: Vec<String>,
},
Operations {
id: u64,
operations: Vec<OperationRow>,
},
Ok {
id: u64,
},
Error {
id: u64,
report: ErrorReport,
},
Busy {
id: u64,
operations: Vec<OperationId>,
},
Event {
cursor: EventCursor,
event: Box<Event>,
},
}Expand description
What the service writes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Hello
To hello.
Accepted
An operation command was accepted: its id, and its place on its run (0: it begins now; 1: it waits for the run’s cancelled operation to end).
Fields
operation: OperationIdThe operation’s id.
Status
To status.
Variables
To variables.
Fields
variables: Vec<InputVariable>The folder’s input variables, by name.
Runs
To list (every recorded run) and expired (those past their lifetime).
Run
To record.
Fields
Shell
To console_command.
Console
To graphical_console.
Fields
console: Box<ReachedConsole>Where the console answers, and how to sign in.
ConsoleClosed
After a graphical_console reached through a tunnel, once the tunnel ended on its own
(its ssh exited): the service closes the connection after it.
Native
To native_console.
Fields
console: NativeConsoleWhat opens the machine in its hypervisor’s app.
Endpoints
To service_endpoints.
Usage
To usage.
PublicKey
To public_key.
Downloads
To downloads.
DownloadsRemoved
To remove_downloads: how each removal went, in the order asked.
DownloadsAdopted
To adopt_downloads: the downloads recorded for those asked, new or not.
AddressBlocks
To address_blocks_in_use: the blocks, in CIDR form.
Operations
To operations.
Ok
Done (subscribe, unsubscribe, cancel, shutdown, shutdown_if_idle).
Error
Refused, or failed.
Fields
report: ErrorReportWhy: its code, message and typed fields, as the runner reports a failure.
Busy
To shutdown_if_idle, refused: the operations queued or running, which the service goes on
with.
Event
A subscription’s frame.