msrt 0.1.2

Portable MSRT protocol implementation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Packet reliability state.

/// Known reliability state for a packet number.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum PacketState {
    /// The packet is unknown to the tracker.
    Unknown,
    /// The packet has been sent and is waiting for acknowledgement.
    InFlight,
    /// The packet has been acknowledged.
    Acked,
    /// The packet is considered lost by policy.
    Lost,
    /// The packet was intentionally dropped by policy.
    Dropped,
}