[][src]Struct sunrise_kernel::event::ReadableEvent

pub struct ReadableEvent {
    parent: Arc<Event>,
}

The readable part of an event. The user shall use this end to verify if the event is signaled, and wait for the signaling through wait_synchronization. The user can also use this handle to clear the signaled state through ReadableEvent::clear_signal().

Fields

parent: Arc<Event>

Pointer to the shared event representation.

Implementations

impl ReadableEvent[src]

pub fn clear_signal(&self) -> Result<(), KernelError>[src]

Clears the signaled state.

Errors

  • InvalidState
    • The event wasn't signaled.

Trait Implementations

impl Clone for ReadableEvent[src]

impl Debug for ReadableEvent[src]

impl Waitable for ReadableEvent[src]

Auto Trait Implementations

impl !RefUnwindSafe for ReadableEvent

impl Send for ReadableEvent

impl Sync for ReadableEvent

impl Unpin for ReadableEvent

impl !UnwindSafe for ReadableEvent

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.