pub struct MetricEventLoggerFactorySynchronousProxy { /* private fields */ }
Implementations§
source§impl MetricEventLoggerFactorySynchronousProxy
impl MetricEventLoggerFactorySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MetricEventLoggerFactoryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MetricEventLoggerFactoryEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn create_metric_event_logger(
&self,
project_spec: &ProjectSpec,
logger: ServerEnd<MetricEventLoggerMarker>,
___deadline: MonotonicInstant,
) -> Result<MetricEventLoggerFactoryCreateMetricEventLoggerResult, Error>
pub fn create_metric_event_logger( &self, project_spec: &ProjectSpec, logger: ServerEnd<MetricEventLoggerMarker>, ___deadline: MonotonicInstant, ) -> Result<MetricEventLoggerFactoryCreateMetricEventLoggerResult, Error>
Create a MetricEventLogger for the project specified by project_spec
.
sourcepub fn create_metric_event_logger_with_experiments(
&self,
project_spec: &ProjectSpec,
experiment_ids: &[u32],
logger: ServerEnd<MetricEventLoggerMarker>,
___deadline: MonotonicInstant,
) -> Result<MetricEventLoggerFactoryCreateMetricEventLoggerWithExperimentsResult, Error>
pub fn create_metric_event_logger_with_experiments( &self, project_spec: &ProjectSpec, experiment_ids: &[u32], logger: ServerEnd<MetricEventLoggerMarker>, ___deadline: MonotonicInstant, ) -> Result<MetricEventLoggerFactoryCreateMetricEventLoggerWithExperimentsResult, Error>
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.
Trait Implementations§
source§impl SynchronousProxy for MetricEventLoggerFactorySynchronousProxy
impl SynchronousProxy for MetricEventLoggerFactorySynchronousProxy
§type Proxy = MetricEventLoggerFactoryProxy
type Proxy = MetricEventLoggerFactoryProxy
The async proxy for the same protocol.
§type Protocol = MetricEventLoggerFactoryMarker
type Protocol = MetricEventLoggerFactoryMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for MetricEventLoggerFactorySynchronousProxy
impl RefUnwindSafe for MetricEventLoggerFactorySynchronousProxy
impl Send for MetricEventLoggerFactorySynchronousProxy
impl Sync for MetricEventLoggerFactorySynchronousProxy
impl Unpin for MetricEventLoggerFactorySynchronousProxy
impl UnwindSafe for MetricEventLoggerFactorySynchronousProxy
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