[−][src]Struct popol::Events
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
Auto Trait Implementations
impl<K> RefUnwindSafe for Events<K> where
K: RefUnwindSafe,
K: RefUnwindSafe,
impl<K> Send for Events<K> where
K: Send,
K: Send,
impl<K> Sync for Events<K> where
K: Sync,
K: Sync,
impl<K> Unpin for Events<K> where
K: Unpin,
K: Unpin,
impl<K> UnwindSafe for Events<K> where
K: UnwindSafe,
K: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,