pub struct CounterSet {
pub counters: BTreeMap<String, Counter>,
pub name: String,
}
Expand description
CounterSet defines a named set of counters that are available to be used by devices defined in the ResourceSlice.
The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.
Fields§
§counters: BTreeMap<String, Counter>
Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label.
To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix.
The maximum number of counters is 32.
name: String
CounterSet is the name of the set from which the counters defined will be consumed.
Trait Implementations§
Source§impl Clone for CounterSet
impl Clone for CounterSet
Source§fn clone(&self) -> CounterSet
fn clone(&self) -> CounterSet
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CounterSet
impl Debug for CounterSet
Source§impl DeepMerge for CounterSet
impl DeepMerge for CounterSet
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.