# Enum permissions::DenialReason

> Why a permission check failed, when a specific rule caused it (permissions the protocol).

`zaun_community_protocol::permissions::DenialReason` · Enum

```rust
pub enum DenialReason { … }
```

Why a permission check failed, when a specific rule caused it (permissions the protocol).

## Variants

### `Hierarchy`

H1, H2 or H4 (the management hierarchy).

### `Probation`

Step 7b: probation newcomer mask or the waiting period.

### `Lockdown`

Step 7c: an active emergency lockdown.

### `ChannelLocked`

Step 7d: the channel `locked` flag.

### `Timeout`

Step 7a: the member is timed out.

## Methods

### `wire`

```rust
pub const fn wire(self) -> Option<&'static str>
```

The `reason` string of a `FORBIDDEN` body, if any.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Eq`, `Hash`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/permissions/denial/enum.DenialReason.html)
