pub struct InspectWriterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl InspectWriterSynchronousProxy
impl InspectWriterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<InspectWriterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<InspectWriterEvent, 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.
Trait Implementations§
Source§impl SynchronousProxy for InspectWriterSynchronousProxy
impl SynchronousProxy for InspectWriterSynchronousProxy
Source§type Proxy = InspectWriterProxy
type Proxy = InspectWriterProxy
The async proxy for the same protocol.
Source§type Protocol = InspectWriterMarker
type Protocol = InspectWriterMarker
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 InspectWriterSynchronousProxy
impl RefUnwindSafe for InspectWriterSynchronousProxy
impl Send for InspectWriterSynchronousProxy
impl Sync for InspectWriterSynchronousProxy
impl Unpin for InspectWriterSynchronousProxy
impl UnwindSafe for InspectWriterSynchronousProxy
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