wasm-capability-contract 0.4.0

Generic, domain-agnostic capability pattern: CapabilityEngine/CapabilityRegistry/CapabilityDispatcher trait shapes + component/capability types. Trait definitions only -- see wasm-capability-core for this pattern's own default implementation, extracted from agent-runtime's ADR-001 (agent-runtime#31, ADR-011).
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! [`ComponentLoadResponse`] — result of [`crate::CapabilityEngine::load`].

use crate::ComponentHandle;

/// Response from a successful [`crate::CapabilityEngine::load`] call.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ComponentLoadResponse {
    /// Opaque handle to the now-loaded component instance, to be passed to
    /// [`crate::CapabilityEngine::invoke`].
    pub handle: ComponentHandle,
}