Struct hooks::RuntimeInfo
source · pub struct RuntimeInfo {
pub diagnostics_receiver: Arc<Mutex<Option<Receiver<ComponentDiagnostics>>>>,
pub start_time: BootInstant,
pub start_time_monotonic: MonotonicInstant,
}
Expand description
Information about a component’s runtime provided to Started
.
Fields§
§diagnostics_receiver: Arc<Mutex<Option<Receiver<ComponentDiagnostics>>>>
§start_time: BootInstant
§start_time_monotonic: MonotonicInstant
Implementations§
source§impl RuntimeInfo
impl RuntimeInfo
pub fn new( timestamp: BootInstant, timestamp_monotonic: MonotonicInstant, diagnostics_receiver: Receiver<ComponentDiagnostics>, ) -> Self
Trait Implementations§
source§impl Clone for RuntimeInfo
impl Clone for RuntimeInfo
source§fn clone(&self) -> RuntimeInfo
fn clone(&self) -> RuntimeInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RuntimeInfo
impl !RefUnwindSafe for RuntimeInfo
impl Send for RuntimeInfo
impl Sync for RuntimeInfo
impl Unpin for RuntimeInfo
impl !UnwindSafe for RuntimeInfo
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)