pub struct PsiResource {
pub present: bool,
pub some: PsiLine,
pub full: PsiLine,
pub has_full: bool,
}Expand description
Pressure stall information for one resource.
Fields§
§present: boolReadable at all. false means the file was missing.
some: PsiLineThe some line.
full: PsiLineThe full line. Left at zero when the file has none.
has_full: boolWhether this resource’s file carried a full line.
True for every resource on current kernels, cpu included. Kept because
it is the file that decides, not us: a future kernel is free to drop a
line, and a meter that assumed one was present would draw a fabricated
zero instead of leaving the value out.
Trait Implementations§
Source§impl Clone for PsiResource
impl Clone for PsiResource
impl Copy for PsiResource
Source§impl Debug for PsiResource
impl Debug for PsiResource
Source§impl Default for PsiResource
impl Default for PsiResource
Source§impl PartialEq for PsiResource
impl PartialEq for PsiResource
impl StructuralPartialEq for PsiResource
Auto Trait Implementations§
impl Freeze for PsiResource
impl RefUnwindSafe for PsiResource
impl Send for PsiResource
impl Sync for PsiResource
impl Unpin for PsiResource
impl UnsafeUnpin for PsiResource
impl UnwindSafe for PsiResource
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,
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