pub struct ValidateSynchronousProxy { /* private fields */ }
Implementations§
source§impl ValidateSynchronousProxy
impl ValidateSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<ValidateEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<ValidateEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn initialize(
&self,
params: InitializationParams,
___deadline: Time
) -> Result<(Option<Handle>, TestResult), Error>
pub fn initialize( &self, params: InitializationParams, ___deadline: Time ) -> Result<(Option<Handle>, TestResult), Error>
Initializes the Inspect library being tested by the puppet.
sourcepub fn initialize_tree(
&self,
params: InitializationParams,
___deadline: Time
) -> Result<(Option<ClientEnd<TreeMarker>>, TestResult), Error>
pub fn initialize_tree( &self, params: InitializationParams, ___deadline: Time ) -> Result<(Option<ClientEnd<TreeMarker>>, TestResult), Error>
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.
sourcepub fn publish(&self, ___deadline: Time) -> Result<TestResult, Error>
pub fn publish(&self, ___deadline: Time) -> Result<TestResult, Error>
Instruct the puppet to expose its current data in its out/diagnostics directory.
Note: It is an error for more than one Validate connection to Publish at once. Unpublish must be called to cleanup.
sourcepub fn unpublish(&self, ___deadline: Time) -> Result<TestResult, Error>
pub fn unpublish(&self, ___deadline: Time) -> Result<TestResult, Error>
Instruct the puppet to unpublish any data it currently has present in out/diagnostics.
sourcepub fn act(
&self,
action: &mut Action,
___deadline: Time
) -> Result<TestResult, Error>
pub fn act( &self, action: &mut Action, ___deadline: Time ) -> Result<TestResult, Error>
Modifies the contents of the VMO.
sourcepub fn act_lazy(
&self,
lazy_action: &mut LazyAction,
___deadline: Time
) -> Result<TestResult, Error>
pub fn act_lazy( &self, lazy_action: &mut LazyAction, ___deadline: Time ) -> Result<TestResult, Error>
Modifies the contents of a lazy node.