pub enum PuppetRequest {
CreateInspector {
payload: InspectPuppetCreateInspectorRequest,
responder: PuppetCreateInspectorResponder,
},
Println {
message: String,
responder: PuppetPrintlnResponder,
},
Eprintln {
message: String,
responder: PuppetEprintlnResponder,
},
Log {
payload: LogPuppetLogRequest,
responder: PuppetLogResponder,
},
WaitForInterestChange {
responder: PuppetWaitForInterestChangeResponder,
},
RecordLazyValues {
key: String,
responder: PuppetRecordLazyValuesResponder,
},
Crash {
message: String,
control_handle: PuppetControlHandle,
},
_UnknownMethod {
ordinal: u64,
control_handle: PuppetControlHandle,
method_type: MethodType,
},
}
Expand description
Puppet is testing component that interacts with Archivist.
For full documentation see //src/diagnostics/testing/realm-factory/README.md.
Variants§
CreateInspector
Create and serve an Inspector with the provided name. InspectWriters created this way are RAII.
Println
Prints a message to stdout and appends a newline.
Eprintln
Prints a message stderr and appends a newline.
Log
Emits a tracing event at the specified severity level.
WaitForInterestChange
Blocks the caller until the next time an interest change event is observed. Messages are lost if they are emitted using LogPuppet.Log before the puppet has observed the the interest change.
Fields
responder: PuppetWaitForInterestChangeResponder
RecordLazyValues
Returns a LazyInspectPuppet client for recording lazy values.
Crash
Causes the puppet to crash with an optional error message.
The connection will be closed after this is called.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: PuppetControlHandle
method_type: MethodType
Implementations§
Source§impl PuppetRequest
impl PuppetRequest
pub fn into_create_inspector( self, ) -> Option<(InspectPuppetCreateInspectorRequest, PuppetCreateInspectorResponder)>
pub fn into_println(self) -> Option<(String, PuppetPrintlnResponder)>
pub fn into_eprintln(self) -> Option<(String, PuppetEprintlnResponder)>
pub fn into_log(self) -> Option<(LogPuppetLogRequest, PuppetLogResponder)>
pub fn into_wait_for_interest_change( self, ) -> Option<PuppetWaitForInterestChangeResponder>
pub fn into_record_lazy_values( self, ) -> Option<(String, PuppetRecordLazyValuesResponder)>
pub fn into_crash(self) -> Option<(String, PuppetControlHandle)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL