1
0
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:
Nikolay Kim
2019-01-25 14:31:27 -08:00
parent 515bfad830
commit c1c989034d
3 changed files with 18 additions and 4 deletions

View File

@ -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,