pub struct Event<'a, T> {
pub state: &'a mut T,
pub now: Microseconds<u32>,
pub available: Microseconds<u32>,
}
Expand description
An event containing the current time, available time, and state for a task.
Fields§
§state: &'a mut T
The state of the system running the scheduler.
now: Microseconds<u32>
The current time in microseconds.
available: Microseconds<u32>
The available to run this task time (in microseconds).
Auto Trait Implementations§
impl<'a, T> Freeze for Event<'a, T>
impl<'a, T> RefUnwindSafe for Event<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Event<'a, T>where
T: Send,
impl<'a, T> Sync for Event<'a, T>where
T: Sync,
impl<'a, T> Unpin for Event<'a, T>
impl<'a, T> !UnwindSafe for Event<'a, T>
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