pub enum PoolProfilerComparison {
Match,
SqrtPriceMismatch,
FeeProtocolMismatch,
ProtocolFeesMismatch,
Mismatch,
}Expand description
Result of comparing a replayed pool profiler against an on-chain snapshot.
Variants§
Match
All compared fields match.
SqrtPriceMismatch
Only the sqrt price differs; structural pool state still matches.
FeeProtocolMismatch
Only the fee protocol differs; structural pool state still matches.
ProtocolFeesMismatch
Only the accrued protocol-fee balances differ; structural pool state still matches.
Mismatch
One or more structural fields differ.
Implementations§
Source§impl PoolProfilerComparison
impl PoolProfilerComparison
Sourcepub const fn is_exact_match(self) -> bool
pub const fn is_exact_match(self) -> bool
Returns true when every compared field matches.
Sourcepub const fn is_valid_for_snapshot(self) -> bool
pub const fn is_valid_for_snapshot(self) -> bool
Returns true when the snapshot can seed the profiler cache.
Trait Implementations§
Source§impl Clone for PoolProfilerComparison
impl Clone for PoolProfilerComparison
Source§fn clone(&self) -> PoolProfilerComparison
fn clone(&self) -> PoolProfilerComparison
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PoolProfilerComparison
Source§impl Debug for PoolProfilerComparison
impl Debug for PoolProfilerComparison
impl Eq for PoolProfilerComparison
Source§impl PartialEq for PoolProfilerComparison
impl PartialEq for PoolProfilerComparison
Source§fn eq(&self, other: &PoolProfilerComparison) -> bool
fn eq(&self, other: &PoolProfilerComparison) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PoolProfilerComparison
Auto Trait Implementations§
impl Freeze for PoolProfilerComparison
impl RefUnwindSafe for PoolProfilerComparison
impl Send for PoolProfilerComparison
impl Sync for PoolProfilerComparison
impl Unpin for PoolProfilerComparison
impl UnsafeUnpin for PoolProfilerComparison
impl UnwindSafe for PoolProfilerComparison
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more