derive(Clone) for several pub simple data structs.
[rust-lightning] / lightning / src / util / events.rs
index 21b535408b07e255e29e8b86c6e3fe42d14c9a05..3eeacdc732cb12969f0cddd69aa329745dce5297 100644 (file)
@@ -31,6 +31,7 @@ use std::time::Duration;
 /// Note that while Writeable and Readable are implemented for Event, you probably shouldn't use
 /// them directly as they don't round-trip exactly (for example FundingGenerationReady is never
 /// written as it makes no sense to respond to it after reconnecting to peers).
+#[derive(Clone, Debug)]
 pub enum Event {
        /// Used to indicate that the client should generate a funding transaction with the given
        /// parameters and then call ChannelManager::funding_transaction_generated.