[][src]Struct vmm_sys_util::poll::PollEvents

pub struct PollEvents<'a, T> { /* fields omitted */ }

The list of events returned by PollContext::wait.

Implementations

impl<'a, T: PollToken> PollEvents<'a, T>[src]

pub fn to_owned(&self) -> PollEventsOwned<T>[src]

Creates owned structure from borrowed PollEvents.

Copies the events to an owned structure so the reference to this (and by extension PollContext) can be dropped.

pub fn iter(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T>

Notable traits for PollEventIter<'a, I, T>

impl<'a, I, T> Iterator for PollEventIter<'a, I, T> where
    I: Iterator<Item = &'a epoll_event>,
    T: PollToken
type Item = PollEvent<'a, T>;
[src]

Iterates over each event.

pub fn iter_readable(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T>

Notable traits for PollEventIter<'a, I, T>

impl<'a, I, T> Iterator for PollEventIter<'a, I, T> where
    I: Iterator<Item = &'a epoll_event>,
    T: PollToken
type Item = PollEvent<'a, T>;
[src]

Iterates over each readable event.

pub fn iter_hungup(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T>

Notable traits for PollEventIter<'a, I, T>

impl<'a, I, T> Iterator for PollEventIter<'a, I, T> where
    I: Iterator<Item = &'a epoll_event>,
    T: PollToken
type Item = PollEvent<'a, T>;
[src]

Iterates over each hungup event.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for PollEvents<'a, T>

impl<'a, T> !Send for PollEvents<'a, T>

impl<'a, T> !Sync for PollEvents<'a, T>

impl<'a, T> Unpin for PollEvents<'a, T> where
    T: Unpin

impl<'a, T> !UnwindSafe for PollEvents<'a, T>

Blanket Implementations

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

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

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

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.