dis-rs 0.13.0

An implementation of the Distributed Interactive Simulation protocol (IEEE-1278.1) in Rust. This main crate contains PDU implementations and facilities to read/write PDUs from Rust data structures to the wire format and vice versa. It supports versions 6 and 7 of the protocol.
Documentation
#[allow(clippy::struct_excessive_bools)]
#[derive(Debug, PartialEq, Eq, Default)]
pub struct EntityCapabilities {
    pub ammunition_supply: bool,
    pub fuel_supply: bool,
    pub recovery: bool,
    pub repair: bool,
}

impl EntityCapabilities {
    pub fn ammunition_supply(mut self) -> Self {
        self.ammunition_supply = true;
        self
    }

    pub fn fuel_supply(mut self) -> Self {
        self.fuel_supply = true;
        self
    }

    pub fn recovery(mut self) -> Self {
        self.recovery = true;
        self
    }

    pub fn repair(mut self) -> Self {
        self.repair = true;
        self
    }
}