diff --git a/src/api/controller.rs b/src/api/controller.rs index 691c672..d2e81b6 100644 --- a/src/api/controller.rs +++ b/src/api/controller.rs @@ -26,7 +26,11 @@ use crate::errors::ControllerResult; /// [`crate::ext::select_buffer`] may provide a useful helper for managing multiple controllers. #[allow(async_fn_in_trait)] #[cfg_attr(feature = "async-trait", async_trait::async_trait)] -pub trait Controller : AsyncSender + AsyncReceiver {} +pub trait Controller : AsyncSender + AsyncReceiver +where + Tx: Sized + Sync + Send, + Rx: Sized + Sync + Send, +{} /// Asynchronous and thread-safe handle to send data over a stream. /// See [`Controller`]'s documentation for details.