# FunctionRegistration

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-hot-patch/struct-functionregistration/

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

```rust
struct FunctionRegistration
```

A stable application declaration, supplied when its patch supervisor starts.
Changing registrations is a build-input change and requires process replacement.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/registration.rs#L6)

## Members

- [`callback`](#function-callback)
- [`view_builder`](#function-view_builder)

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

### callback

```rust
fn callback(source: impl Into<String>, function: impl Into<String>) -> Self
```

A handler or command whose updated body takes effect on its next invocation.
Register the function here and invoke it through a patch-aware callback helper.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/registration.rs#L14)

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

### view_builder

```rust
fn view_builder(source: impl Into<String>, function: impl Into<String>, views: impl IntoIterator<Item = String>) -> Self
```

A synchronous builder which explicitly requests reapplication of these views.
View identifiers belong to the application; the view transaction must resolve
them to reversible adapters. At least one nonempty identifier is required.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.HotPatch/registration.rs#L25)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`

## Availability

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