pub struct EngineState {
pub started: DateTime<Utc>,
/* private fields */
}
Fields§
§started: DateTime<Utc>
Implementations§
Source§impl EngineState
impl EngineState
pub fn count_toggle(&self, name: &str, enabled: bool)
pub fn count_variant(&self, toggle_name: &str, variant: &str)
pub fn get_metrics(&mut self) -> Option<MetricBucket>
pub fn resolve_all( &self, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> Option<HashMap<String, ResolvedToggle>>
pub fn resolve( &self, name: &str, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> Option<ResolvedToggle>
pub fn list_known_toggles(&self) -> Vec<ToggleDefinition>
pub fn should_emit_impression_event(&self, name: &str) -> bool
pub fn check_enabled( &self, name: &str, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> Option<bool>
pub fn is_enabled( &self, name: &str, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> bool
pub fn check_variant( &self, name: &str, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> Option<VariantDef>
pub fn get_variant( &self, name: &str, context: &Context, external_values: &Option<HashMap<String, bool>>, ) -> ExtendedVariantDef
pub fn take_state( &mut self, toggles: ClientFeatures, ) -> Option<Vec<EvalWarning>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngineState
impl !RefUnwindSafe for EngineState
impl Send for EngineState
impl Sync for EngineState
impl Unpin for EngineState
impl !UnwindSafe for EngineState
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