pub struct TopologyConstraintsJson {
pub min_numa_nodes: u32,
pub max_numa_nodes: Option<u32>,
pub min_llcs: u32,
pub max_llcs: Option<u32>,
pub requires_smt: bool,
pub min_cpus: u32,
pub max_cpus: Option<u32>,
}Expand description
JSON-friendly mirror of TopologyConstraints — the host-side
Option<u32> fields serialize as null (default serde behavior;
no skip_serializing_if) rather than the Some(N)/None-tagged
shapes serde uses for Option inside larger struct graphs.
Field semantics match TopologyConstraints verbatim; see that
type for per-field documentation.
Fields§
§min_numa_nodes: u32§max_numa_nodes: Option<u32>§min_llcs: u32§max_llcs: Option<u32>§requires_smt: bool§min_cpus: u32§max_cpus: Option<u32>Trait Implementations§
Source§impl Clone for TopologyConstraintsJson
impl Clone for TopologyConstraintsJson
Source§fn clone(&self) -> TopologyConstraintsJson
fn clone(&self) -> TopologyConstraintsJson
Returns a duplicate of the value. Read more
1.0.0 · 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 TopologyConstraintsJson
impl Debug for TopologyConstraintsJson
Source§impl<'de> Deserialize<'de> for TopologyConstraintsJson
impl<'de> Deserialize<'de> for TopologyConstraintsJson
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<TopologyConstraintsJson> for TopologyConstraints
Infallible shape conversion — every field maps 1:1 to
TopologyConstraints, so the verifier sweep dispatch can reuse
the same accepts / accepts_no_perf_mode filters that gauntlet
dispatch uses.
impl From<TopologyConstraintsJson> for TopologyConstraints
Infallible shape conversion — every field maps 1:1 to
TopologyConstraints, so the verifier sweep dispatch can reuse
the same accepts / accepts_no_perf_mode filters that gauntlet
dispatch uses.
Source§fn from(j: TopologyConstraintsJson) -> Self
fn from(j: TopologyConstraintsJson) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TopologyConstraintsJson
impl PartialEq for TopologyConstraintsJson
Source§impl Serialize for TopologyConstraintsJson
impl Serialize for TopologyConstraintsJson
impl Copy for TopologyConstraintsJson
impl Eq for TopologyConstraintsJson
impl StructuralPartialEq for TopologyConstraintsJson
Auto Trait Implementations§
impl Freeze for TopologyConstraintsJson
impl RefUnwindSafe for TopologyConstraintsJson
impl Send for TopologyConstraintsJson
impl Sync for TopologyConstraintsJson
impl Unpin for TopologyConstraintsJson
impl UnwindSafe for TopologyConstraintsJson
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<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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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>
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