pub enum FeatureFlagError {
Parse(Error),
Io {
path: PathBuf,
source: Error,
},
Invalid(String),
UnknownFlag(String),
}Expand description
Anything that can go wrong inside the crate.
Variants§
Parse(Error)
Failed to parse a JSON flagset.
Io
Failed to read a flagset file.
Invalid(String)
The flagset is structurally valid but invalid as a logical config (e.g. a rollout that totals > 100, a variant referenced from a rule that doesn’t appear in the flag’s variants list).
UnknownFlag(String)
Asked to evaluate a flag that isn’t in the loaded flagset. The caller’s
default value is returned via the Evaluation::Default outcome.
Trait Implementations§
Source§impl Debug for FeatureFlagError
impl Debug for FeatureFlagError
Source§impl Display for FeatureFlagError
impl Display for FeatureFlagError
Source§impl Error for FeatureFlagError
impl Error for FeatureFlagError
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()
Auto Trait Implementations§
impl Freeze for FeatureFlagError
impl !RefUnwindSafe for FeatureFlagError
impl Send for FeatureFlagError
impl Sync for FeatureFlagError
impl Unpin for FeatureFlagError
impl UnsafeUnpin for FeatureFlagError
impl !UnwindSafe for FeatureFlagError
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