pub struct ErrorModelFingerprint {
pub etype_digest: u64,
pub pm: Option<ProbabilityModifierBits>,
pub remote_check_models: Arc<Vec<Option<RemoteCheckModel>>>,
}Expand description
Fingerprint of all per-ErrorModel state read live during
decoding_hypergraph(). Captures every field whose value can affect the
merged hyperedges of a window:
etype_digest— a structural hash of the resolvedErrorModelType(computed via [hash_error_model_type_structural]) so the rawerrorslist,ctype, and so on contribute to the key. Replaces the previous rawetype: u64field, which was only an ID and did not invalidate the cache when the resolved type changed under the sameetype.probability_modifier(pm) — overrides per-error probabilities.remote_check_models— provides thecheck_biasadded to vertex indices for remote checks. Stored asArc<Vec<...>>(shared with the originatingErrorModel) so building a fingerprint is a refcount bump rather than a full vector clone; equality and hashing transparently delegate to the innerVec.
Fields§
§etype_digest: u64§pm: Option<ProbabilityModifierBits>§remote_check_models: Arc<Vec<Option<RemoteCheckModel>>>Implementations§
Source§impl ErrorModelFingerprint
impl ErrorModelFingerprint
Sourcepub fn new(
instance: &ErrorModel,
modified_remote_check_models: Arc<Vec<Option<RemoteCheckModel>>>,
etype_digest: u64,
) -> Self
pub fn new( instance: &ErrorModel, modified_remote_check_models: Arc<Vec<Option<RemoteCheckModel>>>, etype_digest: u64, ) -> Self
Build a fingerprint with a precomputed etype_digest and an already-Arc’d
remote-check-models vector. The Arc is the same one stored on the
coordinator’s ErrorModel, so this constructor performs at most one
ProbabilityModifierBits allocation per call.
Trait Implementations§
Source§impl Clone for ErrorModelFingerprint
impl Clone for ErrorModelFingerprint
Source§impl Debug for ErrorModelFingerprint
impl Debug for ErrorModelFingerprint
impl Eq for ErrorModelFingerprint
Source§impl Hash for ErrorModelFingerprint
impl Hash for ErrorModelFingerprint
Source§impl PartialEq for ErrorModelFingerprint
impl PartialEq for ErrorModelFingerprint
impl StructuralPartialEq for ErrorModelFingerprint
Auto Trait Implementations§
impl Forget for ErrorModelFingerprint
impl Freeze for ErrorModelFingerprint
impl Move for ErrorModelFingerprint
impl RefUnwindSafe for ErrorModelFingerprint
impl Send for ErrorModelFingerprint
impl Sync for ErrorModelFingerprint
impl Unpin for ErrorModelFingerprint
impl UnsafeUnpin for ErrorModelFingerprint
impl UnwindSafe for ErrorModelFingerprint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request