pub struct ValidateProxy { /* private fields */ }
Implementations§
source§impl ValidateProxy
impl ValidateProxy
sourcepub fn take_event_stream(&self) -> ValidateEventStream
pub fn take_event_stream(&self) -> ValidateEventStream
Get a Stream of events from the remote end of the Validate protocol
Panics
Panics if the event stream was already taken.
sourcepub fn initialize(
&self,
params: InitializationParams
) -> QueryResponseFut<(Option<Handle>, TestResult)>
pub fn initialize( &self, params: InitializationParams ) -> QueryResponseFut<(Option<Handle>, TestResult)>
Initializes the Inspect library being tested by the puppet.
sourcepub fn initialize_tree(
&self,
params: InitializationParams
) -> QueryResponseFut<(Option<ClientEnd<TreeMarker>>, TestResult)>
pub fn initialize_tree( &self, params: InitializationParams ) -> QueryResponseFut<(Option<ClientEnd<TreeMarker>>, TestResult)>
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) -> QueryResponseFut<TestResult>
pub fn publish(&self) -> QueryResponseFut<TestResult>
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) -> QueryResponseFut<TestResult>
pub fn unpublish(&self) -> QueryResponseFut<TestResult>
Instruct the puppet to unpublish any data it currently has present in out/diagnostics.
sourcepub fn act(&self, action: &mut Action) -> QueryResponseFut<TestResult>
pub fn act(&self, action: &mut Action) -> QueryResponseFut<TestResult>
Modifies the contents of the VMO.
sourcepub fn act_lazy(
&self,
lazy_action: &mut LazyAction
) -> QueryResponseFut<TestResult>
pub fn act_lazy( &self, lazy_action: &mut LazyAction ) -> QueryResponseFut<TestResult>
Modifies the contents of a lazy node.
Trait Implementations§
source§impl Clone for ValidateProxy
impl Clone for ValidateProxy
source§fn clone(&self) -> ValidateProxy
fn clone(&self) -> ValidateProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ValidateProxy
impl Debug for ValidateProxy
source§impl Proxy for ValidateProxy
impl Proxy for ValidateProxy
§type Protocol = ValidateMarker
type Protocol = ValidateMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more