pub enum CrashReportingProductRegisterRequest {
Upsert {
component_url: String,
product: CrashReportingProduct,
control_handle: CrashReportingProductRegisterControlHandle,
},
UpsertWithAck {
component_url: String,
product: CrashReportingProduct,
responder: CrashReportingProductRegisterUpsertWithAckResponder,
},
}
Expand description
Allows a component to choose a different crash reporting product to file crashes for that component under.
By default, all crashes detected by the platform are filed under a single product on the crash server. This API allows components to choose their own product while still benefiting from the platform’s exception handling and crash reporting.
Variants§
Upsert
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.
UpsertWithAck
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.
Fields
product: CrashReportingProduct
Implementations§
Source§impl CrashReportingProductRegisterRequest
impl CrashReportingProductRegisterRequest
pub fn into_upsert( self, ) -> Option<(String, CrashReportingProduct, CrashReportingProductRegisterControlHandle)>
pub fn into_upsert_with_ack( self, ) -> Option<(String, CrashReportingProduct, CrashReportingProductRegisterUpsertWithAckResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL