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
|
||||
/// 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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue