pub struct CanaryStats {
pub total_requests: u64,
pub canary_requests: u64,
pub opted_out_requests: u64,
pub matched_requests: u64,
}Expand description
Statistics for canary routing
Fields§
§total_requests: u64Total requests processed
canary_requests: u64Requests routed to canary
opted_out_requests: u64Requests that opted out
matched_requests: u64Requests that matched team criteria
Implementations§
Source§impl CanaryStats
impl CanaryStats
Sourcepub fn canary_percentage(&self) -> f64
pub fn canary_percentage(&self) -> f64
Get canary routing percentage
Trait Implementations§
Source§impl Clone for CanaryStats
impl Clone for CanaryStats
Source§fn clone(&self) -> CanaryStats
fn clone(&self) -> CanaryStats
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 moreSource§impl Debug for CanaryStats
impl Debug for CanaryStats
Source§impl Default for CanaryStats
impl Default for CanaryStats
Source§fn default() -> CanaryStats
fn default() -> CanaryStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CanaryStats
impl<'de> Deserialize<'de> for CanaryStats
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 CanaryStats
impl RefUnwindSafe for CanaryStats
impl Send for CanaryStats
impl Sync for CanaryStats
impl Unpin for CanaryStats
impl UnsafeUnpin for CanaryStats
impl UnwindSafe for CanaryStats
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