pub struct LogicalAction<T: Sync>(/* private fields */);Expand description
A logical action.
Trait Implementations§
Source§impl<T: Sync> ReactionTrigger<T> for LogicalAction<T>
impl<T: Sync> ReactionTrigger<T> for LogicalAction<T>
Source§fn is_present(&self, now: &EventTag, start: &Instant) -> bool
fn is_present(&self, now: &EventTag, start: &Instant) -> bool
Returns whether the trigger is present, given that
the current logical time is the parameter.
Source§fn get_value(&self, now: &EventTag, start: &Instant) -> Option<T>where
T: Copy,
fn get_value(&self, now: &EventTag, start: &Instant) -> Option<T>where
T: Copy,
Copies the value out, if it is present. Whether a value
is present is not in general the same thing as whether this trigger
Self::is_present. See crate::ReactionCtx::get.
impl<T: Sync> SchedulableAsAction<T> for LogicalAction<T>
Auto Trait Implementations§
impl<T> Freeze for LogicalAction<T>
impl<T> RefUnwindSafe for LogicalAction<T>where
T: RefUnwindSafe,
impl<T> Send for LogicalAction<T>where
T: Send,
impl<T> Sync for LogicalAction<T>
impl<T> Unpin for LogicalAction<T>where
T: Unpin,
impl<T> UnwindSafe for LogicalAction<T>where
T: UnwindSafe,
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