diff --git a/timely/src/scheduling/activate.rs b/timely/src/scheduling/activate.rs index 79b69d24d..e91c87a99 100644 --- a/timely/src/scheduling/activate.rs +++ b/timely/src/scheduling/activate.rs @@ -187,7 +187,7 @@ impl Activations { } /// A thread-safe handle to an `Activations`. -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct SyncActivations { tx: Sender>, thread: Thread, @@ -218,7 +218,7 @@ impl SyncActivations { } /// A capability to activate a specific path. -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct Activator { path: Vec, queue: Rc>, @@ -253,7 +253,7 @@ impl Activator { } /// A thread-safe version of `Activator`. -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct SyncActivator { path: Vec, queue: SyncActivations, @@ -282,7 +282,7 @@ impl ArcWake for SyncActivator { /// The error returned when activation fails across thread boundaries because /// the receiving end has hung up. -#[derive(Debug)] +#[derive(Clone, Copy, Debug)] pub struct SyncActivationError; impl std::fmt::Display for SyncActivationError { @@ -294,7 +294,7 @@ impl std::fmt::Display for SyncActivationError { impl std::error::Error for SyncActivationError {} /// A wrapper that unparks on drop. -#[derive(Debug)] +#[derive(Clone, Debug)] pub struct ActivateOnDrop { wrapped: T, address: Rc>,