From c281cd184990eafd62eea57a740ce7397b3fc4d9 Mon Sep 17 00:00:00 2001 From: regenerativep Date: Wed, 27 Oct 2021 20:02:14 -0400 Subject: packeterr cloneable --- src/protocol.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/protocol.rs') diff --git a/src/protocol.rs b/src/protocol.rs index f8873a1..0b3e4c1 100644 --- a/src/protocol.rs +++ b/src/protocol.rs @@ -129,6 +129,7 @@ pub trait RawPacket<'a>: HasPacketId + Sized { pub trait Packet: HasPacketId + HasPacketBody + Sized {} +#[derive(Clone)] pub enum PacketErr { UnknownId(Id), DeserializeFailed(DeserializeErr), @@ -729,4 +730,4 @@ macro_rules! proto_byte_flag { } } } -} \ No newline at end of file +} -- cgit