Function launchdarkly_server_sdk_evaluation::evaluate

source ยท
pub fn evaluate<'a>(
    store: &'a dyn Store,
    flag: &'a Flag,
    context: &'a Context,
    prerequisite_event_recorder: Option<&dyn PrerequisiteEventRecorder>,
) -> Detail<&'a FlagValue>
Expand description

Evaluate a feature flag for the specified Context.

The evaluator does not know anything about analytics events; generating any appropriate analytics events is the responsibility of the caller. The caller can provide an optional PrerequisiteEventRecorder which will be notified if any additional evaluations were done due to prerequisites.