libspa/support/system.rs
1use bitflags::bitflags;
2
3bitflags! {
4 /// Flags used to specify different IO events.
5 #[derive(Debug, PartialEq, Eq, Clone, Copy)]
6 pub struct IoFlags: u32 {
7 /// There is data to read
8 const IN = spa_sys::SPA_IO_IN;
9 /// Writing is possible
10 const OUT = spa_sys::SPA_IO_OUT;
11 /// An error has occurred
12 const ERR = spa_sys::SPA_IO_ERR;
13 /// IO channel has hung up
14 const HUP = spa_sys::SPA_IO_HUP;
15 }
16}