pub struct NatTypeMetrics {
pub nat_type: NatType,
pub total_attempts: u64,
pub successful_attempts: u64,
pub success_rate: f64,
pub avg_connection_time_ms: f64,
pub common_failures: Vec<(String, u64)>,
}Expand description
NAT type success rate metrics
Fields§
§nat_type: NatTypeNAT type
total_attempts: u64Total attempts for this NAT type
successful_attempts: u64Successful attempts
success_rate: f64Success rate (0.0 to 1.0)
avg_connection_time_ms: f64Average connection time for successful attempts
common_failures: Vec<(String, u64)>Most common failure reasons
Trait Implementations§
Source§impl Clone for NatTypeMetrics
impl Clone for NatTypeMetrics
Source§fn clone(&self) -> NatTypeMetrics
fn clone(&self) -> NatTypeMetrics
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 moreAuto Trait Implementations§
impl Freeze for NatTypeMetrics
impl RefUnwindSafe for NatTypeMetrics
impl Send for NatTypeMetrics
impl Sync for NatTypeMetrics
impl Unpin for NatTypeMetrics
impl UnwindSafe for NatTypeMetrics
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