[−][src]Struct boomerang::Reaction
Reaction activation record to push onto the reaction queue.
Fields
name: &'static str
reactor: Box<RefCell<dyn FnMut(&mut S)>>
Reaction closure
index: Index
Inverse priority determined by dependency analysis.
chain_id: u64
Binary encoding of the branches that this reaction has upstream in the dependency graph.
triggers: Vec<(Rc<RefCell<dyn IsPresent>>, Vec<Rc<Trigger<S>>>)>
Vector of tuples per Output that are sensitive to this Reaction. Each output has a list of associated triggers
running: bool
Indicator that this reaction has already started executing.
local_deadline: Option<(Duration, Box<RefCell<dyn FnMut(&mut S) -> bool>>)>
Local deadline relative to the time stamp for invocation of the reaction. Local deadline violation handler.
Methods
impl<S> Reaction<S> where
S: Sched,
[src]
S: Sched,
pub fn new(
name: &'static str,
reactor: Box<RefCell<dyn FnMut(&mut S)>>,
index: Index,
chain_id: u64,
triggers: Vec<(Rc<RefCell<dyn IsPresent>>, Vec<Rc<Trigger<S>>>)>
) -> Self
[src]
name: &'static str,
reactor: Box<RefCell<dyn FnMut(&mut S)>>,
index: Index,
chain_id: u64,
triggers: Vec<(Rc<RefCell<dyn IsPresent>>, Vec<Rc<Trigger<S>>>)>
) -> Self
Trait Implementations
impl<S> Debug for Reaction<S> where
S: Sched,
[src]
S: Sched,
impl<S> Display for Reaction<S> where
S: Sched,
[src]
S: Sched,
impl<S> Eq for Reaction<S> where
S: Sched,
[src]
S: Sched,
impl<S> Ord for Reaction<S> where
S: Sched,
[src]
S: Sched,
fn cmp(&self, other: &Reaction<S>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<S> PartialEq<Reaction<S>> for Reaction<S> where
S: Sched,
[src]
S: Sched,
impl<S> PartialOrd<Reaction<S>> for Reaction<S> where
S: Sched,
[src]
S: Sched,
Auto Trait Implementations
impl<S> !RefUnwindSafe for Reaction<S>
impl<S> !Send for Reaction<S>
impl<S> !Sync for Reaction<S>
impl<S> Unpin for Reaction<S>
impl<S> !UnwindSafe for Reaction<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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,