# ServiceHandle

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/type_alias-servicehandle/

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

```rust
type ServiceHandle = std::rc::Rc<dyn Any>
```

A type-erased service handle: an `Rc<dyn Any>` whose content is the
`Rc<TService>` handle of the service. Boxing the handle rather than the
service is what lets trait objects (`Rc<dyn IFoo>`) be stored and
recovered with their exact type.

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

## Availability

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