sleep-parser 0.8.0

Parse Dat protocol SLEEP files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// SLEEP Protocol version.
#[derive(Debug, PartialEq)]
pub enum ProtocolVersion {
  /// The version specified as per the paper released in 2017-09.
  V0,
}

impl ProtocolVersion {
  /// Returns true if the version is `V0`.
  #[inline]
  pub fn is_v0(&self) -> bool {
    *self == ProtocolVersion::V0
  }
}