[][src]Struct mini::aio::poll::EventLoop

pub struct EventLoop { /* fields omitted */ }

Methods

impl EventLoop[src]

pub fn new() -> Result<Self>[src]

pub fn add_raw_fd<F>(&self, fd: RawFd, mode: Mode, callback: F) -> Result<()> where
    F: FnMut(epoll_event) -> Action + 'static, 
[src]

pub fn add_raw_fd_oneshot<F>(
    &self,
    fd: RawFd,
    mode: Mode,
    callback: F
) -> Result<()> where
    F: FnOnce(epoll_event) + 'static, 
[src]

pub fn remove_fd<A: AsRawFd>(&self, as_fd: &A) -> Result<()>[src]

pub fn remove_raw_fd(&self, fd: RawFd) -> Result<()>[src]

pub fn try_add_raw_fd(&self, fd: RawFd, mode: Mode) -> Result<Event>[src]

pub fn try_add_raw_fd_oneshot(&self, fd: RawFd, mode: Mode) -> Result<EventOnce>[src]

pub fn iterate(&self, event_list: &mut [epoll_event]) -> EpollResult[src]

pub fn run(&self) -> Result<()>[src]

pub fn stop(&mut self)[src]

pub fn wakeup()[src]

Trait Implementations

impl Clone for EventLoop[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for EventLoop

impl Unpin for EventLoop

impl !Sync for EventLoop

impl !UnwindSafe for EventLoop

impl !RefUnwindSafe for EventLoop

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]