# `ExMujoco.Types.SleepPolicy`
[🔗](https://github.com/d-led/ex.mujoco/blob/main/lib/ex_mujoco/types/sleep_policy.ex#L2)

`mjtSleepPolicy`, from MuJoCo's headers, as numbers. All 6 values carry a number in the header.

# `t`

```elixir
@type t() :: integer()
```

# `allowed`

```elixir
@spec allowed() :: 4
```

mjSLEEP_ALLOWED is 4.

# `auto`

```elixir
@spec auto() :: 0
```

mjSLEEP_AUTO is 0.

# `auto_allowed`

```elixir
@spec auto_allowed() :: 2
```

mjSLEEP_AUTO_ALLOWED is 2.

# `auto_never`

```elixir
@spec auto_never() :: 1
```

mjSLEEP_AUTO_NEVER is 1.

# `init`

```elixir
@spec init() :: 5
```

mjSLEEP_INIT is 5.

# `never`

```elixir
@spec never() :: 3
```

mjSLEEP_NEVER is 3.

# `to_atom`

```elixir
@spec to_atom(integer() | atom()) :: atom() | nil
```

The name behind an integer. An atom is already one.

# `to_integer`

```elixir
@spec to_integer(t() | atom()) :: integer() | nil
```

The integer behind a name. An integer is already one.

# `values`

```elixir
@spec values() :: [{atom(), integer()}]
```

Every value, as `{name, integer}`, in the order the header lists them.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
