struct Semaphore {
waiters: VecDeque<ThreadId>,
value: u64,
clock: VClock,
}Expand description
The semaphore state.
Fields§
§waiters: VecDeque<ThreadId>§value: u64§clock: VClockThe joint data race clock of the most recent semaphore increment.
Trait Implementations§
Auto Trait Implementations§
impl !DynSend for Semaphore
impl !DynSync for Semaphore
impl Freeze for Semaphore
impl RefUnwindSafe for Semaphore
impl Send for Semaphore
impl Sync for Semaphore
impl Unpin for Semaphore
impl UnsafeUnpin for Semaphore
impl UnwindSafe for Semaphore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 104 bytes