pub struct CrashReportingProductRegisterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CrashReportingProductRegisterSynchronousProxy
impl CrashReportingProductRegisterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CrashReportingProductRegisterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CrashReportingProductRegisterEvent, 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 upsert(
&self,
component_url: &str,
product: &CrashReportingProduct,
) -> Result<(), Error>
pub fn upsert( &self, component_url: &str, product: &CrashReportingProduct, ) -> Result<(), Error>
Upserts, i.e. updates or inserts, a crash reporting product for a given component URL.
A subsequent call to Upsert() for the same component URL overwrites the
CrashReportingProduct
for that component.
Prefer UpsertWithAck() if the component also files crash reports itself, to avoid race conditions and mis-attribution.
Sourcepub fn upsert_with_ack(
&self,
component_url: &str,
product: &CrashReportingProduct,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn upsert_with_ack( &self, component_url: &str, product: &CrashReportingProduct, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Upserts (see above) and notifies the client when the operation is complete.
This allows clients to prevent races between filing crash reports and calls to Upsert. Otherwise if a crash report is filed before the upsert completes, the crash report will be attributed to the wrong product, leading to potentially incorrect crash data.
Trait Implementations§
Source§impl From<Channel> for CrashReportingProductRegisterSynchronousProxy
impl From<Channel> for CrashReportingProductRegisterSynchronousProxy
Source§impl From<CrashReportingProductRegisterSynchronousProxy> for Handle
impl From<CrashReportingProductRegisterSynchronousProxy> for Handle
Source§fn from(value: CrashReportingProductRegisterSynchronousProxy) -> Self
fn from(value: CrashReportingProductRegisterSynchronousProxy) -> Self
Source§impl SynchronousProxy for CrashReportingProductRegisterSynchronousProxy
impl SynchronousProxy for CrashReportingProductRegisterSynchronousProxy
Source§type Proxy = CrashReportingProductRegisterProxy
type Proxy = CrashReportingProductRegisterProxy
Source§type Protocol = CrashReportingProductRegisterMarker
type Protocol = CrashReportingProductRegisterMarker
Proxy
controls.