pub trait PalEpoll: Pal {
// Required methods
fn epoll_create1(flags: c_int) -> Result<c_int>;
unsafe fn epoll_ctl(
epfd: c_int,
op: c_int,
fd: c_int,
event: *mut epoll_event,
) -> Result<()>;
unsafe fn epoll_pwait(
epfd: c_int,
events: *mut epoll_event,
maxevents: c_int,
timeout: c_int,
sigmask: *const sigset_t,
) -> Result<usize>;
}Expand description
Platform abstraction for epoll functionality.
Required Methods§
Sourcefn epoll_create1(flags: c_int) -> Result<c_int>
fn epoll_create1(flags: c_int) -> Result<c_int>
Platform implementation of epoll_create1() from sys/epoll.h.
Sourceunsafe fn epoll_ctl(
epfd: c_int,
op: c_int,
fd: c_int,
event: *mut epoll_event,
) -> Result<()>
unsafe fn epoll_ctl( epfd: c_int, op: c_int, fd: c_int, event: *mut epoll_event, ) -> Result<()>
Platform implementation of epoll_ctl() from sys/epoll.h.
Sourceunsafe fn epoll_pwait(
epfd: c_int,
events: *mut epoll_event,
maxevents: c_int,
timeout: c_int,
sigmask: *const sigset_t,
) -> Result<usize>
unsafe fn epoll_pwait( epfd: c_int, events: *mut epoll_event, maxevents: c_int, timeout: c_int, sigmask: *const sigset_t, ) -> Result<usize>
Platform implementation of epoll_pwait() from sys/epoll.h.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".