# fdf::Protocol

## Summary

### Inheritance

Inherits from: fdf_token_t

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a96a710c9a9b0cd924ed575753a2569cb(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1ad1150af450e34aa959eccf60defb3490(const https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &)` ||
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1ac10efef856af42dc146331795e86b84a(https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &&)` ||
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a8b20e843c82331a1c8feeba6c6c546ec()` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a494c3d5f73154ffba527b0fd10561722` | using `https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl< void(fdf_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol *protocol, zx_status_t status, https://fuchsia.dev/reference/cpp/class/fdf/channel#classfdf_1_1_channel channel)>` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a8d1d5a82d03d564f82db75f4c17b3c6b(https://fuchsia.dev/reference/cpp/class/zx/channel#classzx_1_1channel token, fdf_dispatcher_t *dispatcher)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a95ee3cd026db0dfbc0fec22886445ccf()` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a9b2238d94772d998ca3d9a44f1e658fc(const https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &)=delete` | `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &` |
| `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol_1a5a7be1530ebb896edd95875483d94663(https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &&)=delete` | `https://fuchsia.dev/reference/cpp/class/fdf/protocol#classfdf_1_1_protocol &` |

## Public types

### Handler

```c++
fit::function< void(fdf_dispatcher_t *dispatcher, fdf::Protocol *protocol, zx_status_t status, fdf::Channel channel)> Handler
```

## Public functions

### Protocol

```c++
 Protocol(
  Handler handler
)
```

### Protocol

```c++
 Protocol(
  const Protocol &
)=delete
```

### Protocol

```c++
 Protocol(
  Protocol &&
)=delete
```

### Register

```c++
zx_status_t Register(
  zx::channel token,
  fdf_dispatcher_t *dispatcher
)
```

### is_pending

```c++
bool is_pending()
```

### operator=

```c++
Protocol & operator=(
  const Protocol &
)=delete
```

### operator=

```c++
Protocol & operator=(
  Protocol &&
)=delete
```

### \~Protocol

```c++
 ~Protocol()
```