Struct event_listener_strategy::NonBlocking
source · pub struct NonBlocking<'a> { /* private fields */ }
Expand description
A strategy that uses polling to efficiently wait for an event.
Trait Implementations§
source§impl<'a> Clone for NonBlocking<'a>
impl<'a> Clone for NonBlocking<'a>
source§fn clone(&self) -> NonBlocking<'a>
fn clone(&self) -> NonBlocking<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for NonBlocking<'a>
impl<'a> Debug for NonBlocking<'a>
source§impl<'a> Default for NonBlocking<'a>
impl<'a> Default for NonBlocking<'a>
source§fn default() -> NonBlocking<'a>
fn default() -> NonBlocking<'a>
Returns the “default value” for a type. Read more
source§impl<'a> Hash for NonBlocking<'a>
impl<'a> Hash for NonBlocking<'a>
source§impl<'a> Ord for NonBlocking<'a>
impl<'a> Ord for NonBlocking<'a>
source§fn cmp(&self, other: &NonBlocking<'a>) -> Ordering
fn cmp(&self, other: &NonBlocking<'a>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialEq for NonBlocking<'a>
impl<'a> PartialEq for NonBlocking<'a>
source§fn eq(&self, other: &NonBlocking<'a>) -> bool
fn eq(&self, other: &NonBlocking<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for NonBlocking<'a>
impl<'a> PartialOrd for NonBlocking<'a>
source§fn partial_cmp(&self, other: &NonBlocking<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &NonBlocking<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a, 'evl> Strategy<'evl> for NonBlocking<'a>
impl<'a, 'evl> Strategy<'evl> for NonBlocking<'a>
§type Future = EventListener
type Future = EventListener
The future returned by the
Strategy::wait
method.source§fn wait(&mut self, evl: EventListener) -> Self::Future
fn wait(&mut self, evl: EventListener) -> Self::Future
Wait for the event listener to become ready.
impl<'a> Copy for NonBlocking<'a>
impl<'a> Eq for NonBlocking<'a>
impl<'a> StructuralEq for NonBlocking<'a>
impl<'a> StructuralPartialEq for NonBlocking<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NonBlocking<'a>
impl<'a> Send for NonBlocking<'a>
impl<'a> Sync for NonBlocking<'a>
impl<'a> Unpin for NonBlocking<'a>
impl<'a> !UnwindSafe for NonBlocking<'a>
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