From 28579b567a0393385ec6171cb152f7fa2e5d20ab Mon Sep 17 00:00:00 2001 From: Naja Melan Date: Thu, 12 Sep 2019 02:55:07 +0200 Subject: [PATCH] Improve WebSocketState interface with Copy, PartialEq, ... --- src/protocol/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index a14c56d..f76c044 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -533,7 +533,7 @@ impl WebSocketContext { } /// The current connection state. -#[derive(Debug)] +#[derive(Debug, PartialEq, Eq, Clone, Copy)] enum WebSocketState { /// The connection is active. Active,