pub enum LazyInspectPuppetRequest {
SetHealthOk {
responder: LazyInspectPuppetSetHealthOkResponder,
},
RecordString {
key: String,
value: String,
responder: LazyInspectPuppetRecordStringResponder,
},
RecordInt {
key: String,
value: i64,
responder: LazyInspectPuppetRecordIntResponder,
},
EmitExampleInspectData {
responder: LazyInspectPuppetEmitExampleInspectDataResponder,
},
EscrowAndExit {
payload: InspectWriterEscrowAndExitRequest,
responder: LazyInspectPuppetEscrowAndExitResponder,
},
RecordLazyValues {
key: String,
responder: LazyInspectPuppetRecordLazyValuesResponder,
},
Commit {
options: CommitOptions,
responder: LazyInspectPuppetCommitResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: LazyInspectPuppetControlHandle,
method_type: MethodType,
},
}
Expand description
Records values on a lazy inspect node.
If this connection is dropped before [CommitLazyValues
] is called, no
values are recorded.
Values are always reported on the root inspect node.
Variants§
SetHealthOk
Emits a health inspect node with OK status.
Fields
responder: LazyInspectPuppetSetHealthOkResponder
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.
Fields
payload: InspectWriterEscrowAndExitRequest
responder: LazyInspectPuppetEscrowAndExitResponder
RecordLazyValues
Returns a LazyInspectPuppet client for recording lazy values.
Commit
Reports all recorded values on the root node.
The server will close the connection after this method is called.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: LazyInspectPuppetControlHandle
method_type: MethodType
Implementations§
Source§impl LazyInspectPuppetRequest
impl LazyInspectPuppetRequest
pub fn into_set_health_ok(self) -> Option<LazyInspectPuppetSetHealthOkResponder>
pub fn into_record_string( self, ) -> Option<(String, String, LazyInspectPuppetRecordStringResponder)>
pub fn into_record_int( self, ) -> Option<(String, i64, LazyInspectPuppetRecordIntResponder)>
pub fn into_emit_example_inspect_data( self, ) -> Option<LazyInspectPuppetEmitExampleInspectDataResponder>
pub fn into_escrow_and_exit( self, ) -> Option<(InspectWriterEscrowAndExitRequest, LazyInspectPuppetEscrowAndExitResponder)>
pub fn into_record_lazy_values( self, ) -> Option<(String, LazyInspectPuppetRecordLazyValuesResponder)>
pub fn into_commit( self, ) -> Option<(CommitOptions, LazyInspectPuppetCommitResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL