pub enum InspectWriterRequest {
SetHealthOk {
responder: InspectWriterSetHealthOkResponder,
},
RecordString {
key: String,
value: String,
responder: InspectWriterRecordStringResponder,
},
RecordInt {
key: String,
value: i64,
responder: InspectWriterRecordIntResponder,
},
EmitExampleInspectData {
responder: InspectWriterEmitExampleInspectDataResponder,
},
EscrowAndExit {
payload: InspectWriterEscrowAndExitRequest,
responder: InspectWriterEscrowAndExitResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: InspectWriterControlHandle,
method_type: MethodType,
},
}
Expand description
InspectWriter emits inspect data when requested.
Values are always reported on the root inspect node.
Variants§
SetHealthOk
Emits a health inspect node with OK status.
Fields
§
responder: InspectWriterSetHealthOkResponder
RecordString
Records a string inspect property.
RecordInt
Records an integer inspect property.
EmitExampleInspectData
Emits a collection of example of inspect data.
TODO(https://fuchsia.dev/302716196): Split this into several methods tests can call to explicitly emit the same data as this method.
Fields
EscrowAndExit
Escrow the current inspect data and immediately exit afterwards.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
control_handle: InspectWriterControlHandle
§
method_type: MethodType
Implementations§
source§impl InspectWriterRequest
impl InspectWriterRequest
pub fn into_set_health_ok(self) -> Option<InspectWriterSetHealthOkResponder>
pub fn into_record_string( self, ) -> Option<(String, String, InspectWriterRecordStringResponder)>
pub fn into_record_int( self, ) -> Option<(String, i64, InspectWriterRecordIntResponder)>
pub fn into_emit_example_inspect_data( self, ) -> Option<InspectWriterEmitExampleInspectDataResponder>
pub fn into_escrow_and_exit( self, ) -> Option<(InspectWriterEscrowAndExitRequest, InspectWriterEscrowAndExitResponder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InspectWriterRequest
impl !RefUnwindSafe for InspectWriterRequest
impl Send for InspectWriterRequest
impl Sync for InspectWriterRequest
impl Unpin for InspectWriterRequest
impl !UnwindSafe for InspectWriterRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more