pub struct ReferenceScheduler;Expand description
Deterministic, non-adaptive scheduler supplied for OSS conformance.
Implementations§
Source§impl ReferenceScheduler
impl ReferenceScheduler
Sourcepub fn schedule(
&self,
envelope: &TaskEnvelopeV1,
eligible: &[CapabilityManifestV1],
catalogue: &TechnicalCatalogue,
policy: &PolicyConstraints,
) -> OclaResult<SchedulerDecision>
pub fn schedule( &self, envelope: &TaskEnvelopeV1, eligible: &[CapabilityManifestV1], catalogue: &TechnicalCatalogue, policy: &PolicyConstraints, ) -> OclaResult<SchedulerDecision>
Produce a recommendation, including a fallback, from public inputs.
Sourcepub fn recommend(
&self,
envelope: &TaskEnvelopeV1,
eligible: &[CapabilityManifestV1],
catalogue: &TechnicalCatalogue,
policy: &PolicyConstraints,
) -> OclaResult<SchedulerDecision>
pub fn recommend( &self, envelope: &TaskEnvelopeV1, eligible: &[CapabilityManifestV1], catalogue: &TechnicalCatalogue, policy: &PolicyConstraints, ) -> OclaResult<SchedulerDecision>
Alias suitable for callers that use recommendation terminology.
Sourcepub fn fallback_plan(
&self,
envelope: &TaskEnvelopeV1,
) -> OclaResult<ExecutionPlanV1>
pub fn fallback_plan( &self, envelope: &TaskEnvelopeV1, ) -> OclaResult<ExecutionPlanV1>
Build the deterministic fallback plan used when no candidate survives.
Trait Implementations§
Source§impl Clone for ReferenceScheduler
impl Clone for ReferenceScheduler
Source§fn clone(&self) -> ReferenceScheduler
fn clone(&self) -> ReferenceScheduler
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 moreimpl Copy for ReferenceScheduler
Source§impl Debug for ReferenceScheduler
impl Debug for ReferenceScheduler
Source§impl Default for ReferenceScheduler
impl Default for ReferenceScheduler
Source§fn default() -> ReferenceScheduler
fn default() -> ReferenceScheduler
Returns the “default value” for a type. Read more
impl Eq for ReferenceScheduler
Source§impl PartialEq for ReferenceScheduler
impl PartialEq for ReferenceScheduler
Source§impl SchedulerService for ReferenceScheduler
impl SchedulerService for ReferenceScheduler
Source§fn generate_candidates(
&self,
envelope: &TaskEnvelopeV1,
eligible: &[CapabilityManifestV1],
catalogue: &TechnicalCatalogue,
) -> OclaResult<Vec<ExecutionCandidate>>
fn generate_candidates( &self, envelope: &TaskEnvelopeV1, eligible: &[CapabilityManifestV1], catalogue: &TechnicalCatalogue, ) -> OclaResult<Vec<ExecutionCandidate>>
Generate deterministic or enterprise-owned candidates for a task.
Source§fn filter_candidates(
&self,
candidates: Vec<ExecutionCandidate>,
policy: &PolicyConstraints,
) -> Vec<ExecutionCandidate>
fn filter_candidates( &self, candidates: Vec<ExecutionCandidate>, policy: &PolicyConstraints, ) -> Vec<ExecutionCandidate>
Apply hard policy, budget, and security filters before ranking.
Source§fn select_plan(
&self,
filtered: &[ExecutionCandidate],
fallback: &ExecutionCandidate,
) -> SchedulerDecision
fn select_plan( &self, filtered: &[ExecutionCandidate], fallback: &ExecutionCandidate, ) -> SchedulerDecision
Select a plan from already-filtered candidates.
impl StructuralPartialEq for ReferenceScheduler
Auto Trait Implementations§
impl Freeze for ReferenceScheduler
impl RefUnwindSafe for ReferenceScheduler
impl Send for ReferenceScheduler
impl Sync for ReferenceScheduler
impl Unpin for ReferenceScheduler
impl UnsafeUnpin for ReferenceScheduler
impl UnwindSafe for ReferenceScheduler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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