pub enum InspectPuppetRequest {
SetHealthOk {
responder: InspectPuppetSetHealthOkResponder,
},
RecordString {
key: String,
value: String,
responder: InspectPuppetRecordStringResponder,
},
RecordInt {
key: String,
value: i64,
responder: InspectPuppetRecordIntResponder,
},
EmitExampleInspectData {
responder: InspectPuppetEmitExampleInspectDataResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: InspectPuppetControlHandle,
method_type: MethodType,
},
}
Expand description
InspectPuppet 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: InspectPuppetSetHealthOkResponder
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
_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: InspectPuppetControlHandle
§
method_type: MethodType
Implementations§
source§impl InspectPuppetRequest
impl InspectPuppetRequest
pub fn into_set_health_ok(self) -> Option<InspectPuppetSetHealthOkResponder>
pub fn into_record_string( self ) -> Option<(String, String, InspectPuppetRecordStringResponder)>
pub fn into_record_int( self ) -> Option<(String, i64, InspectPuppetRecordIntResponder)>
pub fn into_emit_example_inspect_data( self ) -> Option<InspectPuppetEmitExampleInspectDataResponder>
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 InspectPuppetRequest
impl !RefUnwindSafe for InspectPuppetRequest
impl Send for InspectPuppetRequest
impl Sync for InspectPuppetRequest
impl Unpin for InspectPuppetRequest
impl !UnwindSafe for InspectPuppetRequest
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