pub struct SessionTriggerAdmin { /* private fields */ }Expand description
Session-scoped read controls for Lashlang trigger registrations.
Implementations§
Source§impl SessionTriggerAdmin
impl SessionTriggerAdmin
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<TriggerEventType>,
) -> Result<Vec<TriggerRegistration>>
pub async fn by_source_type( &self, source_type: impl Into<TriggerEventType>, ) -> Result<Vec<TriggerRegistration>>
Return registrations whose source value has the given host descriptor 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 SessionTriggerAdmin
impl Clone for SessionTriggerAdmin
Source§fn clone(&self) -> SessionTriggerAdmin
fn clone(&self) -> SessionTriggerAdmin
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 SessionTriggerAdmin
impl !UnwindSafe for SessionTriggerAdmin
impl Freeze for SessionTriggerAdmin
impl Send for SessionTriggerAdmin
impl Sync for SessionTriggerAdmin
impl Unpin for SessionTriggerAdmin
impl UnsafeUnpin for SessionTriggerAdmin
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