pub struct Ticket { /* private fields */ }Expand description
A RAII guard for automatically managing the thread count.
When a Ticket is created, it increments the associated thread counter.
When the Ticket is dropped, it automatically decrements the counter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ticket
impl !RefUnwindSafe for Ticket
impl Send for Ticket
impl Sync for Ticket
impl Unpin for Ticket
impl !UnwindSafe for Ticket
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