pub struct PollEvents<'a, T> { /* private fields */ }
Expand description
The list of events returned by PollContext::wait
.
Implementations§
source§impl<'a, T: PollToken> PollEvents<'a, T>
impl<'a, T: PollToken> PollEvents<'a, T>
sourcepub fn to_owned(&self) -> PollEventsOwned<T>
pub fn to_owned(&self) -> PollEventsOwned<T>
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.
sourcepub fn iter(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
pub fn iter(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
Iterates over each event.
sourcepub fn iter_readable(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
pub fn iter_readable(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
Iterates over each readable event.
sourcepub fn iter_hungup(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
pub fn iter_hungup(&self) -> PollEventIter<'_, Iter<'_, epoll_event>, T> ⓘ
Iterates over each hungup event.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for PollEvents<'a, T>
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§
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