pub struct NativeResourceControlObservation { /* private fields */ }Expand description
Effective native CPU, memory, PID, and ulimit evidence from HostConfig.
Implementations§
Source§impl NativeResourceControlObservation
impl NativeResourceControlObservation
Returns native CPU shares, preserving zero.
Sourcepub fn cpu_period(&self) -> &ObservationField<u64>
pub fn cpu_period(&self) -> &ObservationField<u64>
Returns native CPU period, preserving zero.
Sourcepub fn cpu_quota(&self) -> &ObservationField<i64>
pub fn cpu_quota(&self) -> &ObservationField<i64>
Returns native CPU quota, preserving zero and negative native sentinels.
Sourcepub fn memory(&self) -> &ObservationField<i64>
pub fn memory(&self) -> &ObservationField<i64>
Returns native memory bytes, preserving zero and negative native sentinels.
Sourcepub fn pids_limit(&self) -> &ObservationField<i64>
pub fn pids_limit(&self) -> &ObservationField<i64>
Returns native PID limit, preserving zero and -1.
Sourcepub fn ulimits(&self) -> &ObservationField<Vec<NativeUlimitObservation>>
pub fn ulimits(&self) -> &ObservationField<Vec<NativeUlimitObservation>>
Returns native ulimits in source order.
Trait Implementations§
Source§impl Clone for NativeResourceControlObservation
impl Clone for NativeResourceControlObservation
Source§fn clone(&self) -> NativeResourceControlObservation
fn clone(&self) -> NativeResourceControlObservation
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 Eq for NativeResourceControlObservation
impl StructuralPartialEq for NativeResourceControlObservation
Auto Trait Implementations§
impl Freeze for NativeResourceControlObservation
impl RefUnwindSafe for NativeResourceControlObservation
impl Send for NativeResourceControlObservation
impl Sync for NativeResourceControlObservation
impl Unpin for NativeResourceControlObservation
impl UnsafeUnpin for NativeResourceControlObservation
impl UnwindSafe for NativeResourceControlObservation
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