We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3528b3 commit 476ec23Copy full SHA for 476ec23
zephyr/src/timer.rs
@@ -265,8 +265,10 @@ impl Drop for SimpleTimer {
265
/// Note that this handler owns the data, but passes a reference to the handler. This will
266
/// typically be a `SpinMutex` to allow for proper sharing with IRQ context.
267
pub struct Callback<T: Send + Sync> {
268
- call: fn(data: &T),
269
- data: T,
+ /// The callback function.
+ pub call: fn(data: &T),
270
+ /// The data passed into the callback.
271
+ pub data: T,
272
}
273
274
/// A zephyr timer that calls a callback each time the timer expires.
0 commit comments