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 create_inspector(
&self,
payload: &InspectPuppetCreateInspectorRequest,
) -> QueryResponseFut<ClientEnd<InspectWriterMarker>>
pub fn create_inspector( &self, payload: &InspectPuppetCreateInspectorRequest, ) -> QueryResponseFut<ClientEnd<InspectWriterMarker>>
Create and serve an Inspector with the provided name. InspectWriters created this way are RAII.
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
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 PuppetProxy
impl Debug for PuppetProxy
source§impl Proxy for PuppetProxy
impl Proxy for PuppetProxy
§type Protocol = PuppetMarker
type Protocol = PuppetMarker
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
source§impl PuppetProxyInterface for PuppetProxy
impl PuppetProxyInterface for PuppetProxy
type CreateInspectorResponseFut = QueryResponseFut<ClientEnd<InspectWriterMarker>>
fn create_inspector( &self, payload: &InspectPuppetCreateInspectorRequest, ) -> Self::CreateInspectorResponseFut
type PrintlnResponseFut = QueryResponseFut<()>
fn println(&self, message: &str) -> Self::PrintlnResponseFut
type EprintlnResponseFut = QueryResponseFut<()>
fn eprintln(&self, message: &str) -> Self::EprintlnResponseFut
type LogResponseFut = QueryResponseFut<()>
fn log(&self, payload: &LogPuppetLogRequest) -> Self::LogResponseFut
type WaitForInterestChangeResponseFut = QueryResponseFut<LogPuppetWaitForInterestChangeResponse>
fn wait_for_interest_change(&self) -> Self::WaitForInterestChangeResponseFut
type RecordLazyValuesResponseFut = QueryResponseFut<ClientEnd<LazyInspectPuppetMarker>>
fn record_lazy_values(&self, key: &str) -> Self::RecordLazyValuesResponseFut
fn crash(&self, message: &str) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for PuppetProxy
impl !RefUnwindSafe for PuppetProxy
impl Send for PuppetProxy
impl Sync for PuppetProxy
impl Unpin for PuppetProxy
impl !UnwindSafe for PuppetProxy
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)