# async::GuestBellTrap

## Summary

### Inheritance

Inherits from: [async::GuestBellTrapBase](https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap-base)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap_1a033bdd13da5bddfa2bd24065f4b6b7a8(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap_1a2d6c8fd13e5f329c37f2b24dfb2f4a17()` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap_1a70f90b533aa5f7b7ebf560b46f2a1a7c` | using `https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl< void(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap *trap, zx_status_t status, const https://fuchsia.dev/reference/cpp/struct/zx-packet-guest-bell#structzx__packet__guest__bell *bell)>` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap_1adf1dc699ed4bc7297ce626e305b25b01() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap#classasync_1_1_guest_bell_trap_1aa25a0038bf5d81ee284ee97fe92bd08f(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` | `void` |

## Public types

### Handler

```c++
fit::function< void(async_dispatcher_t *dispatcher, async::GuestBellTrap *trap, zx_status_t status, const zx_packet_guest_bell_t *bell)> Handler
```

## Public functions

### GuestBellTrap

```c++
 GuestBellTrap(
  Handler handler
)
```

### has_handler

```c++
bool has_handler() const 
```

### set_handler

```c++
void set_handler(
  Handler handler
)
```

### \~GuestBellTrap

```c++
 ~GuestBellTrap()
```