pub struct LazyInspectPuppetSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LazyInspectPuppetSynchronousProxy
impl LazyInspectPuppetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LazyInspectPuppetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LazyInspectPuppetEvent, 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: MonotonicInstant) -> Result<(), Error>
pub fn set_health_ok(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Emits a health inspect node with OK status.
Sourcepub fn record_string(
&self,
key: &str,
value: &str,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn record_string( &self, key: &str, value: &str, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Records a string inspect property.
Sourcepub fn record_int(
&self,
key: &str,
value: i64,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn record_int( &self, key: &str, value: i64, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Records an integer inspect property.
Sourcepub fn emit_example_inspect_data(
&self,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn emit_example_inspect_data( &self, ___deadline: MonotonicInstant, ) -> 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 escrow_and_exit(
&self,
payload: &InspectWriterEscrowAndExitRequest,
___deadline: MonotonicInstant,
) -> Result<InspectWriterEscrowAndExitResponse, Error>
pub fn escrow_and_exit( &self, payload: &InspectWriterEscrowAndExitRequest, ___deadline: MonotonicInstant, ) -> Result<InspectWriterEscrowAndExitResponse, Error>
Escrow the current inspect data and immediately exit afterwards.
Sourcepub fn commit(
&self,
options: &CommitOptions,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn commit( &self, options: &CommitOptions, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Reports all recorded values on the root node.
The server will close the connection after this method is called.
Trait Implementations§
Source§impl SynchronousProxy for LazyInspectPuppetSynchronousProxy
impl SynchronousProxy for LazyInspectPuppetSynchronousProxy
Source§type Proxy = LazyInspectPuppetProxy
type Proxy = LazyInspectPuppetProxy
The async proxy for the same protocol.
Source§type Protocol = LazyInspectPuppetMarker
type Protocol = LazyInspectPuppetMarker
The protocol which this
Proxy
controls.Source§fn from_channel(inner: Channel) -> Self
fn from_channel(inner: Channel) -> Self
Create a proxy over the given channel.
Source§fn into_channel(self) -> Channel
fn into_channel(self) -> Channel
Convert the proxy back into a channel.
Source§fn as_channel(&self) -> &Channel
fn as_channel(&self) -> &Channel
Get a reference to the proxy’s underlying channel. Read more
Auto Trait Implementations§
impl Freeze for LazyInspectPuppetSynchronousProxy
impl RefUnwindSafe for LazyInspectPuppetSynchronousProxy
impl Send for LazyInspectPuppetSynchronousProxy
impl Sync for LazyInspectPuppetSynchronousProxy
impl Unpin for LazyInspectPuppetSynchronousProxy
impl UnwindSafe for LazyInspectPuppetSynchronousProxy
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