pub(crate) struct Parker {
inner: Arc<Inner>,
}Fields§
§inner: Arc<Inner>Implementations§
Source§impl Parker
impl Parker
pub(crate) fn new(driver: Driver) -> Parker
pub(crate) fn unpark(&self) -> Unparker
pub(crate) fn park(&mut self, handle: &Handle)
Sourcepub(crate) fn park_timeout(&mut self, handle: &Handle, duration: Duration)
pub(crate) fn park_timeout(&mut self, handle: &Handle, duration: Duration)
Parks the current thread for up to duration.
This function tries to acquire the driver lock. If it succeeds, it parks using the driver. Otherwise, it fails back to using a condvar, unless the duration is zero, in which case it returns immediately.
pub(crate) fn shutdown(&mut self, handle: &Handle)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parker
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