Struct below_view::ViewState
source · pub struct ViewState {
pub time_elapsed: Duration,
pub lowest_time_elapsed: Duration,
pub timestamp: SystemTime,
pub system: Rc<RefCell<SystemModel>>,
pub cgroup: Rc<RefCell<CgroupModel>>,
pub process: Rc<RefCell<ProcessModel>>,
pub network: Rc<RefCell<NetworkModel>>,
pub main_view_state: MainViewState,
pub main_view_screens: HashMap<String, ScreenId>,
pub mode: ViewMode,
pub event_controllers: Rc<RefCell<HashMap<Event, Controllers>>>,
pub cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>,
}
Fields§
§time_elapsed: Duration
§lowest_time_elapsed: Duration
Keep track of the lowest seen time_elapsed
so that view can highlight abnormal
elapsed times. Below will never go faster than the requested interval rate but
can certainly go higher (b/c of a loaded system or other delays).
timestamp: SystemTime
§system: Rc<RefCell<SystemModel>>
§cgroup: Rc<RefCell<CgroupModel>>
§process: Rc<RefCell<ProcessModel>>
§network: Rc<RefCell<NetworkModel>>
§main_view_state: MainViewState
§main_view_screens: HashMap<String, ScreenId>
§mode: ViewMode
§event_controllers: Rc<RefCell<HashMap<Event, Controllers>>>
§cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>
Implementations§
Auto Trait Implementations§
impl Freeze for ViewState
impl !RefUnwindSafe for ViewState
impl !Send for ViewState
impl !Sync for ViewState
impl Unpin for ViewState
impl !UnwindSafe for ViewState
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