fn acquire() -> Result<Self, AlreadyRunning> {
        if RUN_GUARD_STATE.swap(true, Acquire) {
            Err(AlreadyRunning)
        } else {
            Ok(Self)
        }
    }
/// Acquires the guard. Returns an error if the guard was already acquired.
Acquires the guard. Returns an error if the guard was already acquired.
Acquires the guard . Returns an error if the guard was already acquired .
fn acquire() -> Result<Self, AlreadyRunning> {
        if RUN_GUARD_STATE.swap(true, Acquire) {
            Err(AlreadyRunning)
        } else {
            Ok(Self)
        }
    }
fn acquire ( ) -> Result < Self , AlreadyRunning > { if RUN_GUARD_STATE . swap ( true , Acquire ) { Err ( AlreadyRunning ) } else { Ok ( Self ) } }
Acquires the guard.
Acquires the guard .