pub struct TargetingStats {
pub total_attempts: u64,
pub successful_generations: u64,
pub rejected_prefix_count: usize,
pub rejected_id_count: usize,
}Expand description
Statistics on identity targeting.
Fields§
§total_attempts: u64Total targeting attempts.
successful_generations: u64Number of successful generations.
rejected_prefix_count: usizeNumber of rejected prefixes being avoided.
rejected_id_count: usizeNumber of rejected NodeIds being avoided.
Implementations§
Source§impl TargetingStats
impl TargetingStats
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Calculate success rate.
Trait Implementations§
Source§impl Clone for TargetingStats
impl Clone for TargetingStats
Source§fn clone(&self) -> TargetingStats
fn clone(&self) -> TargetingStats
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 TargetingStats
impl Debug for TargetingStats
Source§impl<'de> Deserialize<'de> for TargetingStats
impl<'de> Deserialize<'de> for TargetingStats
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 TargetingStats
impl RefUnwindSafe for TargetingStats
impl Send for TargetingStats
impl Sync for TargetingStats
impl Unpin for TargetingStats
impl UnwindSafe for TargetingStats
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