Struct crs_bind::rtos::EventHandle [−][src]
Represents a handle into the listing of the current task in an Event.
When this handle is dropped, that task is removed from the event’s set.
Implementations
impl<O: Owner<Event>> EventHandle<O>[src]
pub fn is_done(&self) -> bool[src]
Returns true if the event handle is orphaned, i.e. the parent event
object no longer exists.
pub fn with_owner<U>(&self, f: impl FnOnce(&O) -> U) -> Option<U>[src]
Calls a given function on the underlying owner, if it exists.
pub fn clear(&mut self)[src]
Nullifies the handle. This has the same effect as dropping it or destroying the parent event object.
Auto Trait Implementations
impl<O> Send for EventHandle<O> where
O: Send,
O: Send,
impl<O> Sync for EventHandle<O> where
O: Sync,
O: Sync,
impl<O> Unpin for EventHandle<O> where
O: Unpin,
O: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,