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,
},
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
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
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: 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_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
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LazyInspectPuppetRequest
impl !RefUnwindSafe for LazyInspectPuppetRequest
impl Send for LazyInspectPuppetRequest
impl Sync for LazyInspectPuppetRequest
impl Unpin for LazyInspectPuppetRequest
impl !UnwindSafe for LazyInspectPuppetRequest
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