[−][src]Struct futures_intrusive::sync::GenericManualResetEvent
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,
MutexType: Unpin,
impl<MutexType> UnwindSafe for GenericManualResetEvent<MutexType> where
MutexType: UnwindSafe,
MutexType: UnwindSafe,
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,
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.
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>,