pub struct TriggersControl { /* private fields */ }Expand description
Session-scoped read controls for Lashlang trigger registrations.
Implementations§
Source§impl TriggersControl
impl TriggersControl
Sourcepub async fn list_all(&self) -> Result<Vec<TriggerRegistration>>
pub async fn list_all(&self) -> Result<Vec<TriggerRegistration>>
Return every trigger registration in the session.
This is an admin/introspection view. Source owners should prefer
Self::by_source_type so they only inspect registrations for the
concrete source type they own.
Sourcepub async fn by_source_type(
&self,
source_type: impl Into<TriggerSourceType>,
) -> Result<Vec<TriggerRegistration>>
pub async fn by_source_type( &self, source_type: impl Into<TriggerSourceType>, ) -> Result<Vec<TriggerRegistration>>
Return registrations whose source value has the given host value type.
This is the source-owner API: a timer, UI, webhook, or other host-owned source uses it to inspect registrations for keys it may schedule and emit.
Trait Implementations§
Source§impl Clone for TriggersControl
impl Clone for TriggersControl
Source§fn clone(&self) -> TriggersControl
fn clone(&self) -> TriggersControl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TriggersControl
impl !UnwindSafe for TriggersControl
impl Freeze for TriggersControl
impl Send for TriggersControl
impl Sync for TriggersControl
impl Unpin for TriggersControl
impl UnsafeUnpin for TriggersControl
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