appcore_api/command_endpoint.rs
1// =============================================================================
2// #######
3// ### ### F: command_endpoint.rs
4// ## ## ## ## P: AppCore-Runtime
5// ## ##
6// C: 2026/05/31 13:38:42 by dnettoRaw
7// ## ## ## ## U: 2026/06/04 11:51:27 by dnettoRaw
8// ########### S: 0.6.0
9// =============================================================================
10
11//! Command endpoint contract.
12
13use appcore_core::RuntimeResult;
14
15use crate::api::{ApiRequest, ApiResponse};
16
17/// Contract for command endpoint handling.
18pub trait CommandEndpoint: Send + Sync {
19 /// Handles one transport-neutral command request.
20 fn handle_command(&self, request: ApiRequest) -> RuntimeResult<ApiResponse>;
21}