Enum rsevents::EventState
source · [−]#[repr(u8)]
pub enum EventState {
Set,
Unset,
}
Expand description
A representation of the state of an event, which can either be Set
(i.e. signalled,
ready) or Unset
(i.e. not ready).
Variants
Set
The event is available and call(s) to Awaitable::wait()
will go through without
blocking, i.e. the event is signalled.
Unset
The event is unavailable and calls to Awaitable::wait()
will block until the event
becomes set, i.e. the event is unsignalled.
Trait Implementations
sourceimpl Clone for EventState
impl Clone for EventState
sourcefn clone(&self) -> EventState
fn clone(&self) -> EventState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EventState
impl Debug for EventState
sourceimpl PartialEq<EventState> for EventState
impl PartialEq<EventState> for EventState
sourcefn eq(&self, other: &EventState) -> bool
fn eq(&self, other: &EventState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for EventState
Auto Trait Implementations
impl RefUnwindSafe for EventState
impl Send for EventState
impl Sync for EventState
impl Unpin for EventState
impl UnwindSafe for EventState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more