pub enum SemaphoreState {
Cleared,
Signaled,
}
Variants§
Trait Implementations§
source§impl Clone for SemaphoreState
impl Clone for SemaphoreState
source§fn clone(&self) -> SemaphoreState
fn clone(&self) -> SemaphoreState
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 Debug for SemaphoreState
impl Debug for SemaphoreState
source§impl Display for SemaphoreState
impl Display for SemaphoreState
source§impl Hash for SemaphoreState
impl Hash for SemaphoreState
source§impl Ord for SemaphoreState
impl Ord for SemaphoreState
source§fn cmp(&self, other: &SemaphoreState) -> Ordering
fn cmp(&self, other: &SemaphoreState) -> 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 PartialEq for SemaphoreState
impl PartialEq for SemaphoreState
source§fn eq(&self, other: &SemaphoreState) -> bool
fn eq(&self, other: &SemaphoreState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SemaphoreState
impl PartialOrd for SemaphoreState
source§fn partial_cmp(&self, other: &SemaphoreState) -> Option<Ordering>
fn partial_cmp(&self, other: &SemaphoreState) -> 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 moreimpl Copy for SemaphoreState
impl Eq for SemaphoreState
impl StructuralPartialEq for SemaphoreState
Auto Trait Implementations§
impl Freeze for SemaphoreState
impl RefUnwindSafe for SemaphoreState
impl Send for SemaphoreState
impl Sync for SemaphoreState
impl Unpin for SemaphoreState
impl UnwindSafe for SemaphoreState
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