diff --git a/CHANGELOG.md b/CHANGELOG.md index c71f93a5..4feca9d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,15 @@ # Changelog +## v0.10.1 (Unreleased) + +- Server: Remove `Sync` and `Unpin` trait bounds from `Service::call()` future + result. + ## v0.10.0 (2024-01-03) - Feature: Retrieve the `FunctionCode` of a `Request`/`Response`. -- Feature: Added `rtu-over-tcp-server` for _RTU over TCP_ server skeleton. +- Feature: Add `rtu-over-tcp-server` for _RTU over TCP_ server skeleton. ### Breaking Changes diff --git a/src/server/service.rs b/src/server/service.rs index d7eb31c3..1f347006 100644 --- a/src/server/service.rs +++ b/src/server/service.rs @@ -1,8 +1,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH // SPDX-License-Identifier: MIT OR Apache-2.0 -use std::future::Future; -use std::ops::Deref; +use std::{future::Future, ops::Deref}; /// A Modbus server service. pub trait Service { @@ -16,7 +15,7 @@ pub trait Service { type Error; /// The future response value. - type Future: Future> + Send + Sync + Unpin; + type Future: Future> + Send; /// Process the request and return the response asynchronously. fn call(&self, req: Self::Request) -> Self::Future;