[][src]Struct futures_intrusive::sync::GenericManualResetEvent

pub struct GenericManualResetEvent<MutexType: RawMutex> { /* fields omitted */ }

A synchronization primitive which can be either in the set or reset state.

Tasks can wait for the event to get set by obtaining a Future via wait. This Future will get fulfilled when the event has been set.

Methods

impl<MutexType: RawMutex> GenericManualResetEvent<MutexType>[src]

pub fn new(is_set: bool) -> GenericManualResetEvent<MutexType>[src]

Creates a new ManualResetEvent in the given state

pub fn set(&self)[src]

Sets the event.

Setting the event will notify all pending waiters.

pub fn reset(&self)[src]

Resets the event.

pub fn is_set(&self) -> bool[src]

Returns whether the event is set

pub fn wait(&self) -> GenericWaitForEventFuture<MutexType>[src]

Returns a future that gets fulfilled when the event is set.

Trait Implementations

impl<MutexType: RawMutex> Debug for GenericManualResetEvent<MutexType>[src]

impl<MutexType: RawMutex + Send> Send for GenericManualResetEvent<MutexType>[src]

impl<MutexType: RawMutex + Sync> Sync for GenericManualResetEvent<MutexType>[src]

Auto Trait Implementations

impl<MutexType> !RefUnwindSafe for GenericManualResetEvent<MutexType>

impl<MutexType> Unpin for GenericManualResetEvent<MutexType> where
    MutexType: Unpin

impl<MutexType> UnwindSafe for GenericManualResetEvent<MutexType> where
    MutexType: UnwindSafe

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.