Struct parking_lot_core::UnparkResult [−][src]
pub struct UnparkResult { pub unparked_threads: usize, pub have_more_threads: bool, pub be_fair: bool, }
Result of an unpark operation.
Fields
unparked_threads: usize
The number of threads that were unparked.
have_more_threads: bool
Whether there are any threads remaining in the queue. This only returns true if a thread was unparked.
be_fair: bool
This is set to true on average once every 0.5ms for any given key. It should be used to switch to a fair unlocking mechanism for a particular unlock.
Trait Implementations
impl Copy for UnparkResult
[src]
impl Copy for UnparkResult
impl Clone for UnparkResult
[src]
impl Clone for UnparkResult
fn clone(&self) -> UnparkResult
[src]
fn clone(&self) -> UnparkResult
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for UnparkResult
[src]
impl Eq for UnparkResult
impl PartialEq for UnparkResult
[src]
impl PartialEq for UnparkResult
fn eq(&self, other: &UnparkResult) -> bool
[src]
fn eq(&self, other: &UnparkResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnparkResult) -> bool
[src]
fn ne(&self, other: &UnparkResult) -> bool
This method tests for !=
.
impl Debug for UnparkResult
[src]
impl Debug for UnparkResult
Auto Trait Implementations
impl Send for UnparkResult
impl Send for UnparkResult
impl Sync for UnparkResult
impl Sync for UnparkResult