Skip to main content

resource_lookup

Function resource_lookup 

Source
pub fn resource_lookup(key: &str) -> Option<Arc<dyn Any + Send + Sync>>
Expand description

Look up an already-attached resource’s accessor payload by fingerprint key through the installed RESOURCE_ACCESSOR.

Returns None when no accessor is installed (no host) or when no live entry matches key. Consuming nodes downcast the returned Arc<dyn Any + Send + Sync> to their concrete handle type.