#[repr(C)]pub struct LightSemaphore {
pub current_count: s32,
pub num_threads_acq: s16,
pub max_count: s16,
}Expand description
A light semaphore.
Fields§
§current_count: s32< The current release count of the semaphore
num_threads_acq: s16< Number of threads concurrently acquiring the semaphore
max_count: s16< The maximum release count of the semaphore
Trait Implementations§
Source§impl Clone for LightSemaphore
impl Clone for LightSemaphore
Source§fn clone(&self) -> LightSemaphore
fn clone(&self) -> LightSemaphore
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightSemaphore
impl Debug for LightSemaphore
Source§impl Default for LightSemaphore
impl Default for LightSemaphore
Source§fn default() -> LightSemaphore
fn default() -> LightSemaphore
Returns the “default value” for a type. Read more
impl Copy for LightSemaphore
Auto Trait Implementations§
impl Freeze for LightSemaphore
impl RefUnwindSafe for LightSemaphore
impl Send for LightSemaphore
impl Sync for LightSemaphore
impl Unpin for LightSemaphore
impl UnwindSafe for LightSemaphore
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)