pub struct ShadowStats {
pub comparisons: AtomicU64,
pub mismatches: AtomicU64,
pub orm_total_us: AtomicU64,
pub raw_total_us: AtomicU64,
}Expand description
影子流量累计统计
Fields§
§comparisons: AtomicU64累计比较次数
mismatches: AtomicU64不一致次数
orm_total_us: AtomicU64ORM 累计耗时(微秒)
raw_total_us: AtomicU64原生累计耗时(微秒)
Implementations§
Source§impl ShadowStats
impl ShadowStats
Sourcepub fn avg_orm_us(&self) -> u64
pub fn avg_orm_us(&self) -> u64
平均 ORM 耗时(微秒)
Sourcepub fn avg_raw_us(&self) -> u64
pub fn avg_raw_us(&self) -> u64
平均原生耗时(微秒)
Sourcepub fn mismatch_rate(&self) -> f64
pub fn mismatch_rate(&self) -> f64
不一致率
Trait Implementations§
Source§impl Debug for ShadowStats
impl Debug for ShadowStats
Source§impl Default for ShadowStats
impl Default for ShadowStats
Source§fn default() -> ShadowStats
fn default() -> ShadowStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ShadowStats
impl RefUnwindSafe for ShadowStats
impl Send for ShadowStats
impl Sync for ShadowStats
impl Unpin for ShadowStats
impl UnsafeUnpin for ShadowStats
impl UnwindSafe for ShadowStats
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> 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 more