diff --git a/src/services.rs b/src/services.rs index fb9e174..b27aa51 100644 --- a/src/services.rs +++ b/src/services.rs @@ -3,6 +3,7 @@ use super::*; /// Encapsulates a service request. In contrast to having a simply callback from /// Request -> Response types that is called synchronously, the service request /// can be moved around and completed asynchronously. +#[derive(Clone)] pub struct ServiceRequest where T: WrappedServiceTypeSupport, @@ -12,6 +13,8 @@ where service: Weak>, } +unsafe impl Send for ServiceRequest where T: WrappedServiceTypeSupport {} + impl ServiceRequest where T: 'static + WrappedServiceTypeSupport,