Struct crs_bind::rtos::EventHandle[][src]

pub struct EventHandle<O: Owner<Event>>(_);

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

impl<O> Sync for EventHandle<O> where
    O: Sync

impl<O> Unpin for EventHandle<O> where
    O: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.