1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use bitflags::bitflags;

bitflags! {
    /// Flags used to specify different IO events.
    #[derive(Debug, PartialEq, Eq, Clone, Copy)]
    pub struct IoFlags: u32 {
        /// There is data to read
        const IN = spa_sys::SPA_IO_IN;
        /// Writing is possible
        const OUT = spa_sys::SPA_IO_OUT;
        /// An error has occurred
        const ERR = spa_sys::SPA_IO_ERR;
        /// IO channel has hung up
        const HUP = spa_sys::SPA_IO_HUP;
    }
}