fn lock(&self) -> bool {
        self.0
            .compare_and_swap(WORKER_STATE_IDLE, WORKER_STATE_LOCKED, SeqCst)
            == WORKER_STATE_IDLE
    }
/// Tries to atomically lock this worker state.
/// I.e., this functions succeeds if state was `Idle` and it was
/// successfully CASed to `Locked`.
Tries to atomically lock this worker state.
I.e., this functions succeeds if state was `Idle` and it was
successfully CASed to `Locked`.
Tries to atomically lock this worker state . I . e . this functions succeeds if state was ` Idle ` and it was successfully CASed to ` Locked ` .
fn lock(&self) -> bool {
        self.0
            .compare_and_swap(WORKER_STATE_IDLE, WORKER_STATE_LOCKED, SeqCst)
            == WORKER_STATE_IDLE
    }
fn lock ( & self ) -> bool { self . 0 . compare_and_swap ( WORKER_STATE_IDLE , WORKER_STATE_LOCKED , SeqCst ) == WORKER_STATE_IDLE }
Tries to atomically lock this worker state.
Tries to atomically lock this worker state .
&self