pub struct InspectPuppetProxy { /* private fields */ }
Implementations§
source§impl InspectPuppetProxy
impl InspectPuppetProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.archivist.test/InspectPuppet.
sourcepub fn take_event_stream(&self) -> InspectPuppetEventStream
pub fn take_event_stream(&self) -> InspectPuppetEventStream
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.
Trait Implementations§
source§impl Clone for InspectPuppetProxy
impl Clone for InspectPuppetProxy
source§fn clone(&self) -> InspectPuppetProxy
fn clone(&self) -> InspectPuppetProxy
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 InspectPuppetProxy
impl Debug for InspectPuppetProxy
source§impl InspectPuppetProxyInterface for InspectPuppetProxy
impl InspectPuppetProxyInterface for InspectPuppetProxy
type SetHealthOkResponseFut = QueryResponseFut<()>
fn set_health_ok(&self) -> Self::SetHealthOkResponseFut
type RecordStringResponseFut = QueryResponseFut<()>
fn record_string(&self, key: &str, value: &str) -> Self::RecordStringResponseFut
type RecordIntResponseFut = QueryResponseFut<()>
fn record_int(&self, key: &str, value: i64) -> Self::RecordIntResponseFut
type EmitExampleInspectDataResponseFut = QueryResponseFut<()>
fn emit_example_inspect_data(&self) -> Self::EmitExampleInspectDataResponseFut
source§impl Proxy for InspectPuppetProxy
impl Proxy for InspectPuppetProxy
§type Protocol = InspectPuppetMarker
type Protocol = InspectPuppetMarker
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
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Attempt to convert the proxy back into a client end. Read more
Auto Trait Implementations§
impl Freeze for InspectPuppetProxy
impl !RefUnwindSafe for InspectPuppetProxy
impl Send for InspectPuppetProxy
impl Sync for InspectPuppetProxy
impl Unpin for InspectPuppetProxy
impl !UnwindSafe for InspectPuppetProxy
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