#[non_exhaustive]pub enum EvaluationError {
TypeMismatch {
expected: VariationType,
found: VariationType,
},
UnexpectedConfigurationError,
UnexpectedConfigurationParseError,
}
Expand description
Enum representing possible errors that can occur during evaluation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TypeMismatch
Requested flag has invalid type.
Fields
§
expected: VariationType
Expected type of the flag.
§
found: VariationType
Actual type of the flag.
UnexpectedConfigurationError
Configuration received from the server is invalid for the SDK. This should normally never happen and is likely a signal that you should update SDK.
UnexpectedConfigurationParseError
An error occurred while parsing the configuration (server sent unexpected response). It is recommended to upgrade the Eppo SDK.
Trait Implementations§
Source§impl Clone for EvaluationError
impl Clone for EvaluationError
Source§fn clone(&self) -> EvaluationError
fn clone(&self) -> EvaluationError
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 EvaluationError
impl Debug for EvaluationError
Source§impl<'de> Deserialize<'de> for EvaluationError
impl<'de> Deserialize<'de> for EvaluationError
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
Source§impl Display for EvaluationError
impl Display for EvaluationError
Source§impl Error for EvaluationError
impl Error for EvaluationError
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 From<EvaluationError> for BanditEvaluationCode
impl From<EvaluationError> for BanditEvaluationCode
Source§fn from(value: EvaluationError) -> Self
fn from(value: EvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<EvaluationError> for FlagEvaluationCode
impl From<EvaluationError> for FlagEvaluationCode
Source§fn from(value: EvaluationError) -> Self
fn from(value: EvaluationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EvaluationError
impl PartialEq for EvaluationError
Source§impl Serialize for EvaluationError
impl Serialize for EvaluationError
impl Copy for EvaluationError
impl StructuralPartialEq for EvaluationError
Auto Trait Implementations§
impl Freeze for EvaluationError
impl RefUnwindSafe for EvaluationError
impl Send for EvaluationError
impl Sync for EvaluationError
impl Unpin for EvaluationError
impl UnwindSafe for EvaluationError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.