pub struct BackendCandidate {
pub name: &'static str,
pub priority: i32,
pub auto_selectable: bool,
pub available: bool,
}Expand description
A cloneable projection of a BackendRegistration for the substrate’s
generic pipeline (SelectionReport<C> requires C: Clone; a registration
holds fn pointers and is not cloneable). Carries exactly what selection
filtering, ranking, and the explain trace need.
Fields§
§name: &'static strRegistered backend name ("kata", "nspawn", …).
priority: i32Auto-selection precedence (higher preferred).
auto_selectable: boolWhether "auto" may pick this backend.
available: boolLive availability probe result at the time the candidate was captured.
Trait Implementations§
Source§impl CapabilitySource for BackendCandidate
Runtime availability + capability truth a backend contributes to the shared
scheduling vocabulary. A node-record publisher aggregates these across every
registered backend so a placement record’s runtime=<name> labels reflect
what is actually available here (no hand-declaration, no drift — #628).
impl CapabilitySource for BackendCandidate
Runtime availability + capability truth a backend contributes to the shared
scheduling vocabulary. A node-record publisher aggregates these across every
registered backend so a placement record’s runtime=<name> labels reflect
what is actually available here (no hand-declaration, no drift — #628).
Source§fn capability_labels(&self) -> Vec<(String, String)>
fn capability_labels(&self) -> Vec<(String, String)>
("runtime", "kata"), ("gpu.arch", "hopper"),
("topology.zone", "us-east-1a").Source§fn capability_resources(&self) -> Vec<Resource>
fn capability_resources(&self) -> Vec<Resource>
Resource("nvidia.com/gpu", "8"),
Resource("memory", "512Gi"). (Live/allocatable is volatile; the node
record combines declared capacity with a liveness report.)Source§impl Clone for BackendCandidate
impl Clone for BackendCandidate
Source§fn clone(&self) -> BackendCandidate
fn clone(&self) -> BackendCandidate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendCandidate
impl Debug for BackendCandidate
Source§impl PartialEq for BackendCandidate
impl PartialEq for BackendCandidate
Source§fn eq(&self, other: &BackendCandidate) -> bool
fn eq(&self, other: &BackendCandidate) -> bool
self and other values to be equal, and is used by ==.impl Eq for BackendCandidate
impl StructuralPartialEq for BackendCandidate
Auto Trait Implementations§
impl Freeze for BackendCandidate
impl RefUnwindSafe for BackendCandidate
impl Send for BackendCandidate
impl Sync for BackendCandidate
impl Unpin for BackendCandidate
impl UnsafeUnpin for BackendCandidate
impl UnwindSafe for BackendCandidate
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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