pub trait CommandEndpoint: Send + Sync {
// Required method
fn handle_command(&self, request: ApiRequest) -> RuntimeResult<ApiResponse>;
}Expand description
Contract for command endpoint handling.
Required Methods§
Sourcefn handle_command(&self, request: ApiRequest) -> RuntimeResult<ApiResponse>
fn handle_command(&self, request: ApiRequest) -> RuntimeResult<ApiResponse>
Handles one transport-neutral command request.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".