# WaylandWorkerOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-wayland/wayland_platform_options/struct-waylandworkeroptions/

**struct** · [`ferroui-wayland`](/docs/0.5.0/api/ferroui-wayland/) · v0.5.0

```rust
struct WaylandWorkerOptions
```

The options the worker thread reads. The options object itself holds a callback of the UI
thread, so the worker gets the values it needs.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L121)

## Members

- [`wl_display_name`](#struct_field-wl_display_name)
- [`display_fd`](#struct_field-display_fd)
- [`enable_reconnects`](#struct_field-enable_reconnects)
- [`force_drawn_decorations`](#struct_field-force_drawn_decorations)
- [`gl_profiles`](#struct_field-gl_profiles)
- [`use_dmabuf_swapchain`](#struct_field-use_dmabuf_swapchain)
- [`app_id`](#struct_field-app_id)
- [`reconnects_disabled`](#function-reconnects_disabled)

<a id="struct_field-wl_display_name"></a>

### wl_display_name

```rust
wl_display_name: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L122)

<a id="struct_field-display_fd"></a>

### display_fd

```rust
display_fd: Option<i32>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L123)

<a id="struct_field-enable_reconnects"></a>

### enable_reconnects

```rust
enable_reconnects: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L124)

<a id="struct_field-force_drawn_decorations"></a>

### force_drawn_decorations

```rust
force_drawn_decorations: bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L125)

<a id="struct_field-gl_profiles"></a>

### gl_profiles

```rust
gl_profiles: Vec<ferroui_opengl::GlVersion>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L126)

<a id="struct_field-use_dmabuf_swapchain"></a>

### use_dmabuf_swapchain

```rust
use_dmabuf_swapchain: Option<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L127)

<a id="struct_field-app_id"></a>

### app_id

```rust
app_id: Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L128)

<a id="function-reconnects_disabled"></a>

### reconnects_disabled

```rust
fn reconnects_disabled(self: &Self) -> bool
```

Whether a lost connection ends the worker instead of starting the reconnect probes.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Wayland/wayland_platform_options.rs#L133)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Instrument`
- `WithSubscriber`
- `Downcast`
- `DowncastSync`
- `Clone`
- `Debug`
- `ErasedDestructor`
- `IntoEither`

## Availability

Extracted for `x86_64-unknown-linux-gnu`, `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
