Skip to main content

Module connectors

Module connectors 

Source
Expand description

Connectors for extension hostcalls.

Connectors provide capability-gated access to host resources (HTTP, filesystem, etc.) for extensions. Each connector validates requests against policy before execution.

Hostcall ABI types are re-exported from crate::extensions so protocol serialization stays canonical across runtime and connector boundaries.

Re-exports§

pub use crate::extensions::HostCallError;
pub use crate::extensions::HostCallErrorCode;
pub use crate::extensions::HostCallPayload;
pub use crate::extensions::HostResultPayload;
pub use crate::extensions::HostStreamBackpressure;
pub use crate::extensions::HostStreamChunk;

Modules§

http
HTTP/network connector with policy-gated access.

Traits§

Connector
Trait for connectors that handle hostcalls from extensions.

Functions§

host_result_err
Helper to create an error host result.
host_result_err_with_details
Helper to create an error host result with details.
host_result_ok
Helper to create a successful host result.