Browse Source

forgot to remove a comment block oopsie uhoh

master
Isabelle L. 5 years ago
parent
commit
09513e87b9
1 changed files with 0 additions and 19 deletions
  1. +0
    -19
      src/lib.rs

+ 0
- 19
src/lib.rs View File

@@ -135,25 +135,6 @@ impl Packet {
} }
} }


/*/// kinds of packets that can be sent
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[repr(u8)]
pub enum PacketKind {
Message = 0x00,
Agreement = 0xff,
}

impl PacketKind {
/// returns `Option<PacketKind> given valid matching variant
pub fn from_u8(kind: u8) -> Option<PacketKind> {
match kind {
0x00 => Some(PacketKind::Message),
0xff => Some(PacketKind::Agreement),
_ => None,
}
}
}
*/
/// ilmp's error type /// ilmp's error type
#[derive(Error, Debug)] #[derive(Error, Debug)]
pub enum IlmpError { pub enum IlmpError {


Loading…
Cancel
Save