pub struct Recorder { /* private fields */ }Implementations§
Source§impl Recorder
impl Recorder
pub async fn in_configuration_txn<F, T>(&self, f: F) -> Twhere
F: AsyncFnOnce(&Recorder) -> T,
pub async fn get_feature_variant<T: Serialize + DeserializeOwned + Debug + Send>( &self, key: impl Into<String> + Debug, ) -> Option<T>
pub async fn get_feature_ptr_variant<T: Serialize + DeserializeOwned + Send + Debug>( &self, key: impl Into<String> + Debug, ) -> Option<T>
pub async fn get_feature_payload<T: Serialize + DeserializeOwned + Send + Debug>( &self, key: impl Into<String> + Debug, ) -> Option<T>
pub async fn get_feature_ptr_payload<T: Serialize + DeserializeOwned + Send + Debug>( &self, key: impl Into<String> + Debug, ) -> Option<T>
pub async fn get_feature_ptr<T: Serialize + DeserializeOwned + Send + Debug>( &self, key: impl Into<String> + Debug, ) -> Option<Feature<T>>
pub async fn wait_for_checkin( &self, duration: Option<Duration>, ) -> Result<(), RecorderError>
pub async fn get_feature<T: Serialize + DeserializeOwned + Send + Debug>( &self, key: impl Into<String> + Debug, ) -> Option<Feature<T>>
pub async fn subscribe_to_feature_changes(&self) -> Option<Receiver<()>>
pub async fn set_fact(&self, key: impl Into<String> + Debug, value: Value)
pub async fn record( &self, event: impl Into<String> + Debug, properties: Option<Map>, )
pub async fn identify(&self, new: DistinctId)
pub async fn identify_with_properties( &self, new: DistinctId, properties: IdentifyProperties, )
pub async fn set_person_properties(&self, properties: IdentifyProperties)
pub async fn add_group( &self, group_name: impl Into<String> + Debug, group_member_id: impl Into<String> + Debug, )
pub async fn alias(&self, alias: impl Into<String> + Debug)
pub async fn reset(&self)
pub async fn flush_now(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Recorder
impl RefUnwindSafe for Recorder
impl Send for Recorder
impl Sync for Recorder
impl Unpin for Recorder
impl UnsafeUnpin for Recorder
impl UnwindSafe for Recorder
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