Struct Parker
pub struct Parker { pub(in ::sys::sync::thread_parking::futex) state: Atomic<u32> }
Fields
state: Atomic<u32>
Implementations
impl Parker
unsafe fn new_in_place(parker: *mut Parker)Constructs the futex parker. The UNIX parker implementation requires this to happen in-place.
unsafe fn park(self: Pin<&Self>)unsafe fn park_timeout(self: Pin<&Self>, timeout: Duration)fn unpark(self: Pin<&Self>)
Auto Trait Implementations
impl !Freeze for Parker
impl RefUnwindSafe for Parker
impl Send for Parker
impl Sync for Parker
impl Unpin for Parker
impl UnsafeUnpin for Parker
impl UnwindSafe for Parker
Blanket Implementations
impl<T> Any for Parker
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Parker
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Parker
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Parker
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Parker
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Parker
impl<T, U> Into<U> for Parker
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Parker
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Parker
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>