[][src]Struct boomerang::Trigger

pub struct Trigger<S> where
    S: Sched
{ pub reactions: Vec<Rc<Reaction<S>>>, pub offset: Option<Duration>, pub period: Option<Duration>, pub value: Rc<RefCell<Option<S::Value>>>, pub is_physical: bool, pub scheduled: RefCell<Option<Instant>>, pub policy: QueuingPolicy, }

Reaction activation record to push onto the reaction queue.

Fields

reactions: Vec<Rc<Reaction<S>>>

Reactions sensitive to this trigger.

offset: Option<Duration>

For a logical action, this will be a minimum delay. For physical, it is the minimum interarrival time.

period: Option<Duration>

For an action, this is not used.

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

Pointer to malloc'd value (or None)

is_physical: bool

Indicator that this denotes a physical action (i.e., to be scheduled relative to physical time).

scheduled: RefCell<Option<Instant>>

Tag of the last event that was scheduled for this action.

policy: QueuingPolicy

Indicates the policy for handling events that succeed one another more rapidly than allowable by the specified min. interarrival time. Only applies to physical actions.

Methods

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

pub fn new(
    reactions: Vec<Rc<Reaction<S>>>,
    offset: Option<Duration>,
    period: Option<Duration>,
    is_physical: bool,
    policy: QueuingPolicy
) -> Self
[src]

Trait Implementations

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

impl<S: Eq> Eq for Trigger<S> where
    S: Sched,
    S::Value: Eq
[src]

impl<S: PartialEq> PartialEq<Trigger<S>> for Trigger<S> where
    S: Sched,
    S::Value: PartialEq
[src]

impl<S> StructuralEq for Trigger<S> where
    S: Sched
[src]

impl<S> StructuralPartialEq for Trigger<S> where
    S: Sched
[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for Trigger<S>

impl<S> !Send for Trigger<S>

impl<S> !Sync for Trigger<S>

impl<S> Unpin for Trigger<S>

impl<S> !UnwindSafe for Trigger<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, 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.