pub struct CrashReporterSynchronousProxy { /* private fields */ }
Implementations§
source§impl CrashReporterSynchronousProxy
impl CrashReporterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<CrashReporterEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<CrashReporterEvent, 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 file(
&self,
report: CrashReport,
___deadline: Time
) -> Result<CrashReporterFileResult, Error>
pub fn file( &self, report: CrashReport, ___deadline: Time ) -> Result<CrashReporterFileResult, Error>
Files a crash report
.
This could mean generating a crash report in a local crash report database or uploading the crash report to a remote crash server depending on the FIDL server’s configuration.
Deprecation
This method returns an immediate acknowledgement that the request was received. In practice this acknowledgement isn’t used and only returns an error if the program name is blank. By F12, FileReport should be used instead. FileReport will provide a useful status once the report has been successfully or unsuccessfully filed.
sourcepub fn file_report(
&self,
report: CrashReport,
___deadline: Time
) -> Result<CrashReporterFileReportResult, Error>
pub fn file_report( &self, report: CrashReport, ___deadline: Time ) -> Result<CrashReporterFileReportResult, Error>
Files a crash report
and gives the final result of the operation.
This could mean generating a crash report in a local crash report database or uploading the crash report to a remote crash server depending on the FIDL server’s configuration.
Warning: this could potentially take up to several minutes. Calling this function in a synchronous manner is not recommended.