Skip to main content

PalEpoll

Trait PalEpoll 

Source
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§

Source

fn epoll_create1(flags: c_int) -> Result<c_int>

Platform implementation of epoll_create1() from sys/epoll.h.

Source

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.

Source

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".

Implementors§