pub struct CrashReportingProductRegisterProxy { /* private fields */ }
Implementations§
Source§impl CrashReportingProductRegisterProxy
impl CrashReportingProductRegisterProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.feedback/CrashReportingProductRegister.
Sourcepub fn take_event_stream(&self) -> CrashReportingProductRegisterEventStream
pub fn take_event_stream(&self) -> CrashReportingProductRegisterEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
pub fn upsert_with_ack( &self, component_url: &str, product: &CrashReportingProduct, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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 Clone for CrashReportingProductRegisterProxy
impl Clone for CrashReportingProductRegisterProxy
Source§fn clone(&self) -> CrashReportingProductRegisterProxy
fn clone(&self) -> CrashReportingProductRegisterProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl CrashReportingProductRegisterProxyInterface for CrashReportingProductRegisterProxy
impl CrashReportingProductRegisterProxyInterface for CrashReportingProductRegisterProxy
type UpsertWithAckResponseFut = QueryResponseFut<()>
fn upsert( &self, component_url: &str, product: &CrashReportingProduct, ) -> Result<(), Error>
fn upsert_with_ack( &self, component_url: &str, product: &CrashReportingProduct, ) -> Self::UpsertWithAckResponseFut
Source§impl Proxy for CrashReportingProductRegisterProxy
impl Proxy for CrashReportingProductRegisterProxy
Source§type Protocol = CrashReportingProductRegisterMarker
type Protocol = CrashReportingProductRegisterMarker
Proxy
controls.