1 2 3 4 5 6 7 8 9 10
use bitflags::bitflags; bitflags! { #[derive(Clone, Debug, Copy)] pub struct Flags: u8 { const REMOTE_CLOSED = 0x01; const REMOTE_OPEN = 0x02; const NO_DATA = 0x04; } }