pub enum CapacitySource {
OperatingSystem,
Cgroup,
Nvml,
Drm,
Dxgi,
Metal,
User,
Adaptive,
}Expand description
The basis used to obtain a resource’s capacity information.
Variants§
OperatingSystem
Host operating-system telemetry.
Cgroup
A process or container limit.
Nvml
NVIDIA Management Library telemetry.
Drm
Linux DRM/sysfs telemetry.
Dxgi
Windows DXGI telemetry.
Metal
Apple Metal working-set telemetry.
User
Capacity supplied by the user.
Adaptive
Capacity is not observable and planning is adaptive.
Trait Implementations§
Source§impl Clone for CapacitySource
impl Clone for CapacitySource
Source§fn clone(&self) -> CapacitySource
fn clone(&self) -> CapacitySource
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 CapacitySource
Source§impl Debug for CapacitySource
impl Debug for CapacitySource
Source§impl<'de> Deserialize<'de> for CapacitySource
impl<'de> Deserialize<'de> for CapacitySource
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
impl Eq for CapacitySource
Source§impl PartialEq for CapacitySource
impl PartialEq for CapacitySource
Source§impl Serialize for CapacitySource
impl Serialize for CapacitySource
impl StructuralPartialEq for CapacitySource
Auto Trait Implementations§
impl Freeze for CapacitySource
impl RefUnwindSafe for CapacitySource
impl Send for CapacitySource
impl Sync for CapacitySource
impl Unpin for CapacitySource
impl UnsafeUnpin for CapacitySource
impl UnwindSafe for CapacitySource
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