pub trait MegakernelWorkspaceAdapter {
// Required methods
fn buffer_decl(&self) -> BufferDecl;
fn bootstrap_nodes(&self) -> Vec<Node>;
// Provided methods
fn guard_nodes(&self) -> Vec<Node> { ... }
fn dispatch_nodes(&self) -> Vec<Node> { ... }
}Expand description
Adapter implemented by any domain that wants a GPU-resident megakernel
workspace without baking that domain into vyre-runtime.
Required Methods§
Sourcefn buffer_decl(&self) -> BufferDecl
fn buffer_decl(&self) -> BufferDecl
Buffer declaration inserted after the core megakernel buffers.
Sourcefn bootstrap_nodes(&self) -> Vec<Node>
fn bootstrap_nodes(&self) -> Vec<Node>
IR nodes that initialize resident workspace state.
Provided Methods§
Sourcefn guard_nodes(&self) -> Vec<Node>
fn guard_nodes(&self) -> Vec<Node>
IR nodes that validate resident control-plane state before dispatch.
Sourcefn dispatch_nodes(&self) -> Vec<Node>
fn dispatch_nodes(&self) -> Vec<Node>
IR nodes that run domain-owned phase/control handlers.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".