#[non_exhaustive]pub struct UnparkResult {
pub unparked_threads: usize,
pub requeued_threads: usize,
pub have_more_threads: bool,
}Expand description
Result of an unpark operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unparked_threads: usizeThe number of threads that were unparked.
requeued_threads: usizeThe number of threads that were requeued.
have_more_threads: boolWhether any threads remain parked with the original key after the operation.
This is false if the operation was aborted before the queue was
inspected.
Trait Implementations§
Source§impl Clone for UnparkResult
impl Clone for UnparkResult
impl Copy for UnparkResult
Source§impl Debug for UnparkResult
impl Debug for UnparkResult
Source§impl Default for UnparkResult
impl Default for UnparkResult
impl Eq for UnparkResult
Source§impl PartialEq for UnparkResult
impl PartialEq for UnparkResult
impl StructuralPartialEq for UnparkResult
Auto Trait Implementations§
impl Freeze for UnparkResult
impl RefUnwindSafe for UnparkResult
impl Send for UnparkResult
impl Sync for UnparkResult
impl Unpin for UnparkResult
impl UnsafeUnpin for UnparkResult
impl UnwindSafe for UnparkResult
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