pub enum AnalyticsError {
InvalidSession,
InvalidInput(String),
InsufficientData(String),
StatisticalError(String),
ConfigError(String),
NoVariants(String),
InvalidWeights(String),
}Expand description
Errors produced by media engagement analytics operations.
Variants§
InvalidSession
The viewer session is invalid or malformed.
InvalidInput(String)
An input value is invalid (bad range, empty slice, etc.).
InsufficientData(String)
Not enough data to perform the requested analysis.
StatisticalError(String)
A statistical computation failed.
ConfigError(String)
Configuration is invalid or missing.
NoVariants(String)
The experiment has no variants defined.
InvalidWeights(String)
All variant allocation weights are zero or negative.
Trait Implementations§
Source§impl Clone for AnalyticsError
impl Clone for AnalyticsError
Source§fn clone(&self) -> AnalyticsError
fn clone(&self) -> AnalyticsError
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 AnalyticsError
impl Debug for AnalyticsError
Source§impl Display for AnalyticsError
impl Display for AnalyticsError
Source§impl Error for AnalyticsError
impl Error for AnalyticsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AnalyticsError
impl PartialEq for AnalyticsError
Source§fn eq(&self, other: &AnalyticsError) -> bool
fn eq(&self, other: &AnalyticsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AnalyticsError
Auto Trait Implementations§
impl Freeze for AnalyticsError
impl RefUnwindSafe for AnalyticsError
impl Send for AnalyticsError
impl Sync for AnalyticsError
impl Unpin for AnalyticsError
impl UnsafeUnpin for AnalyticsError
impl UnwindSafe for AnalyticsError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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