pub enum InspectPuppetRequest {
Initialize {
params: InitializationParams,
responder: InspectPuppetInitializeResponder,
},
GetConfig {
responder: InspectPuppetGetConfigResponder,
},
InitializeTree {
params: InitializationParams,
responder: InspectPuppetInitializeTreeResponder,
},
Publish {
responder: InspectPuppetPublishResponder,
},
Act {
action: Action,
responder: InspectPuppetActResponder,
},
ActLazy {
lazy_action: LazyAction,
responder: InspectPuppetActLazyResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: InspectPuppetControlHandle,
method_type: MethodType,
},
}
Variants§
Initialize
Initializes the Inspect library being tested by the puppet.
GetConfig
Provides configuration values for the validator.
Fields
§
responder: InspectPuppetGetConfigResponder
InitializeTree
Use instead of Initialize
on puppets which support the Tree / Lazy method of getting VMOs.
The root VMO can be obtained via the returned Tree protocol.
Publish
Instruct the puppet to publish its current data over InspectSink.
Note: It is an error for more than one Validate connection to Publish at once. Unpublish must be called to cleanup.
Fields
§
responder: InspectPuppetPublishResponder
Act
Modifies the contents of the VMO.
ActLazy
Modifies the contents of a lazy node.
_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_initialize( self, ) -> Option<(InitializationParams, InspectPuppetInitializeResponder)>
pub fn into_get_config(self) -> Option<InspectPuppetGetConfigResponder>
pub fn into_initialize_tree( self, ) -> Option<(InitializationParams, InspectPuppetInitializeTreeResponder)>
pub fn into_publish(self) -> Option<InspectPuppetPublishResponder>
pub fn into_act(self) -> Option<(Action, InspectPuppetActResponder)>
pub fn into_act_lazy( self, ) -> Option<(LazyAction, InspectPuppetActLazyResponder)>
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