[][src]Struct sunrise_kernel::event::WritableEvent

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

The writable part of an event. The user shall use this end to signal (and wake up threads waiting on the event).

Fields

parent: Arc<Event>

Pointer to the shared event representation.

Implementations

impl WritableEvent[src]

pub fn signal(&self)[src]

Signals the event, setting its state to signaled and waking up any thread waiting on its value.

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

Clears the signaled state.

Errors

  • InvalidState
    • The event wasn't signaled.

Trait Implementations

impl Clone for WritableEvent[src]

impl Debug for WritableEvent[src]

Auto Trait Implementations

impl !RefUnwindSafe for WritableEvent

impl Send for WritableEvent

impl Sync for WritableEvent

impl Unpin for WritableEvent

impl !UnwindSafe for WritableEvent

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.