#[non_exhaustive]pub enum SpawnBackend {
Native,
Wasm {
module: PathBuf,
},
Container {
image: String,
},
Tee {
enclave: EnclaveConfig,
},
Remote {
node_id: String,
},
}Expand description
Execution backend for spawning an agent process.
Determines how the agent’s work is executed at runtime. Only Native
is implemented in K0-K2; other variants are defined to crystallize the
API surface (see Symposium decisions D2, D3, C1, C8) and will return
KernelError::BackendNotAvailable until their respective K-phases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Native
Tokio task with agent_loop (K0-K2, default).
Wasm
WASM sandbox via Wasmtime (K3).
Container
Docker/Podman container (K4).
Tee
Trusted Execution Environment – SGX, TrustZone, SEV (K6+).
Fields
§
enclave: EnclaveConfigEnclave configuration.
Remote
Delegate to a remote node in the cluster (K6).
Trait Implementations§
Source§impl Clone for SpawnBackend
impl Clone for SpawnBackend
Source§fn clone(&self) -> SpawnBackend
fn clone(&self) -> SpawnBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpawnBackend
impl Debug for SpawnBackend
Source§impl<'de> Deserialize<'de> for SpawnBackend
impl<'de> Deserialize<'de> for SpawnBackend
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpawnBackend
impl RefUnwindSafe for SpawnBackend
impl Send for SpawnBackend
impl Sync for SpawnBackend
impl Unpin for SpawnBackend
impl UnsafeUnpin for SpawnBackend
impl UnwindSafe for SpawnBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more