We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605b77c commit c77cd3cCopy full SHA for c77cd3c
futures-util/src/future/future/shared.rs
@@ -29,6 +29,12 @@ struct Notifier {
29
/// A weak reference to a [`Shared`] that can be upgraded much like an `Arc`.
30
pub struct WeakShared<Fut: Future>(Weak<Inner<Fut>>);
31
32
+impl<Fut: Future> Clone for WeakShared<Fut> {
33
+ fn clone(&self) -> Self {
34
+ Self(self.0.clone())
35
+ }
36
+}
37
+
38
// The future itself is polled behind the `Arc`, so it won't be moved
39
// when `Shared` is moved.
40
impl<Fut: Future> Unpin for Shared<Fut> {}
0 commit comments