pub enum ResolvedWorkload {
Path(String),
Bundled(&'static BundledWorkload),
}Expand description
Resolve a workload file path from a bare name. Tries: as-is, with .yaml/.yml extension, then under workloads/. SRD-85 resolution result: a local file path or a bundled catalog entry.
Variants§
Path(String)
Bundled(&'static BundledWorkload)
Auto Trait Implementations§
impl Forget for ResolvedWorkload
impl Freeze for ResolvedWorkload
impl Move for ResolvedWorkload
impl RefUnwindSafe for ResolvedWorkload
impl Send for ResolvedWorkload
impl Sync for ResolvedWorkloadwhere
RawVecInner: Sync,
impl Unpin for ResolvedWorkload
impl UnsafeUnpin for ResolvedWorkloadwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static BundledWorkload: UnsafeUnpin,
impl UnwindSafe for ResolvedWorkload
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> 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