pub enum DataProviderRequest {
GetSnapshot {
params: GetSnapshotParameters,
responder: DataProviderGetSnapshotResponder,
},
GetAnnotations {
params: GetAnnotationsParameters,
responder: DataProviderGetAnnotationsResponder,
},
}
Expand description
Provides data useful to attach to feedback reports, e.g., a crash report filed by the system, a user feedback report filed by a user or a bug report filed by a developer.
Variants§
GetSnapshot
Returns a snapshot of the device’s state.
snapshot
may be empty if there was an issue generating the snapshot.
GetAnnotations
Returns a set of annotations about the device’s state.
annotations
may be empty if there was an issue collecting them.
These are the same annotations as provided through GetSnapshot() - some clients only want the annotations while others want both the annotations and the snapshot and generating the snapshot can take significantly more time than collecting the annotations, e.g., logs are only part of the snapshot and not part of the annotations and can take some time.
Implementations§
Source§impl DataProviderRequest
impl DataProviderRequest
pub fn into_get_snapshot( self, ) -> Option<(GetSnapshotParameters, DataProviderGetSnapshotResponder)>
pub fn into_get_annotations( self, ) -> Option<(GetAnnotationsParameters, DataProviderGetAnnotationsResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL