pub fn disarm(&mut self) -> usize {
            let permits = self.permits;
            self.permits = 0;
            permits
        }
/// Prevents the SharedSemaphoreReleaser from automatically releasing the permits
/// when it gets dropped.
///
/// This is helpful if the permits must be acquired for a longer lifetime
/// than the one of the SemaphoreReleaser.
///
/// If this method is used it is important to release the acquired permits
/// manually back to the Semaphore.
Prevents the SharedSemaphoreReleaser from automatically releasing the permits
when it gets dropped.

This is helpful if the permits must be acquired for a longer lifetime
than the one of the SemaphoreReleaser.

If this method is used it is important to release the acquired permits
manually back to the Semaphore.
Prevents the SharedSemaphoreReleaser from automatically releasing the permits when it gets dropped . This is helpful if the permits must be acquired for a longer lifetime than the one of the SemaphoreReleaser . If this method is used it is important to release the acquired permits manually back to the Semaphore .
pub fn disarm(&mut self) -> usize {
            let permits = self.permits;
            self.permits = 0;
            permits
        }
pub fn disarm ( & mut self ) -> usize { let permits = self . permits ; self . permits = 0 ; permits }
Prevents the SharedSemaphoreReleaser from automatically releasing the permits
when it gets dropped.
Prevents the SharedSemaphoreReleaser from automatically releasing the permits when it gets dropped .
&mut self
&mut self