pub struct ProvisionerSynchronousProxy { /* private fields */ }
Implementations§
source§impl ProvisionerSynchronousProxy
impl ProvisionerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ProvisionerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ProvisionerEvent, 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 initialize_tracing(
&self,
controller: ServerEnd<SessionMarker>,
config: &TraceConfig,
output: Socket,
) -> Result<(), Error>
pub fn initialize_tracing( &self, controller: ServerEnd<SessionMarker>, config: &TraceConfig, output: Socket, ) -> Result<(), Error>
Requests to initialize tracing with the specified config
.
A bad request will terminate the connection.
The trace controller emits trace data to output
as a sequence of
binary formatted trace records. Traces obtained from different providers
are delimited by metadata records within the stream.
The format of these records can be found here:
https://fuchsia.dev/fuchsia-src/reference/tracing/trace-format
sourcepub fn get_providers(
&self,
___deadline: MonotonicInstant,
) -> Result<Vec<ProviderInfo>, Error>
pub fn get_providers( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<ProviderInfo>, Error>
Return the set of registered providers.
pub fn get_known_categories( &self, ___deadline: MonotonicInstant, ) -> Result<Vec<KnownCategory>, Error>
Trait Implementations§
source§impl Debug for ProvisionerSynchronousProxy
impl Debug for ProvisionerSynchronousProxy
source§impl SynchronousProxy for ProvisionerSynchronousProxy
impl SynchronousProxy for ProvisionerSynchronousProxy
§type Proxy = ProvisionerProxy
type Proxy = ProvisionerProxy
The async proxy for the same protocol.
§type Protocol = ProvisionerMarker
type Protocol = ProvisionerMarker
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 ProvisionerSynchronousProxy
impl RefUnwindSafe for ProvisionerSynchronousProxy
impl Send for ProvisionerSynchronousProxy
impl Sync for ProvisionerSynchronousProxy
impl Unpin for ProvisionerSynchronousProxy
impl UnwindSafe for ProvisionerSynchronousProxy
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