pub struct SelectionRequest {
pub project: String,
pub command: Option<String>,
pub command_priority: CommandPriority,
pub estimated_cores: u32,
pub preferred_workers: Vec<WorkerId>,
pub toolchain: Option<ToolchainInfo>,
pub required_runtime: RequiredRuntime,
pub classification_duration_us: Option<u64>,
pub hook_pid: Option<u32>,
}Expand description
Worker selection request sent from hook to daemon.
Fields§
§project: StringProject identifier (usually directory name or hash).
command: Option<String>Full command being executed (optional, for active build tracking).
command_priority: CommandPriorityPriority hint for this request.
estimated_cores: u32Estimated CPU cores needed for this compilation.
preferred_workers: Vec<WorkerId>Preferred worker IDs (e.g., from project config).
toolchain: Option<ToolchainInfo>Rust toolchain information for the project.
required_runtime: RequiredRuntimeRequired runtime for command execution.
classification_duration_us: Option<u64>Classification decision latency in microseconds (for AGENTS.md compliance). This tracks how long the 5-tier classification took on the hook side.
hook_pid: Option<u32>Process ID of the hook (for active build tracking).
Trait Implementations§
Source§impl Clone for SelectionRequest
impl Clone for SelectionRequest
Source§fn clone(&self) -> SelectionRequest
fn clone(&self) -> SelectionRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectionRequest
impl Debug for SelectionRequest
Source§impl<'de> Deserialize<'de> for SelectionRequest
impl<'de> Deserialize<'de> for SelectionRequest
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 SelectionRequest
impl RefUnwindSafe for SelectionRequest
impl Send for SelectionRequest
impl Sync for SelectionRequest
impl Unpin for SelectionRequest
impl UnsafeUnpin for SelectionRequest
impl UnwindSafe for SelectionRequest
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