pub trait FingerprintSource {
// Required methods
fn instance(&self) -> &ErrorModel;
fn modified_remote_check_models(
&self,
) -> &Arc<Vec<Option<RemoteCheckModel>>> ⓘ;
}Expand description
Abstraction over the per-coordinator ErrorModel wrapper struct so that
build_modifier_fingerprints can run unchanged against either
coordinator::monolithic_coordinator::ErrorModel or
coordinator::window_coordinator::ErrorModel.
Each coordinator stores the resolved error-model instance plus its
modified remote-check-models list — the two pieces
ErrorModelFingerprint::new consumes — but the two wrappers carry
additional, coordinator-specific fields (the monolithic one holds an
extra watch::Sender for expanded_remote_check_models). This trait
is the seam.
modified_remote_check_models returns the borrowed Arc so that the
fingerprint constructor can share the underlying Vec (refcount bump)
instead of cloning it.
Required Methods§
fn instance(&self) -> &ErrorModel
fn modified_remote_check_models(&self) -> &Arc<Vec<Option<RemoteCheckModel>>> ⓘ
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl FingerprintSource for deq_runtime::coordinator::monolithic_coordinator::ErrorModel
Per-coordinator FingerprintSource adapter for the monolithic
ErrorModel wrapper. See crate::coordinator::build_modifier_fingerprints.
impl FingerprintSource for deq_runtime::coordinator::window_coordinator::ErrorModel
Per-coordinator FingerprintSource adapter for the window
ErrorModel wrapper. See crate::coordinator::build_modifier_fingerprints.