Skip to main content

ExternalPvResolver

Type Alias ExternalPvResolver 

Source
pub type ExternalPvResolver = Arc<dyn Fn(&str) -> Option<EpicsValue> + Send + Sync>;
Expand description

Callback for resolving external PV names (CA/PVA links). Returns the cached value of the external PV, or None if unavailable.

Sync, for the same reason LinkSet::get_cached_value is: this runs on the record-processing thread with the record’s L1 gate held, and C’s dbCaGetLink likewise only reads pca->pgetNative under pca->lock — it never waits for the wire (dbCa.c:448-535). A resolver that cannot answer from cache must stage the open on its own executor and return None (C’s !pca->isConnected arm, dbCa.c:459-464).

Aliased Type§

pub struct ExternalPvResolver { /* private fields */ }