pub struct EventWaitGuard<'a> { /* private fields */ }Expand description
A guard object to enforce that clients call begin_wait before block_until.
Implementations§
Source§impl<'a> EventWaitGuard<'a>
impl<'a> EventWaitGuard<'a>
Sourcepub fn event(&self) -> &'a Arc<InterruptibleEvent>
pub fn event(&self) -> &'a Arc<InterruptibleEvent>
The underlying event associated with this guard.
Sourcepub fn block_until(
self,
new_owner: Option<&Thread>,
deadline: MonotonicInstant,
) -> Result<(), WakeReason>
pub fn block_until( self, new_owner: Option<&Thread>, deadline: MonotonicInstant, ) -> Result<(), WakeReason>
Block the thread until either deadline expires, the event is notified, or the event is
interrupted.
Auto Trait Implementations§
impl<'a> Freeze for EventWaitGuard<'a>
impl<'a> RefUnwindSafe for EventWaitGuard<'a>
impl<'a> Send for EventWaitGuard<'a>
impl<'a> Sync for EventWaitGuard<'a>
impl<'a> Unpin for EventWaitGuard<'a>
impl<'a> UnsafeUnpin for EventWaitGuard<'a>
impl<'a> UnwindSafe for EventWaitGuard<'a>
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more