# ISupportInitialize

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/trait-isupportinitialize/

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

```rust
trait ISupportInitialize
```

Specifies that an object supports a simple, transacted notification for
batch initialization: the counterpart of the component model contract of
the same name, which markup calls around the initialization of an
object.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/i_support_initialize.rs#L35)

## Members

- [`begin_init`](#function-begin_init)
- [`end_init`](#function-end_init)
- [`try_end_init`](#function-try_end_init)

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

### begin_init

```rust
fn begin_init(self: &Self)
```

Signals the object that initialization is starting.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/i_support_initialize.rs#L37)

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

### end_init

```rust
fn end_init(self: &Self)
```

Signals the object that initialization is complete.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/i_support_initialize.rs#L40)

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

### try_end_init

```rust
fn try_end_init(self: &Self) -> Result<(), InitializationError>
```

Signals the object that initialization is complete, reporting a
failure of the initialization (the exception `EndInit` raises in the
managed original) instead of panicking. Markup calls this form. By
default initialization cannot fail.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/i_support_initialize.rs#L46)

## Availability

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