pub struct Parker {
state: AtomicI8,
}
Fields§
§state: AtomicI8
Implementations§
source§impl Parker
impl Parker
sourcepub unsafe fn new_in_place(parker: *mut Parker)
pub unsafe fn new_in_place(parker: *mut Parker)
Construct the Windows parker. The UNIX parker implementation requires this to happen in-place.
pub unsafe fn park(self: Pin<&Self>)
pub unsafe fn park_timeout(self: Pin<&Self>, timeout: Duration)
pub fn unpark(self: Pin<&Self>)
fn ptr(&self) -> *mut c_void
Auto Trait Implementations§
impl RefUnwindSafe for Parker
impl Send for Parker
impl Sync for Parker
impl Unpin for Parker
impl UnwindSafe for Parker
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