Lines Matching refs:Event
21 pub struct Event(pub EventFd); struct
22 impl Event { impl
23 pub fn new() -> Result<Event> { in new()
24 EventFd::new().map(Event) in new()
39 pub fn try_clone(&self) -> Result<Event> { in try_clone() argument
40 self.0.try_clone().map(Event) in try_clone()
44 impl AsRawDescriptor for Event { implementation
50 impl FromRawDescriptor for Event { implementation
52 Event(EventFd::from_raw_fd(descriptor)) in from_raw_descriptor()
56 impl IntoRawDescriptor for Event { implementation
64 pub struct ScopedEvent(Event);
68 Ok(Event::new()?.into()) in new()
72 impl From<Event> for ScopedEvent {
73 fn from(e: Event) -> Self { in from()
78 impl From<ScopedEvent> for Event { implementation
87 type Target = Event;
89 fn deref(&self) -> &Event { in deref() argument