pub struct SlotHolder {
pub agent: String,
pub since_ms: u64,
pub reason: String,
pub command: String,
pub token: String,
pub pid: Option<u32>,
pub winpid: Option<u32>,
}Expand description
Who holds the build slot right now, read from the lock’s owner file.
Fields§
§agent: StringThe holder’s AGENTMUX_AGENT_ID (else its user name), as the script recorded it.
since_ms: u64When it took the slot, in epoch milliseconds.
reason: StringWhy: the shim’s reason (cargo test), else the command line.
command: StringThe command line it runs, cut to 120 characters: a background subagent’s build holds the slot under its leader’s id, and this says what is really running.
token: StringThe run’s own token: tells this holder’s slot from one a later holder made.
pid: Option<u32>The pid the script saw for itself. A real one on Linux and macOS; on Windows a Git Bash
pid, which no native tool can use (see winpid).
winpid: Option<u32>The script’s Windows process id (Git Bash only): the root of the holder’s process tree.
Implementations§
Source§impl SlotHolder
impl SlotHolder
Sourcepub fn process_id(&self) -> Option<u32>
pub fn process_id(&self) -> Option<u32>
The operating system’s id for the script’s process, the root of the holder’s process tree: the Windows id on Windows (none for a script older than version 9, which did not record it), the pid elsewhere.
Trait Implementations§
Source§impl Clone for SlotHolder
impl Clone for SlotHolder
Source§fn clone(&self) -> SlotHolder
fn clone(&self) -> SlotHolder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more