Struct fidl_fuchsia_archivist_test::PuppetProxy
source · pub struct PuppetProxy { /* private fields */ }
Implementations§
source§impl PuppetProxy
impl PuppetProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.archivist.test/Puppet.
sourcepub fn take_event_stream(&self) -> PuppetEventStream
pub fn take_event_stream(&self) -> PuppetEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn set_health_ok(&self) -> QueryResponseFut<()>
pub fn set_health_ok(&self) -> QueryResponseFut<()>
Emits a health inspect node with OK status.
sourcepub fn record_string(&self, key: &str, value: &str) -> QueryResponseFut<()>
pub fn record_string(&self, key: &str, value: &str) -> QueryResponseFut<()>
Records a string inspect property.
sourcepub fn record_int(&self, key: &str, value: i64) -> QueryResponseFut<()>
pub fn record_int(&self, key: &str, value: i64) -> QueryResponseFut<()>
Records an integer inspect property.
sourcepub fn emit_example_inspect_data(&self) -> QueryResponseFut<()>
pub fn emit_example_inspect_data(&self) -> QueryResponseFut<()>
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.
sourcepub fn println(&self, message: &str) -> QueryResponseFut<()>
pub fn println(&self, message: &str) -> QueryResponseFut<()>
Prints a message to stdout and appends a newline.
sourcepub fn eprintln(&self, message: &str) -> QueryResponseFut<()>
pub fn eprintln(&self, message: &str) -> QueryResponseFut<()>
Prints a message stderr and appends a newline.
sourcepub fn log(&self, payload: &LogPuppetLogRequest) -> QueryResponseFut<()>
pub fn log(&self, payload: &LogPuppetLogRequest) -> QueryResponseFut<()>
Emits a tracing event at the specified severity level.
sourcepub fn wait_for_interest_change(
&self
) -> QueryResponseFut<LogPuppetWaitForInterestChangeResponse>
pub fn wait_for_interest_change( &self ) -> QueryResponseFut<LogPuppetWaitForInterestChangeResponse>
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.
sourcepub fn record_lazy_values(
&self,
key: &str
) -> QueryResponseFut<ClientEnd<LazyInspectPuppetMarker>>
pub fn record_lazy_values( &self, key: &str ) -> QueryResponseFut<ClientEnd<LazyInspectPuppetMarker>>
Returns a LazyInspectPuppet client for recording lazy values.
Trait Implementations§
source§impl Clone for PuppetProxy
impl Clone for PuppetProxy
source§fn clone(&self) -> PuppetProxy
fn clone(&self) -> PuppetProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PuppetProxy
impl Debug for PuppetProxy
source§impl Proxy for PuppetProxy
impl Proxy for PuppetProxy
§type Protocol = PuppetMarker
type Protocol = PuppetMarker
Proxy
controls.