pub struct TriggerEntry {
pub name: &'static str,
pub constructor: fn() -> Arc<dyn Trigger>,
}Expand description
Trigger entry emitted by #[trigger]. The package!() shell walks
inventory::iter::<TriggerEntry> to populate get_trigger_metadata,
calling each entry’s constructor and querying the resulting trigger’s
name / poll_interval / cron_expression / allow_concurrent.
(T-0552 — relocated from cloacina so packaged cdylibs can reach it.)
Fields§
§name: &'static str§constructor: fn() -> Arc<dyn Trigger>Trait Implementations§
impl Collect for TriggerEntry
Auto Trait Implementations§
impl Freeze for TriggerEntry
impl RefUnwindSafe for TriggerEntry
impl Send for TriggerEntry
impl Sync for TriggerEntry
impl Unpin for TriggerEntry
impl UnsafeUnpin for TriggerEntry
impl UnwindSafe for TriggerEntry
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