pub struct ViewState {Show 15 fields
pub time_elapsed: Duration,
pub lowest_time_elapsed: Duration,
pub timestamp: SystemTime,
pub model: Rc<RefCell<Model>>,
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 viewrc: ViewRc,
pub viewrc_error: Option<String>,
pub event_controllers: Rc<RefCell<HashMap<Event, Controllers>>>,
pub cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>,
}Fields§
§time_elapsed: Duration§lowest_time_elapsed: DurationKeep 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§model: Rc<RefCell<Model>>§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§viewrc: ViewRc§viewrc_error: Option<String>§event_controllers: Rc<RefCell<HashMap<Event, Controllers>>>§cmd_controllers: Rc<RefCell<HashMap<&'static str, Controllers>>>Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ViewState
impl !Send for ViewState
impl !Sync for ViewState
impl !UnwindSafe for ViewState
impl Freeze for ViewState
impl Unpin for ViewState
impl UnsafeUnpin 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
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