Trait MetricsHandler

Source
pub trait MetricsHandler: Send + Sync {
    // Required methods
    fn record_enrollment_statuses(
        &self,
        enrollment_status_extras: Vec<EnrollmentStatusExtraDef>,
    );
    fn record_feature_activation(&self, event: FeatureExposureExtraDef);
    fn record_feature_exposure(&self, event: FeatureExposureExtraDef);
    fn record_malformed_feature_config(
        &self,
        event: MalformedFeatureConfigExtraDef,
    );
}

Required Methods§

Trait Implementations§

Source§

impl<UT> LiftRef<UT> for Box<dyn MetricsHandler>

Source§

impl<UT> LiftReturn<UT> for Box<dyn MetricsHandler>

Source§

type ReturnType = <Box<dyn MetricsHandler> as Lift<UT>>::FfiType

FFI return type for trait interfaces
Source§

fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>

Lift a successfully returned value from a trait interface
§

fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self

Lift a foreign returned value from a trait interface Read more
§

fn lift_error(_buf: RustBuffer) -> Self

Lift a Rust value for a callback interface method error result Read more
§

fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self

Lift a Rust value for an unexpected callback interface error Read more

Implementors§