pub struct CrashReporterProxy { /* private fields */ }
Implementations§
source§impl CrashReporterProxy
impl CrashReporterProxy
sourcepub fn take_event_stream(&self) -> CrashReporterEventStream
pub fn take_event_stream(&self) -> CrashReporterEventStream
Get a Stream of events from the remote end of the CrashReporter protocol
Panics
Panics if the event stream was already taken.
sourcepub fn file(
&self,
report: CrashReport
) -> QueryResponseFut<CrashReporterFileResult>
pub fn file( &self, report: CrashReport ) -> QueryResponseFut<CrashReporterFileResult>
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
) -> QueryResponseFut<CrashReporterFileReportResult>
pub fn file_report( &self, report: CrashReport ) -> QueryResponseFut<CrashReporterFileReportResult>
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.
Trait Implementations§
source§impl Clone for CrashReporterProxy
impl Clone for CrashReporterProxy
source§fn clone(&self) -> CrashReporterProxy
fn clone(&self) -> CrashReporterProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl CrashReporterProxyInterface for CrashReporterProxy
impl CrashReporterProxyInterface for CrashReporterProxy
type FileResponseFut = QueryResponseFut<Result<(), i32>>
fn file(&self, report: CrashReport) -> Self::FileResponseFut
type FileReportResponseFut = QueryResponseFut<Result<FileReportResults, FilingError>>
fn file_report(&self, report: CrashReport) -> Self::FileReportResponseFut
source§impl Debug for CrashReporterProxy
impl Debug for CrashReporterProxy
source§impl Proxy for CrashReporterProxy
impl Proxy for CrashReporterProxy
§type Protocol = CrashReporterMarker
type Protocol = CrashReporterMarker
Proxy
controls.