Lines Matching refs:Interest
18 pub struct Interest(NonZeroU8); struct
25 impl Interest { implementation
27 pub const READABLE: Interest = Interest(unsafe { NonZeroU8::new_unchecked(READABLE) });
29 pub const WRITABLE: Interest = Interest(unsafe { NonZeroU8::new_unchecked(WRITABLE) });
32 pub const fn add(self, other: Interest) -> Interest { in add() argument
33 Interest(unsafe { NonZeroU8::new_unchecked(self.0.get() | other.0.get()) }) in add()
64 impl ops::BitOr for Interest { implementation
87 use crate::Interest; in ut_interest_to_io_event()
90 let interest = Interest { in ut_interest_to_io_event()
96 let interest = Interest::READABLE; in ut_interest_to_io_event()
103 let interest = Interest::WRITABLE; in ut_interest_to_io_event()
107 let interest = Interest::READABLE | Interest::WRITABLE; in ut_interest_to_io_event()