pub struct ProcessTableWidget<'a> {
pub data: &'a ProcessesSnapshot,
pub filter_by: Option<&'a str>,
pub theme: &'a Theme,
}Fields§
§data: &'a ProcessesSnapshot§filter_by: Option<&'a str>§theme: &'a ThemeImplementations§
Source§impl<'a> ProcessTableWidget<'a>
impl<'a> ProcessTableWidget<'a>
pub fn get_processes(&'a self, state: &mut ProcessTableState) -> Vec<Process>
pub fn filter_processes( processes: &[Process], filter_by: Option<&str>, ) -> Vec<Process>
pub fn sort_processes(processes: &mut [Process], sort_by: &ProcessesSortBy)
pub fn filter_threads(processes: &mut Vec<Process>, show_threads: bool)
pub fn get_nth_pid( &self, n: usize, state: &mut ProcessTableState, ) -> Option<u32>
Trait Implementations§
Source§impl<'a> StatefulWidget for ProcessTableWidget<'a>
impl<'a> StatefulWidget for ProcessTableWidget<'a>
Source§type State = ProcessTableState
type State = ProcessTableState
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a> Freeze for ProcessTableWidget<'a>
impl<'a> RefUnwindSafe for ProcessTableWidget<'a>
impl<'a> Send for ProcessTableWidget<'a>
impl<'a> Sync for ProcessTableWidget<'a>
impl<'a> Unpin for ProcessTableWidget<'a>
impl<'a> UnsafeUnpin for ProcessTableWidget<'a>
impl<'a> UnwindSafe for ProcessTableWidget<'a>
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> 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