Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions astrid-sdk/src/interceptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ impl InterceptorBinding {
/// Query the runtime for auto-subscribed interceptor handles.
///
/// Returns an empty vec if this capsule has no auto-subscribed
/// interceptors (i.e. it does not have both `run()` and
/// `[[interceptor]]`). Each entry maps an action name to the IPC
/// interceptors (i.e. it does not have both `run()` and a `[subscribe]`
/// entry with a `handler`). Each entry maps an action name to the IPC
/// topic the kernel routes through `astrid-hook-trigger`.
pub fn bindings() -> Result<Vec<InterceptorBinding>, SysError> {
let handles = wit_ipc::get_interceptor_bindings().map_err(host_err)?;
Expand Down
9 changes: 5 additions & 4 deletions astrid-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,10 +522,11 @@ pub mod elicit;

/// Auto-subscribed interceptor bindings for run-loop capsules.
///
/// When a capsule declares both `run()` and `[[interceptor]]`, the runtime
/// auto-subscribes to each interceptor's topic and delivers events through
/// the IPC channel the run loop already reads from. This module provides
/// helpers to query the subscription mappings and dispatch events by action.
/// When a capsule declares both `run()` and a `[subscribe]` entry with a
/// `handler`, the runtime auto-subscribes to each interceptor's topic and
/// delivers events through the IPC channel the run loop already reads from.
/// This module provides helpers to query the subscription mappings and
/// dispatch events by action.
pub mod interceptors;

/// Request human approval for sensitive actions from within a capsule.
Expand Down
Loading