[][src]Struct popol::Events

pub struct Events<K> { /* fields omitted */ }

Populated by wait with source readiness events.

Implementations

impl<K: Eq + Clone> Events<K>[src]

pub fn new() -> Self[src]

Create a new empty event tracker.

pub fn with_capacity(cap: usize) -> Self[src]

Create an empty event tracker of a certain capacity.

pub fn iter<'a>(&'a self) -> impl Iterator<Item = (&'a K, Event<'a>)> + 'a[src]

Iterate over ready sources and their keys.

pub fn is_empty(&self) -> bool[src]

Check whether the event list is empty.

pub fn len(&self) -> usize[src]

Return the number of readiness events.

Trait Implementations

impl<K: Debug> Debug for Events<K>[src]

Auto Trait Implementations

impl<K> RefUnwindSafe for Events<K> where
    K: RefUnwindSafe

impl<K> Send for Events<K> where
    K: Send

impl<K> Sync for Events<K> where
    K: Sync

impl<K> Unpin for Events<K> where
    K: Unpin

impl<K> UnwindSafe for Events<K> where
    K: UnwindSafe

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.