#[non_exhaustive]pub enum JobOperation {
Hello,
Start {
id: JobId,
command: ExecRequest,
no_stdin: bool,
input_base64: Option<String>,
timeout_ms: Option<u64>,
},
List {
all: bool,
limit: usize,
cursor: Option<JobId>,
},
Inspect {
id: JobId,
},
Read {
id: JobId,
after: u64,
attachment: Option<String>,
},
Attach {
id: JobId,
attachment: String,
read_only: bool,
},
Detach {
id: JobId,
attachment: String,
},
Renew {
id: JobId,
attachment: String,
},
Write {
id: JobId,
attachment: String,
data_base64: String,
},
Resize {
id: JobId,
attachment: String,
rows: u16,
cols: u16,
},
Signal {
id: JobId,
signal: i32,
},
Eof {
id: JobId,
},
}Expand description
Host-only operations. None waits for a process to exit or for output to become available.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hello
Discover support without creating a process.
Start
Admit a launch exactly once for this ID and command fingerprint.
Fields
§
command: ExecRequestExisting guest command contract.
List
List active or all retained jobs.
Fields
Inspect
Inspect one retained job.
Read
Read bounded output, optionally renewing an attachment lease.
Fields
Attach
Acquire one attachment. Reusing the same token is idempotent.
Fields
Detach
Release an attachment without EOF or process termination.
Renew
Keep an attachment alive without consuming output.
Write
Queue input for the current input-owning attachment.
Fields
Resize
Resize the terminal for the input-owning attachment.
Fields
Signal
Send a Linux guest process-group signal.
Eof
Close a pipe after already admitted input; invalid for PTYs.
Trait Implementations§
Source§impl Clone for JobOperation
impl Clone for JobOperation
Source§impl Debug for JobOperation
impl Debug for JobOperation
Source§impl<'de> Deserialize<'de> for JobOperation
impl<'de> Deserialize<'de> for JobOperation
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JobOperation
impl RefUnwindSafe for JobOperation
impl Send for JobOperation
impl Sync for JobOperation
impl Unpin for JobOperation
impl UnsafeUnpin for JobOperation
impl UnwindSafe for JobOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more