pub struct PuppetSynchronousProxy { /* private fields */ }
Implementations§
source§impl PuppetSynchronousProxy
impl PuppetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<PuppetEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<PuppetEvent, 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 set_health_ok(&self, ___deadline: Time) -> Result<(), Error>
pub fn set_health_ok(&self, ___deadline: Time) -> Result<(), Error>
Emits a health inspect node with OK status.
sourcepub fn record_string(
&self,
key: &str,
value: &str,
___deadline: Time
) -> Result<(), Error>
pub fn record_string( &self, key: &str, value: &str, ___deadline: Time ) -> Result<(), Error>
Records a string inspect property.
sourcepub fn record_int(
&self,
key: &str,
value: i64,
___deadline: Time
) -> Result<(), Error>
pub fn record_int( &self, key: &str, value: i64, ___deadline: Time ) -> Result<(), Error>
Records an integer inspect property.
sourcepub fn emit_example_inspect_data(&self, ___deadline: Time) -> Result<(), Error>
pub fn emit_example_inspect_data(&self, ___deadline: Time) -> Result<(), Error>
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, ___deadline: Time) -> Result<(), Error>
pub fn println(&self, message: &str, ___deadline: Time) -> Result<(), Error>
Prints a message to stdout and appends a newline.
sourcepub fn eprintln(&self, message: &str, ___deadline: Time) -> Result<(), Error>
pub fn eprintln(&self, message: &str, ___deadline: Time) -> Result<(), Error>
Prints a message stderr and appends a newline.
sourcepub fn log(
&self,
payload: &LogPuppetLogRequest,
___deadline: Time
) -> Result<(), Error>
pub fn log( &self, payload: &LogPuppetLogRequest, ___deadline: Time ) -> Result<(), Error>
Emits a tracing event at the specified severity level.
sourcepub fn wait_for_interest_change(
&self,
___deadline: Time
) -> Result<LogPuppetWaitForInterestChangeResponse, Error>
pub fn wait_for_interest_change( &self, ___deadline: Time ) -> Result<LogPuppetWaitForInterestChangeResponse, Error>
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,
___deadline: Time
) -> Result<ClientEnd<LazyInspectPuppetMarker>, Error>
pub fn record_lazy_values( &self, key: &str, ___deadline: Time ) -> Result<ClientEnd<LazyInspectPuppetMarker>, Error>
Returns a LazyInspectPuppet client for recording lazy values.
Trait Implementations§
source§impl Debug for PuppetSynchronousProxy
impl Debug for PuppetSynchronousProxy
source§impl SynchronousProxy for PuppetSynchronousProxy
impl SynchronousProxy for PuppetSynchronousProxy
§type Proxy = PuppetProxy
type Proxy = PuppetProxy
§type Protocol = PuppetMarker
type Protocol = PuppetMarker
Proxy
controls.