Skip to main content

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/07/23 13:45:20 by dnettoRaw
8//      ###########      S: 1.0.1-rc.8
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}