pub struct SystemRuntimeEnvironment { /* private fields */ }Expand description
Default runtime environment backed by sysinfo and host OS APIs.
Trait Implementations§
Source§impl Clone for SystemRuntimeEnvironment
impl Clone for SystemRuntimeEnvironment
Source§fn clone(&self) -> SystemRuntimeEnvironment
fn clone(&self) -> SystemRuntimeEnvironment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SystemRuntimeEnvironment
impl Debug for SystemRuntimeEnvironment
Source§impl Default for SystemRuntimeEnvironment
impl Default for SystemRuntimeEnvironment
Source§impl RuntimeEnvironment for SystemRuntimeEnvironment
impl RuntimeEnvironment for SystemRuntimeEnvironment
Source§fn initial_host(&self) -> Result<Host, O11yError>
fn initial_host(&self) -> Result<Host, O11yError>
Collect the initial host snapshot used to build
Wora.Source§fn initial_process_stats(&self) -> Option<ProcessStats>
fn initial_process_stats(&self) -> Option<ProcessStats>
Collect initial process statistics, if available.
Source§fn refresh_host_stats(&self) -> Result<Option<HostStats>, O11yError>
fn refresh_host_stats(&self) -> Result<Option<HostStats>, O11yError>
Refresh host statistics, if available.
Source§fn refresh_process_stats(&self) -> Option<ProcessStats>
fn refresh_process_stats(&self) -> Option<ProcessStats>
Refresh process statistics, if available.
Auto Trait Implementations§
impl Freeze for SystemRuntimeEnvironment
impl RefUnwindSafe for SystemRuntimeEnvironment
impl Send for SystemRuntimeEnvironment
impl Sync for SystemRuntimeEnvironment
impl Unpin for SystemRuntimeEnvironment
impl UnsafeUnpin for SystemRuntimeEnvironment
impl UnwindSafe for SystemRuntimeEnvironment
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