[−][src]Struct boomerang::Trigger
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]
S: Sched,
pub fn new(
reactions: Vec<Rc<Reaction<S>>>,
offset: Option<Duration>,
period: Option<Duration>,
is_physical: bool,
policy: QueuingPolicy
) -> Self
[src]
reactions: Vec<Rc<Reaction<S>>>,
offset: Option<Duration>,
period: Option<Duration>,
is_physical: bool,
policy: QueuingPolicy
) -> Self
Trait Implementations
impl<S: Debug> Debug for Trigger<S> where
S: Sched,
S::Value: Debug,
[src]
S: Sched,
S::Value: Debug,
impl<S: Eq> Eq for Trigger<S> where
S: Sched,
S::Value: Eq,
[src]
S: Sched,
S::Value: Eq,
impl<S: PartialEq> PartialEq<Trigger<S>> for Trigger<S> where
S: Sched,
S::Value: PartialEq,
[src]
S: Sched,
S::Value: PartialEq,
impl<S> StructuralEq for Trigger<S> where
S: Sched,
[src]
S: Sched,
impl<S> StructuralPartialEq for Trigger<S> where
S: Sched,
[src]
S: Sched,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,