pub struct VringEpollHandler<S, V, B> { /* private fields */ }
Expand description

Epoll event handler to manage and process epoll events for registered file descriptor.

The VringEpollHandler structure provides interfaces to:

  • add file descriptors to be monitored by the epoll fd
  • remove registered file descriptors from the epoll fd
  • run the event loop to handle pending events on the epoll fd

Implementations

Send exit event to break the event loop.

Register an event into the epoll fd.

When this event is later triggered, the backend implementation of handle_event will be called.

Unregister an event from the epoll fd.

If the event is triggered after this function has been called, the event will be silently dropped.

Trait Implementations

Extracts the raw file descriptor. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.