// SPDX-FileCopyrightText: Copyright (c) 2017-2023 slowtec GmbH <post@slowtec.de>
// SPDX-License-Identifier: MIT OR Apache-2.0
usestd::future::Future;/// A Modbus server service.
pubtraitService{/// Requests handled by the service.
typeRequest;/// Responses given by the service.
typeResponse;/// Errors produced by the service.
typeError;/// The future response value.
typeFuture:Future<Output = Result<Self::Response, Self::Error>>+Send+Sync+ Unpin;/// Process the request and return the response asynchronously.
fncall(&self, req:Self::Request)->Self::Future;}