Struct feature_probe_server_sdk::FeatureProbe
source · pub struct FeatureProbe { /* private fields */ }
Implementations§
source§impl FeatureProbe
impl FeatureProbe
pub fn new(config: FPConfig) -> Self
pub fn new_for_test(toggle: &str, value: Value) -> Self
pub fn new_for_tests(toggles: HashMap<String, Value>) -> Self
pub fn bool_value(&self, toggle: &str, user: &FPUser, default: bool) -> bool
pub fn string_value( &self, toggle: &str, user: &FPUser, default: String ) -> String
pub fn number_value(&self, toggle: &str, user: &FPUser, default: f64) -> f64
pub fn json_value(&self, toggle: &str, user: &FPUser, default: Value) -> Value
pub fn bool_detail( &self, toggle: &str, user: &FPUser, default: bool ) -> FPDetail<bool>
pub fn string_detail( &self, toggle: &str, user: &FPUser, default: String ) -> FPDetail<String>
pub fn number_detail( &self, toggle: &str, user: &FPUser, default: f64 ) -> FPDetail<f64>
pub fn json_detail( &self, toggle: &str, user: &FPUser, default: Value ) -> FPDetail<Value>
pub fn track(&self, event_name: &str, user: &FPUser, value: Option<f64>)
pub fn new_with(server_key: String, repo: Repository) -> Self
pub fn close(&self)
pub fn initialized(&self) -> bool
pub fn set_update_callback( &mut self, update_callback: Box<dyn Fn(Repository, Repository, SyncType) + Send> )
pub fn version(&self) -> Option<u128>
pub fn sync_now(&self, t: SyncType)
Trait Implementations§
source§impl Clone for FeatureProbe
impl Clone for FeatureProbe
source§fn clone(&self) -> FeatureProbe
fn clone(&self) -> FeatureProbe
Returns a copy 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 FeatureProbe
impl Debug for FeatureProbe
source§impl Default for FeatureProbe
impl Default for FeatureProbe
source§fn default() -> FeatureProbe
fn default() -> FeatureProbe
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FeatureProbe
impl !RefUnwindSafe for FeatureProbe
impl Send for FeatureProbe
impl Sync for FeatureProbe
impl Unpin for FeatureProbe
impl !UnwindSafe for FeatureProbe
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