pub struct CgroupView { /* private fields */ }Implementations§
Trait Implementations§
Source§impl ViewBridge for CgroupView
impl ViewBridge for CgroupView
type StateType = CgroupState
Source§fn get_view_name() -> &'static str
fn get_view_name() -> &'static str
Return the name of the view, this function will help StatsView to
query view by name.
Source§fn get_titles(&self) -> ColumnTitles
fn get_titles(&self) -> ColumnTitles
Return the column titles of the view
Source§fn get_rows(
&mut self,
state: &Self::StateType,
offset: Option<usize>,
) -> Vec<(StyledString, String)>
fn get_rows( &mut self, state: &Self::StateType, offset: Option<usize>, ) -> Vec<(StyledString, String)>
The essential function that defines how a StatsView should fill
the data. This function will iterate through the data, apply filter and sorting,
return a Vec of (Stats String Line, Key) tuple. Read more
Auto Trait Implementations§
impl Freeze for CgroupView
impl RefUnwindSafe for CgroupView
impl Send for CgroupView
impl Sync for CgroupView
impl Unpin for CgroupView
impl UnsafeUnpin for CgroupView
impl UnwindSafe for CgroupView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> Erased for T
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