pub enum ChallengeExecutionSpec {
SeparatedEvaluator(SeparatedEvaluatorExecutionSpec),
PipedStdio(PipedStdioExecutionSpec),
CoexecutedBenchmark(CoexecutedBenchmarkExecutionSpec),
}Expand description
Challenge-owned execution topology and run manifest locations for zip_project.
Variants§
SeparatedEvaluator(SeparatedEvaluatorExecutionSpec)
PipedStdio(PipedStdioExecutionSpec)
CoexecutedBenchmark(CoexecutedBenchmarkExecutionSpec)
Implementations§
Source§impl ChallengeExecutionSpec
impl ChallengeExecutionSpec
Sourcepub fn mode(&self) -> ChallengeExecutionMode
pub fn mode(&self) -> ChallengeExecutionMode
Return the current execution topology mode.
Sourcepub fn piped_stdio(&self) -> Option<&PipedStdioExecutionSpec>
pub fn piped_stdio(&self) -> Option<&PipedStdioExecutionSpec>
Borrow the current piped-stdio execution contract.
Sourcepub fn coexecuted_benchmark(&self) -> Option<&CoexecutedBenchmarkExecutionSpec>
pub fn coexecuted_benchmark(&self) -> Option<&CoexecutedBenchmarkExecutionSpec>
Borrow the current coexecuted-evaluator contract.
Sourcepub fn trusted_evaluator(&self) -> &EvaluatorSpec
pub fn trusted_evaluator(&self) -> &EvaluatorSpec
Borrow the trusted evaluator command contract for the current topology.
Sourcepub fn validation_runs(&self) -> Option<&BundleRelativePath>
pub fn validation_runs(&self) -> Option<&BundleRelativePath>
Borrow public validation run locator if declared.
Sourcepub fn validation_setup(&self) -> Option<&ChallengeSetupSpec>
pub fn validation_setup(&self) -> Option<&ChallengeSetupSpec>
Borrow public validation setup contract if declared.
Sourcepub fn official_runs(&self) -> Option<&BundleRelativePath>
pub fn official_runs(&self) -> Option<&BundleRelativePath>
Borrow official benchmark run locator if declared.
Sourcepub fn official_evaluation_setup(&self) -> Option<&ChallengeSetupSpec>
pub fn official_evaluation_setup(&self) -> Option<&ChallengeSetupSpec>
Borrow official benchmark setup contract if declared.
Sourcepub fn has_official_evaluation_setup(&self) -> bool
pub fn has_official_evaluation_setup(&self) -> bool
Return whether the official evaluator declares setup-generated official inputs.
Trait Implementations§
Source§impl Clone for ChallengeExecutionSpec
impl Clone for ChallengeExecutionSpec
Source§fn clone(&self) -> ChallengeExecutionSpec
fn clone(&self) -> ChallengeExecutionSpec
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 ChallengeExecutionSpec
impl Debug for ChallengeExecutionSpec
Source§impl<'de> Deserialize<'de> for ChallengeExecutionSpec
impl<'de> Deserialize<'de> for ChallengeExecutionSpec
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
Source§impl From<ChallengeExecutionSpec> for PublicChallengeExecutionSpec
impl From<ChallengeExecutionSpec> for PublicChallengeExecutionSpec
Source§fn from(execution: ChallengeExecutionSpec) -> Self
fn from(execution: ChallengeExecutionSpec) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for ChallengeExecutionSpec
impl JsonSchema for ChallengeExecutionSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ChallengeExecutionSpec
impl RefUnwindSafe for ChallengeExecutionSpec
impl Send for ChallengeExecutionSpec
impl Sync for ChallengeExecutionSpec
impl Unpin for ChallengeExecutionSpec
impl UnsafeUnpin for ChallengeExecutionSpec
impl UnwindSafe for ChallengeExecutionSpec
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
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>
Converts
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>
Converts
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