#[repr(C)]pub struct HeartbeatContext {
pub ws: heartbeat_window_state,
pub window_buffer: *mut heartbeat_record,
pub counter: u64,
pub lock: i32,
pub hwc_callback: Option<extern "C" fn(*const heartbeat_context)>,
pub td: heartbeat_udata,
pub wd: heartbeat_udata,
}Expand description
A heartbeat_context is used for tracking performance/power of recurring jobs.
Fields§
§ws: heartbeat_window_state§window_buffer: *mut heartbeat_record§counter: u64§lock: i32§hwc_callback: Option<extern "C" fn(*const heartbeat_context)>§td: heartbeat_udata§wd: heartbeat_udataAuto Trait Implementations§
impl Freeze for heartbeat_context
impl RefUnwindSafe for heartbeat_context
impl !Send for heartbeat_context
impl !Sync for heartbeat_context
impl Unpin for heartbeat_context
impl UnwindSafe for heartbeat_context
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