# ferroui_system

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/

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

```rust
module ferroui_system
```

ferroui-system

The parts of the base class library of .NET that FerroUI and its reusable libraries share, in
Rust: thread-local variables that work on every target, events, change notification and the
cancellation of work. Nothing here depends on the user interface; the base
library of FerroUI re-exports every item at the path it had there.

The modules follow the namespaces of .NET where an item ports one of its types; the items of the
namespace `System` are at the root (`IDisposable`, `IObservable<T>`, `IObserver<T>`,
`IProgress<T>`), with the guard of a subscription ([`Subscription`](/docs/0.5.0/api/ferroui-system/struct-subscription/)) and the extension that
subscribes with it ([`SubscribeGuard`](/docs/0.5.0/api/ferroui-system/trait-subscribeguard/)).

- [`component_model`](/docs/0.5.0/api/ferroui-system/component_model/): `System.ComponentModel` (`INotifyPropertyChanged`).
- [`collections::generic`](/docs/0.5.0/api/ferroui-system/collections/generic/): `System.Collections.Generic` (`SlotOrderMap`, the `Dictionary` with
  the order of enumeration of .NET).
- [`collections::object_model`](/docs/0.5.0/api/ferroui-system/collections/object_model/): `System.Collections.ObjectModel` (`ObservableCollection`).
- [`collections::specialized`](/docs/0.5.0/api/ferroui-system/collections/specialized/): `System.Collections.Specialized` (`INotifyCollectionChanged` and
  the arguments of a change).
- [`threading`](/docs/0.5.0/api/ferroui-system/threading/): `System.Threading` (`CancellationToken` and its source) and
  `System.Threading.Tasks` (`Task.Run`; the deprecated `Task<T>` and `TaskCompletionSource<T>`,
  wrappers over [`task::Shared`](/docs/0.5.0/api/ferroui-system/task/struct-shared/) since 0.5.0).
- [`task`](/docs/0.5.0/api/ferroui-system/task/): the executor of the workspace (named after `std::task`): futures spawned on their
  thread, their handles ([`task::JoinHandle`](/docs/0.5.0/api/ferroui-system/task/struct-joinhandle/), [`task::Shared`](/docs/0.5.0/api/ferroui-system/task/struct-shared/)) and where their polls run
  ([`task::Schedule`](/docs/0.5.0/api/ferroui-system/task/trait-schedule/)), and the one-shot channel ([`task::oneshot`](/docs/0.5.0/api/ferroui-system/task/oneshot/)); `threading::tasks` runs
  on it.
- [`events`](/docs/0.5.0/api/ferroui-system/events/): the multicast events and the lists of handlers that FerroUI's events are built on.
- [`ferro_thread_local!`](/docs/0.5.0/api/ferroui-system/macro-ferro_thread_local/): thread-local variables, `std::thread_local!` on every target with
  thread-local statics and one table per thread on Android ([`mod@ferro_thread_local`](/docs/0.5.0/api/ferroui-system/ferro_thread_local/)).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/lib.rs#L1)

## Contents

- [`collections`](/docs/0.5.0/api/ferroui-system/collections/) — module
- [`component_model`](/docs/0.5.0/api/ferroui-system/component_model/) — module
- [`events`](/docs/0.5.0/api/ferroui-system/events/) — module
- [`ferro_thread_local`](/docs/0.5.0/api/ferroui-system/ferro_thread_local/) — module
- [`task`](/docs/0.5.0/api/ferroui-system/task/) — module
- [`threading`](/docs/0.5.0/api/ferroui-system/threading/) — module
- [`IDisposable`](/docs/0.5.0/api/ferroui-system/trait-idisposable/) — trait
- [`Subscription`](/docs/0.5.0/api/ferroui-system/struct-subscription/) — struct
- [`IObservable`](/docs/0.5.0/api/ferroui-system/trait-iobservable/) — trait
- [`IObserver`](/docs/0.5.0/api/ferroui-system/trait-iobserver/) — trait
- [`ObservableError`](/docs/0.5.0/api/ferroui-system/type_alias-observableerror/) — type alias
- [`SubscribeGuard`](/docs/0.5.0/api/ferroui-system/trait-subscribeguard/) — trait
- [`IProgress`](/docs/0.5.0/api/ferroui-system/trait-iprogress/) — trait
- [`prop`](/docs/0.5.0/api/ferroui-system/macro-prop/) — macro
- [`ferro_thread_local`](/docs/0.5.0/api/ferroui-system/macro-ferro_thread_local/) — macro

## Availability

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