1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/// Network Channel Reliability /// /// <https://discordapp.com/developers/docs/game-sdk/networking> #[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)] pub enum Reliability { /// All data will be received Reliable, /// Some data will be lost Unreliable, } #[doc(hidden)] impl Into<bool> for Reliability { fn into(self) -> bool { match self { Reliability::Reliable => true, Reliability::Unreliable => false, } } }