pub struct Sem(/* private fields */);Expand description
a counting semaphore
Implementations§
Auto Trait Implementations§
impl Forget for Sem
impl Freeze for Sem
impl RefUnwindSafe for Sem
impl Send for Sem
impl Sync for Sem
impl Unpin for Sem
impl UnsafeUnpin for Sem
impl UnwindSafe for Sem
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