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
Source§type Proxy = MetricEventLoggerFactoryProxy
type Proxy = MetricEventLoggerFactoryProxy
The async proxy for the same protocol.
Source§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