pub struct SpeculationStats {
pub total_speculations: usize,
pub correct_speculations: usize,
pub incorrect_speculations: usize,
pub rollbacks: usize,
pub success_rate: f64,
pub average_confidence: f64,
pub time_saved_us: f64,
pub time_wasted_us: f64,
}Expand description
Speculation statistics.
Fields§
§total_speculations: usize§correct_speculations: usize§incorrect_speculations: usize§rollbacks: usize§success_rate: f64§average_confidence: f64§time_saved_us: f64§time_wasted_us: f64Trait Implementations§
Source§impl Clone for SpeculationStats
impl Clone for SpeculationStats
Source§fn clone(&self) -> SpeculationStats
fn clone(&self) -> SpeculationStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpeculationStats
impl Debug for SpeculationStats
Source§impl<'de> Deserialize<'de> for SpeculationStats
impl<'de> Deserialize<'de> for SpeculationStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SpeculationStats
impl RefUnwindSafe for SpeculationStats
impl Send for SpeculationStats
impl Sync for SpeculationStats
impl Unpin for SpeculationStats
impl UnwindSafe for SpeculationStats
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