Skip to content

Commit b73c2a0

Browse files
authored
Merge pull request #2484 from lann/find-dhc-note
core: Add note to find_host_component_handle docs
2 parents c63ffda + 5a2cffb commit b73c2a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/core/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,8 @@ impl<T: OutboundWasiHttpHandler + Send + Sync> Engine<T> {
409409
}
410410

411411
/// Find the [`HostComponentDataHandle`] for a [`HostComponent`] if configured for this engine.
412+
/// Note: [`DynamicHostComponent`]s are implicitly wrapped in `Arc`s and need to be explicitly
413+
/// typed as such here, e.g. `find_host_component_handle::<Arc<MyDynamicHostComponent>>()`.
412414
pub fn find_host_component_handle<HC: HostComponent>(
413415
&self,
414416
) -> Option<HostComponentDataHandle<HC>> {

0 commit comments

Comments
 (0)