pub struct TimeTrigger { /* private fields */ }Implementations§
Source§impl TimeTrigger
impl TimeTrigger
pub fn at(at: f64) -> Self
pub fn at_phase(at: f64, phase: ExecutionPhase) -> Self
pub fn with_phase(self, phase: ExecutionPhase) -> Self
Trait Implementations§
Source§impl TriggerCriterion for TimeTrigger
impl TriggerCriterion for TimeTrigger
Source§type Observation = TimeTriggerEvent
type Observation = TimeTriggerEvent
The data that represents what is observed when the criterion is met.
This data is passed to the handler installed for this criterion.
Source§fn install<F>(self, context: &mut Context, on_match: F)
fn install<F>(self, context: &mut Context, on_match: F)
Install the criterion’s monitoring logic in
context.Source§fn emit_with<Ev, F>(self, make_event: F) -> Trigger<Self, Ev, F>
fn emit_with<Ev, F>(self, make_event: F) -> Trigger<Self, Ev, F>
Bind this criterion to a constructor for a concrete user event.
Source§fn emit_default<Ev>(self) -> Trigger<Self, Ev, impl Fn(Self::Observation) -> Ev>
fn emit_default<Ev>(self) -> Trigger<Self, Ev, impl Fn(Self::Observation) -> Ev>
Bind this criterion to a default-valued concrete user event.
Source§fn emit_value<Ev>(
self,
event: Ev,
) -> Trigger<Self, Ev, impl Fn(Self::Observation) -> Ev>where
Ev: IxaEvent,
fn emit_value<Ev>(
self,
event: Ev,
) -> Trigger<Self, Ev, impl Fn(Self::Observation) -> Ev>where
Ev: IxaEvent,
Bind this criterion to a constant concrete user event value.
Auto Trait Implementations§
impl Freeze for TimeTrigger
impl RefUnwindSafe for TimeTrigger
impl Send for TimeTrigger
impl Sync for TimeTrigger
impl Unpin for TimeTrigger
impl UnsafeUnpin for TimeTrigger
impl UnwindSafe for TimeTrigger
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.