pub struct Waiter(/* private fields */);Implementations§
Source§impl Waiter
impl Waiter
Sourcepub async fn wait_async(&self) -> Result<(), WaitError>
pub async fn wait_async(&self) -> Result<(), WaitError>
Waits for the condition to be notified
Sourcepub fn wait_deadline(&self, deadline: Instant) -> Result<(), WaitDeadlineError>
pub fn wait_deadline(&self, deadline: Instant) -> Result<(), WaitDeadlineError>
Waits for the condition to be notified or returns an error when the deadline is reached
Sourcepub fn wait_timeout(&self, timeout: Duration) -> Result<(), WaitTimeoutError>
pub fn wait_timeout(&self, timeout: Duration) -> Result<(), WaitTimeoutError>
Waits for the condition to be notified or returns an error when the timeout is expired
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Waiter
impl RefUnwindSafe for Waiter
impl Send for Waiter
impl Sync for Waiter
impl Unpin for Waiter
impl UnwindSafe for Waiter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)