pub trait System1Decider: Send + Sync {
// Required methods
fn decider_id(&self) -> &str;
fn predict<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 System1Request,
) -> Pin<Box<dyn Future<Output = Result<System1Response>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Something that can run one System 1 forward pass.
Hosts attach a local checkpoint, an HTTP server (laya-serve, sys1, Jev),
or a test double. The memory reflex does not care which.
Required Methods§
fn decider_id(&self) -> &str
fn predict<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 System1Request,
) -> Pin<Box<dyn Future<Output = Result<System1Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".