pub type otLinkMetricsReportCallback = Option<unsafe extern "C" fn(aSource: *const otIp6Address, aMetricsValues: *const otLinkMetricsValues, aStatus: otLinkMetricsStatus, aContext: *mut c_void)>;
Expand description
Pointer is called when a Link Metrics report is received.
@param[in] aSource A pointer to the source address. @param[in] aMetricsValues A pointer to the Link Metrics values (the query result). @param[in] aStatus The status code in the report (only useful when @p aMetricsValues is NULL). @param[in] aContext A pointer to application-specific context.
Aliased Type§
enum otLinkMetricsReportCallback {
None,
Some(unsafe extern "C" fn(_: *const otIp6Address, _: *const otLinkMetricsValues, _: u32, _: *mut c_void)),
}
Variants§
None
No value.
Some(unsafe extern "C" fn(_: *const otIp6Address, _: *const otLinkMetricsValues, _: u32, _: *mut c_void))
Some value of type T
.