rtic/src/node.rs

15 lines
214 B
Rust
Raw Normal View History

2018-04-19 18:38:12 +02:00
use core::cmp::Ordering;
2018-04-20 06:48:59 +02:00
use core::{mem, ptr};
2018-04-19 18:38:12 +02:00
2018-04-29 08:45:31 +02:00
use instant::Instant;
2018-04-19 18:38:12 +02:00
2018-04-29 08:45:31 +02:00
#[doc(hidden)]
2018-04-20 06:48:59 +02:00
pub struct Node<T>
2018-04-20 03:46:04 +02:00
where
2018-04-20 06:48:59 +02:00
T: 'static,
2018-04-20 03:46:04 +02:00
{
2018-05-01 15:29:13 +02:00
#[cfg(feature = "timer-queue")]
pub baseline: Instant,
pub payload: T,
2018-04-19 18:38:12 +02:00
}