Add missing impl for ServiceRequest
This commit is contained in:
parent
58e68bc359
commit
b47caacaec
|
|
@ -3,6 +3,7 @@ use super::*;
|
||||||
/// Encapsulates a service request. In contrast to having a simply callback from
|
/// Encapsulates a service request. In contrast to having a simply callback from
|
||||||
/// Request -> Response types that is called synchronously, the service request
|
/// Request -> Response types that is called synchronously, the service request
|
||||||
/// can be moved around and completed asynchronously.
|
/// can be moved around and completed asynchronously.
|
||||||
|
#[derive(Clone)]
|
||||||
pub struct ServiceRequest<T>
|
pub struct ServiceRequest<T>
|
||||||
where
|
where
|
||||||
T: WrappedServiceTypeSupport,
|
T: WrappedServiceTypeSupport,
|
||||||
|
|
@ -12,6 +13,8 @@ where
|
||||||
service: Weak<Mutex<dyn Service_>>,
|
service: Weak<Mutex<dyn Service_>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe impl<T> Send for ServiceRequest<T> where T: WrappedServiceTypeSupport {}
|
||||||
|
|
||||||
impl<T> ServiceRequest<T>
|
impl<T> ServiceRequest<T>
|
||||||
where
|
where
|
||||||
T: 'static + WrappedServiceTypeSupport,
|
T: 'static + WrappedServiceTypeSupport,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue