aboutsummaryrefslogtreecommitdiff
path: root/src/protocol.rs
diff options
context:
space:
mode:
authorregenerativep <regeneralp@gmail.com>2021-10-27 20:02:14 -0400
committerregenerativep <regeneralp@gmail.com>2021-10-27 20:02:14 -0400
commitc281cd184990eafd62eea57a740ce7397b3fc4d9 (patch)
tree3f4e3f002c5d227d74c1579495742495d91cfcc4 /src/protocol.rs
parent563d176b597215d9dd5f939a6a15b697d9888935 (diff)
downloadmcproto-rs-c281cd184990eafd62eea57a740ce7397b3fc4d9.tar.gz
mcproto-rs-c281cd184990eafd62eea57a740ce7397b3fc4d9.tar.bz2
mcproto-rs-c281cd184990eafd62eea57a740ce7397b3fc4d9.zip
packeterr cloneable
Diffstat (limited to 'src/protocol.rs')
-rw-r--r--src/protocol.rs3
1 files changed, 2 insertions, 1 deletions
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
+}