]> git.lizzy.rs Git - mt_net.git/blobdiff - src/lib.rs
Add wrappers around mt_rudp
[mt_net.git] / src / lib.rs
index 77538cd2943b7036e28d6b8868cc67a27c1c8973..8e134c514bb2cc369af5fe531ab3baf79e7bdb40 100644 (file)
@@ -29,8 +29,18 @@ use generate_random::GenerateRandom;
 #[cfg(feature = "serde")]
 use serde::{Deserialize, Serialize};
 
+#[cfg(feature = "conn")]
+mod conn;
+
+#[cfg(feature = "conn")]
+pub use conn::*;
+
 mod to_clt;
 mod to_srv;
 
 pub use to_clt::*;
 pub use to_srv::*;
+
+pub trait PktInfo {
+    fn pkt_info(&self) -> (u8, bool);
+}