pub struct Semaphore(_);
A Windows semaphore.
Construct a new semaphore.
This wraps CreateSemaphoreW.
CreateSemaphoreW
Release a permit on the semaphore.
This wraps ReleaseSemaphore.
ReleaseSemaphore
Access the underlying handle to the semaphore.
source
TypeId
self
Returns the argument unchanged.
Calls U::from(self).
U::from(self)
That is, this conversion is whatever the implementation of From<T> for U chooses to do.
From<T> for U