pub struct CgroupState {
pub collapsed_cgroups: Rc<RefCell<HashSet<String>>>,
pub current_selected_cgroup: String,
pub cgroup_to_focus: Option<String>,
pub filter_info: Option<(SingleCgroupModelFieldId, String)>,
pub sort_order: Option<SingleCgroupModelFieldId>,
pub sort_tags: HashMap<String, Vec<ViewItem<SingleCgroupModelFieldId>>>,
pub reverse: bool,
pub model: Rc<RefCell<CgroupModel>>,
pub collapse_all_top_level_cgroup: bool,
}Fields§
§collapsed_cgroups: Rc<RefCell<HashSet<String>>>§current_selected_cgroup: String§cgroup_to_focus: Option<String>§filter_info: Option<(SingleCgroupModelFieldId, String)>§sort_order: Option<SingleCgroupModelFieldId>§reverse: bool§model: Rc<RefCell<CgroupModel>>§collapse_all_top_level_cgroup: boolImplementations§
Source§impl CgroupState
impl CgroupState
pub fn handle_state_for_entering_focus(&mut self, cgroup: String)
pub fn collapse_selected_cgroup_children(&mut self)
Trait Implementations§
Source§impl Default for CgroupState
impl Default for CgroupState
Source§fn default() -> CgroupState
fn default() -> CgroupState
Returns the “default value” for a type. Read more
Source§impl StateCommon for CgroupState
impl StateCommon for CgroupState
type ModelType = CgroupModel
type TagType = SingleCgroupModelFieldId
type KeyType = String
Source§fn get_filter_info(&self) -> &Option<(Self::TagType, String)>
fn get_filter_info(&self) -> &Option<(Self::TagType, String)>
Expose filter data for StatsView to set fields in filter popup
Source§fn is_filter_supported_from_tab_idx(&self, _tab: &str, idx: usize) -> bool
fn is_filter_supported_from_tab_idx(&self, _tab: &str, idx: usize) -> bool
Returns true iff filtering is supported for column
Source§fn get_tag_from_tab_idx(&self, tab: &str, idx: usize) -> Self::TagType
fn get_tag_from_tab_idx(&self, tab: &str, idx: usize) -> Self::TagType
Gets the FieldId associated with given tab and column index
Source§fn set_filter_from_tab_idx(
&mut self,
tab: &str,
idx: usize,
filter: Option<String>,
) -> bool
fn set_filter_from_tab_idx( &mut self, tab: &str, idx: usize, filter: Option<String>, ) -> bool
Set the filter (current column and filter string)
Return true on success, false on failure
Source§fn set_sort_tag(
&mut self,
sort_order: Self::TagType,
reverse: &mut bool,
) -> bool
fn set_sort_tag( &mut self, sort_order: Self::TagType, reverse: &mut bool, ) -> bool
Set the sorting tag to common state
Return true on success, false if current tab doest support sorting.
fn set_sort_tag_from_tab_idx( &mut self, tab: &str, idx: usize, reverse: &mut bool, ) -> bool
fn set_sort_string(&mut self, selection: &str, reverse: &mut bool) -> bool
fn get_model(&self) -> Ref<'_, Self::ModelType>
fn get_model_mut(&self) -> RefMut<'_, Self::ModelType>
fn new(model: Rc<RefCell<Self::ModelType>>) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CgroupState
impl !Send for CgroupState
impl !Sync for CgroupState
impl !UnwindSafe for CgroupState
impl Freeze for CgroupState
impl Unpin for CgroupState
impl UnsafeUnpin for CgroupState
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