Something went wrong. Try again.
[AWIP] Local-first peer-to-peer connectivity and sharing across Android, Linux and Windows, made with Tauri
Something went wrong. Try again.
123456789101112131415161718192021use std::fmt;
#[derive(Clone, Debug, PartialEq)]pub enum FlakyTransportError { SimulatedDrop, SimulatedReorder, SimulatedDuplication, BandwidthExceeded,}
impl fmt::Display for FlakyTransportError { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { match self { Self::SimulatedDrop => write!(f, "simulated drop executed"), Self::SimulatedReorder => write!(f, "simulated reorder executed"), Self::SimulatedDuplication => write!(f, "simulated duplication executed"), Self::BandwidthExceeded => write!(f, "bandwidth limit exceeded"), } }}