Add missing impl for ServiceRequest

This commit is contained in:
Martin Dahl 2021-08-17 13:47:55 +02:00
parent 58e68bc359
commit b47caacaec
1 changed files with 3 additions and 0 deletions

View File

@ -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<T>
where
T: WrappedServiceTypeSupport,
@ -12,6 +13,8 @@ where
service: Weak<Mutex<dyn Service_>>,
}
unsafe impl<T> Send for ServiceRequest<T> where T: WrappedServiceTypeSupport {}
impl<T> ServiceRequest<T>
where
T: 'static + WrappedServiceTypeSupport,