mirror of
https://github.com/fafhrd91/actix-net
synced 2025-06-27 01:37:42 +02:00
Added Clone impl for Timeout service factory
This commit is contained in:
@ -43,6 +43,18 @@ impl<T> Timeout<T> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> Clone for Timeout<T>
|
||||
where
|
||||
T: Clone,
|
||||
{
|
||||
fn clone(&self) -> Self {
|
||||
Timeout {
|
||||
inner: self.inner.clone(),
|
||||
timeout: self.timeout,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<T, Request> NewService<Request> for Timeout<T>
|
||||
where
|
||||
T: NewService<Request> + Clone,
|
||||
|
Reference in New Issue
Block a user