Skip to main content

ServiceHandle

Type Alias ServiceHandle 

Source
pub type ServiceHandle = Rc<dyn Any>;
Expand description

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.

Aliased Typeยง

pub struct ServiceHandle { /* private fields */ }