Lines Matching refs:EventFd
25 pub struct EventFd { struct
38 impl EventFd { impl
40 pub fn new() -> Result<EventFd> { in new()
49 Ok(EventFd { in new()
136 pub fn try_clone(&self) -> Result<EventFd> { in try_clone() argument
139 .map(|event_handle| EventFd { event_handle }) in try_clone()
143 impl AsRawFd for EventFd { implementation
149 impl AsRawDescriptor for EventFd { implementation
155 impl FromRawFd for EventFd { implementation
157 EventFd { in from_raw_fd()
163 impl IntoRawFd for EventFd { implementation
172 pub struct ScopedEvent(EventFd);
177 Ok(EventFd::new()?.into()) in new()
181 impl From<EventFd> for ScopedEvent {
182 fn from(e: EventFd) -> Self { in from()
187 impl From<ScopedEvent> for EventFd { implementation
200 type Target = EventFd;
202 fn deref(&self) -> &EventFd { in deref() argument
219 EventFd::new().unwrap(); in new()
224 let evt = EventFd::new().unwrap(); in read_write()
231 let evt = EventFd::new().unwrap(); in clone()
240 let evt_clone: EventFd = scoped_evt.try_clone().unwrap(); in scoped_event()
248 let evt: EventFd = scoped_evt.into(); in eventfd_from_scoped_event()
254 let mut evt = EventFd::new().expect("failed to create eventfd"); in timeout()