pub enum MetricEventLoggerFactoryRequest {
CreateMetricEventLogger {
project_spec: ProjectSpec,
logger: ServerEnd<MetricEventLoggerMarker>,
responder: MetricEventLoggerFactoryCreateMetricEventLoggerResponder,
},
CreateMetricEventLoggerWithExperiments {
project_spec: ProjectSpec,
experiment_ids: Vec<u32>,
logger: ServerEnd<MetricEventLoggerMarker>,
responder: MetricEventLoggerFactoryCreateMetricEventLoggerWithExperimentsResponder,
},
}
Expand description
A factory that is used to create a MetricEventLogger for a specific project.
Variants§
CreateMetricEventLogger
Create a MetricEventLogger for the project specified by project_spec
.
CreateMetricEventLoggerWithExperiments
Create a MetricEventLogger with experiment metadata.
This temporary method exposes experiment data to Cobalt directly from components. In the future, experiment state will be managed by the system and passed directly to Cobalt. Contact the Cobalt team before using this interface.
To update experiment state create a new logger.
Implementations§
Source§impl MetricEventLoggerFactoryRequest
impl MetricEventLoggerFactoryRequest
pub fn into_create_metric_event_logger( self, ) -> Option<(ProjectSpec, ServerEnd<MetricEventLoggerMarker>, MetricEventLoggerFactoryCreateMetricEventLoggerResponder)>
pub fn into_create_metric_event_logger_with_experiments( self, ) -> Option<(ProjectSpec, Vec<u32>, ServerEnd<MetricEventLoggerMarker>, MetricEventLoggerFactoryCreateMetricEventLoggerWithExperimentsResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricEventLoggerFactoryRequest
impl !RefUnwindSafe for MetricEventLoggerFactoryRequest
impl Send for MetricEventLoggerFactoryRequest
impl Sync for MetricEventLoggerFactoryRequest
impl Unpin for MetricEventLoggerFactoryRequest
impl !UnwindSafe for MetricEventLoggerFactoryRequest
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