# Enum permissions::GateDenial

> Why the gate refused a command.

`zaun_community_protocol::permissions::GateDenial` · Enum

```rust
pub enum GateDenial { … }
```

Why the gate refused a command.

## Variants

### `NotBound`

`NOT_BOUND`: no binding (unbound connection, or a member that left).

### `AlreadyBound`

`CONFLICT`: an unbound-only command on a bound connection.

### `PendingApproval`

`PENDING_APPROVAL`.

### `Suspended`

`SUSPENDED`.

### `Banned`

`BANNED`.

## Methods

### `conflict_reason`

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

The `reason` of the `CONFLICT` body, for `GateDenial::AlreadyBound`.

### `error_code`

```rust
pub const fn error_code(self) -> ErrorCode
```

The response code.

## Trait implementations

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

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