pub struct VringEpollHandler<T: VhostUserBackend> { /* 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§
Source§impl<T: VhostUserBackend> VringEpollHandler<T>
impl<T: VhostUserBackend> VringEpollHandler<T>
Sourcepub fn send_exit_event(&self)
pub fn send_exit_event(&self)
Send exit event
to break the event loop.
Source§impl<T> VringEpollHandler<T>where
T: VhostUserBackend,
impl<T> VringEpollHandler<T>where
T: VhostUserBackend,
Trait Implementations§
Source§impl<T: VhostUserBackend> AsRawFd for VringEpollHandler<T>
impl<T: VhostUserBackend> AsRawFd for VringEpollHandler<T>
Auto Trait Implementations§
impl<T> Freeze for VringEpollHandler<T>where
T: Freeze,
impl<T> RefUnwindSafe for VringEpollHandler<T>where
T: RefUnwindSafe,
<T as VhostUserBackend>::Bitmap: RefUnwindSafe,
<T as VhostUserBackend>::Vring: RefUnwindSafe,
impl<T> Send for VringEpollHandler<T>
impl<T> Sync for VringEpollHandler<T>
impl<T> Unpin for VringEpollHandler<T>
impl<T> UnwindSafe for VringEpollHandler<T>where
T: UnwindSafe,
<T as VhostUserBackend>::Bitmap: UnwindSafe,
<T as VhostUserBackend>::Vring: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more