pub enum EvaluationErrorCode {
ProviderNotReady,
FlagNotFound,
ParseError,
TypeMismatch,
TargetingKeyMissing,
InvalidContext,
General(String),
}
Expand description
An enumerated error code represented idiomatically in the implementation language.
Variants§
ProviderNotReady
The value was resolved before the provider was initialized.
FlagNotFound
The flag could not be found.
ParseError
An error was encountered parsing data, such as a flag configuration.
TypeMismatch
The type of the flag value does not match the expected type.
TargetingKeyMissing
The provider requires a targeting key and one was not provided in the evaluation context.
InvalidContext
The evaluation context does not meet provider requirements.
General(String)
The error was for a reason not enumerated above.
Trait Implementations§
Source§impl Clone for EvaluationErrorCode
impl Clone for EvaluationErrorCode
Source§fn clone(&self) -> EvaluationErrorCode
fn clone(&self) -> EvaluationErrorCode
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 EvaluationErrorCode
impl Debug for EvaluationErrorCode
Source§impl Display for EvaluationErrorCode
impl Display for EvaluationErrorCode
Source§impl Error for EvaluationErrorCode
impl Error for EvaluationErrorCode
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 EvaluationErrorCode
impl PartialEq for EvaluationErrorCode
impl Eq for EvaluationErrorCode
impl StructuralPartialEq for EvaluationErrorCode
Auto Trait Implementations§
impl Freeze for EvaluationErrorCode
impl RefUnwindSafe for EvaluationErrorCode
impl Send for EvaluationErrorCode
impl Sync for EvaluationErrorCode
impl Unpin for EvaluationErrorCode
impl UnwindSafe for EvaluationErrorCode
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