# PreviewPrototypeSession

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-designer/struct-previewprototypesession/

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

```rust
struct PreviewPrototypeSession
```

A bounded navigation cursor over one accepted graph. It owns no source session,
controls, timers or application state. Hosts validate native/source authority
before activating an interaction and can retain native views across Back.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L583)

## Members

- [`start`](#function-start)
- [`flow`](#function-flow)
- [`current`](#function-current)
- [`screen`](#function-screen)
- [`overlays`](#function-overlays)
- [`active_stages`](#function-active_stages)
- [`history`](#function-history)
- [`can_go_back`](#function-can_go_back)
- [`restart`](#function-restart)
- [`activate_link`](#function-activate_link)
- [`activate`](#function-activate)
- [`back`](#function-back)
- [`close_overlay`](#function-close_overlay)

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

### start

```rust
fn start(graph: &PreviewPrototype, flow_name: &str) -> Result<Self, String>
```

The host must first validate graph stage references against its live board.
This operation also validates structure so standalone callers cannot install
ambiguous interactions, invalid anchors or unbounded descriptors.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L596)

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

### flow

```rust
fn flow(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L613)

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

### current

```rust
fn current(self: &Self) -> PreviewStageId
```

The only stage that accepts an interaction: the top overlay, or the screen.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L617)

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

### screen

```rust
fn screen(self: &Self) -> PreviewStageId
```

The base screen beneath any open overlays. History stores these IDs only.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L623)

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

### overlays

```rust
fn overlays(self: &Self) -> &[PreviewPrototypeOverlay]
```

Overlay entries in back-to-front order, excluding the base screen.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L627)

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

### active_stages

```rust
fn active_stages(self: &Self) -> Vec<PreviewStageId>
```

Visible native hosts in back-to-front order. Only current() accepts actions.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L631)

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

### history

```rust
fn history(self: &Self) -> &[PreviewStageId]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L636)

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

### can_go_back

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L639)

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

### restart

```rust
fn restart(self: &mut Self) -> PreviewStageId
```

Restart navigation; the host decides separately whether native views reset.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L644)

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

### activate_link

```rust
fn activate_link(self: &mut Self, index: usize) -> Result<PreviewStageId, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L651)

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

### activate

```rust
fn activate(self: &mut Self, link: &PreviewPrototypeLink) -> Result<PreviewStageId, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L661)

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

### back

```rust
fn back(self: &mut Self) -> Result<PreviewStageId, String>
```

Close the top overlay first; otherwise return through screen history.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L720)

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

### close_overlay

```rust
fn close_overlay(self: &mut Self) -> Result<PreviewStageId, String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Designer/preview_prototype.rs#L732)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Same`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`

## Availability

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