px_native/infrastructure/
not_implemented.rs1use crate::domain::native_solver::{NativeSolver, SolveContext};
2use async_trait::async_trait;
3use px_core::PxCookieBundle;
4use px_errors::AppError;
5
6pub struct NotImplementedNativeSolver;
7
8impl NotImplementedNativeSolver {
9 pub fn new() -> Self {
10 Self
11 }
12}
13
14impl Default for NotImplementedNativeSolver {
15 fn default() -> Self {
16 Self::new()
17 }
18}
19
20#[async_trait]
21impl NativeSolver for NotImplementedNativeSolver {
22 async fn solve(&self, _ctx: &SolveContext) -> Result<PxCookieBundle, AppError> {
23 Err(AppError::NotImplemented(
24 "native sensor generator is reserved for v2 (see ADR-0010)".into(),
25 ))
26 }
27}