[][src]Struct boomerang::Event

pub struct Event<S> where
    S: Sched
{ pub time: Instant, pub trigger: Rc<Trigger<S>>, pub value: Rc<RefCell<Option<S::Value>>>, }

Event activation record to push onto the event queue.

Fields

time: Instant

Time of release.

trigger: Rc<Trigger<S>>

Associated trigger.

value: Rc<RefCell<Option<S::Value>>>

Pointer to malloc'd value (or None)

Methods

impl<S> Event<S> where
    S: Sched
[src]

pub fn new(
    time: Instant,
    trigger: Rc<Trigger<S>>,
    value: Option<S::Value>
) -> Self
[src]

Trait Implementations

impl<S: Debug> Debug for Event<S> where
    S: Sched,
    S::Value: Debug
[src]

impl<S> Display for Event<S> where
    S: Sched,
    <S as Sched>::Value: Debug
[src]

impl<S> Eq for Event<S> where
    S: Sched
[src]

impl<S> Ord for Event<S> where
    S: Sched
[src]

impl<S> PartialEq<Event<S>> for Event<S> where
    S: Sched
[src]

impl<S> PartialOrd<Event<S>> for Event<S> where
    S: Sched
[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for Event<S>

impl<S> !Send for Event<S>

impl<S> !Sync for Event<S>

impl<S> Unpin for Event<S>

impl<S> !UnwindSafe for Event<S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.