Skip to main content

Module extensions

Module extensions 

Source
Expand description

Extension keys for ToolContext.extensions map.

Each key identifies a platform-specific extension that tools can access via ctx.extensions.get(key) and downcast to the appropriate trait.

Modules§

keys
Extension keys for ToolContext.extensions.

Structs§

PlatformExtWrapper
Wrapper that makes Arc<dyn PlatformExt> storable in the Any-based extensions map. Use downcast_ref::<PlatformExtWrapper>() to retrieve it.