# fidl::SyncClient

## Summary

### Inheritance

Inherits from: [fidl::WireSyncClient\< FidlProtocol \>](https://fuchsia.dev/reference/cpp/class/fidl/wire-sync-client)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a11106a6979c1f1d247b040e36ec2570e()` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a236d605079565f35cd4b2c33370cb497(::https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< FidlProtocol > client_end)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a1ba82eadd6f4a2548b6f566259c5fe8d(https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client &&)` ||
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a4a0e41cc101190cffddbd7d41bd5279a()` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a8ce3e52ff1151670fd712c0a289725ae(::https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< FidlProtocol > client_end)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a40fa1b773eacaab1073968acbc2fa303(https://fuchsia.dev/reference/cpp/other/singletonfidl/sync-event-handler#singletonfidl_1_1_sync_event_handler< FidlProtocol > & event_handler) const ` | `::https://fuchsia.dev/reference/cpp/class/fidl/status#classfidl_1_1_status` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1aa9cabbdd9b9333e1aef71793f504d993()` | `::https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< FidlProtocol >` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a755c66499bbb10b1599b8e83bc737a12() const ` | `const ::https://fuchsia.dev/reference/cpp/other/singletonfidl/client-end#singletonfidl_1_1_client_end< FidlProtocol > &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a4717dd5c66ab9302bd6ffa452f31f3c5() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1aa50794207050a7633f9d9c366356157d() const ` | ` `` ` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a7509a371dc3763cab85618d70de01a8c() const ` | `internal::SyncEndpointManagedVeneer< internal::NaturalSyncClientImpl< FidlProtocol > >` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a6b474d6b12258abb529a817eb6dcc430(https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client &&) noexcept=default` | `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client &` |
| `https://fuchsia.dev/reference/cpp/class/fidl/sync-client#classfidl_1_1_sync_client_1a2ee866a62753efa94ea06d022c21dd98() const ` | `const https://fuchsia.dev/reference/cpp/class/fidl/wire-sync-client#classfidl_1_1_wire_sync_client &` |

## Public functions

### Bind

```c++
void Bind(
  ::fidl::ClientEnd< FidlProtocol > client_end
)
```

### HandleOneEvent

```c++
::fidl::Status HandleOneEvent(
  fidl::SyncEventHandler< FidlProtocol > & event_handler
) const 
```

### SyncClient

```c++
 SyncClient()=default
```

### SyncClient

```c++
 SyncClient(
  ::fidl::ClientEnd< FidlProtocol > client_end
)
```

### SyncClient

```c++
 SyncClient(
  SyncClient &&
) noexcept=default
```

### TakeClientEnd

```c++
::fidl::ClientEnd< FidlProtocol > TakeClientEnd()
```

### client_end

```c++
const ::fidl::ClientEnd< FidlProtocol > & client_end() const 
```

### is_valid

```c++
bool is_valid() const 
```

### operator bool

```c++
 operator bool() const 
```

### operator-\>

```c++
internal::SyncEndpointManagedVeneer< internal::NaturalSyncClientImpl< FidlProtocol > > operator->() const 
```

### operator=

```c++
SyncClient & operator=(
  SyncClient &&
) noexcept=default
```

### wire

```c++
const Base & wire() const 
```

### \~SyncClient

```c++
 ~SyncClient()=default
```