# InteractionContext

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/binding/interactions/struct-interactioncontext/

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

```rust
struct InteractionContext<I, O>
```

The context of one question asked through an interaction (`InteractionContext<TInput, TOutput>`):
the input, and the output a handler sets once.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interactions/interaction_context.rs#L9)

## Members

- [`new`](#function-new)

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

### new

```rust
fn new(input: I) -> Self
```

A context carrying `input`, without an output (`internal InteractionContext(TInput)`).

Upstream it is internal, and its tests reach it through `InternalsVisibleTo`; here it is
public.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/binding/interactions/interaction_context.rs#L21)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IInteractionContext<I, O>`](/docs/0.5.0/api/ferroui-reactiveui/binding/interactions/trait-iinteractioncontext/)
- [`IOutputContext<I, O>`](/docs/0.5.0/api/ferroui-reactiveui/binding/interactions/trait-ioutputcontext/)
- `Debug`

## Availability

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