pub enum Request {
Show 21 variants
InitContext {
protocol_version: u32,
repo_path: String,
python_path: Option<String>,
execution_mode: Option<String>,
},
Collect {
context_id: String,
force: bool,
},
Run {
context_id: String,
node_ids: Vec<String>,
workers: Option<u32>,
maxfail: Option<u32>,
},
List {
context_id: String,
keyword: Option<String>,
marker: Option<String>,
},
GetInventory {
context_id: String,
},
GetWorkerStatus {
context_id: String,
},
ConfigureWorkers {
context_id: String,
num_workers: u32,
},
Shutdown {
context_id: Option<String>,
},
Ping,
RunStream {
context_id: String,
node_ids: Vec<String>,
workers: Option<u32>,
maxfail: Option<u32>,
},
GetRunProgress {
context_id: String,
run_id: String,
},
GetFlakinessReport {
context_id: String,
},
GetTestFlakiness {
context_id: String,
node_id: String,
},
ConfigureRerun {
context_id: String,
enabled: bool,
max_reruns: u32,
only_flaky: bool,
delay_ms: u32,
},
GetRerunConfig {
context_id: String,
},
RunWithRerun {
context_id: String,
node_ids: Vec<String>,
workers: Option<u32>,
maxfail: Option<u32>,
},
ConfigureFixtureReuse {
context_id: String,
enabled: bool,
max_age_seconds: f64,
teardown_on_conftest_change: bool,
},
GetFixtureConfig {
context_id: String,
},
GetSessionStatus {
context_id: String,
},
GetShard {
context_id: String,
node_ids: Vec<String>,
shard_index: u32,
total_shards: u32,
strategy: String,
},
GetShardInfo {
context_id: String,
node_ids: Vec<String>,
total_shards: u32,
strategy: String,
},
}Expand description
Re-export commonly used types Commands sent from CLI to daemon.
Variants§
InitContext
Initialize a repository context within the daemon.
Fields
Collect
Collect tests for a repository context.
Fields
Run
Run a set of tests.
Fields
List
List tests matching filters (without running).
Fields
GetInventory
Get detailed inventory with full test metadata.
GetWorkerStatus
Get worker pool status.
ConfigureWorkers
Configure worker pool.
Shutdown
Shutdown the daemon or a specific context.
Fields
Ping
Health check / ping.
RunStream
Start a streaming run (returns run_id, results come via GetRunProgress).
Fields
GetRunProgress
Get progress and results from a streaming run.
GetFlakinessReport
Get flakiness report for all tracked tests.
GetTestFlakiness
Get flakiness info for a specific test.
ConfigureRerun
Configure auto-rerun behavior.
Fields
GetRerunConfig
Get current rerun configuration.
RunWithRerun
Run tests with auto-rerun enabled.
Fields
ConfigureFixtureReuse
Configure session fixture reuse.
Fields
GetFixtureConfig
Get fixture configuration.
GetSessionStatus
Get session status.
GetShard
Get tests for a specific shard.
Fields
GetShardInfo
Get sharding distribution info.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Request, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for Request
impl Serialize for Request
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more