pub struct PhysicalActionRef<T: Sync>(/* private fields */);Expand description
A reference to a physical action. This thing is cloneable and can be sent to async threads. The contained action reference is unique and protected by a lock. All operations on the action are
Trait Implementations§
Source§impl<T: Clone + Sync> Clone for PhysicalActionRef<T>
impl<T: Clone + Sync> Clone for PhysicalActionRef<T>
Source§fn clone(&self) -> PhysicalActionRef<T>
fn clone(&self) -> PhysicalActionRef<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Sync> ReactionTrigger<T> for PhysicalActionRef<T>
impl<T: Sync> ReactionTrigger<T> for PhysicalActionRef<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 PhysicalActionRef<T>
Auto Trait Implementations§
impl<T> Freeze for PhysicalActionRef<T>
impl<T> RefUnwindSafe for PhysicalActionRef<T>
impl<T> Send for PhysicalActionRef<T>where
T: Send,
impl<T> Sync for PhysicalActionRef<T>where
T: Send,
impl<T> Unpin for PhysicalActionRef<T>
impl<T> UnwindSafe for PhysicalActionRef<T>
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