Skip to main content

ExtensibleHandler

Trait ExtensibleHandler 

Source
pub trait ExtensibleHandler: ChoreoHandler {
    // Required method
    fn extension_registry(
        &self,
    ) -> &ExtensionRegistry<Self::Endpoint, Self::Role>;
}
Expand description

Trait for handlers that support extensions

This trait provides access to the extension registry. Handlers should populate the registry during construction.

Required Methods§

Source

fn extension_registry(&self) -> &ExtensionRegistry<Self::Endpoint, Self::Role>

Get the extension registry for this handler

The interpreter uses this to dispatch extension effects.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§