pub struct RegistrySynchronousProxy { /* private fields */ }
Implementations§
Source§impl RegistrySynchronousProxy
impl RegistrySynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<RegistryEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<RegistryEvent, 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 register_provider(
&self,
provider: ClientEnd<ProviderMarker>,
pid: u64,
name: &str,
) -> Result<(), Error>
pub fn register_provider( &self, provider: ClientEnd<ProviderMarker>, pid: u64, name: &str, ) -> Result<(), Error>
Registers the trace provider.
Note: Registration is asynchronous, it’s only at some point after this
returns that the provider is actually registered.
To unregister, simply close the Provider pipe.
pid
is the process id of the provider, name
is the name of the
provider. Both of these are used in logging and diagnostic messages.
Sourcepub fn register_provider_synchronously(
&self,
provider: ClientEnd<ProviderMarker>,
pid: u64,
name: &str,
___deadline: MonotonicInstant,
) -> Result<(i32, bool), Error>
pub fn register_provider_synchronously( &self, provider: ClientEnd<ProviderMarker>, pid: u64, name: &str, ___deadline: MonotonicInstant, ) -> Result<(i32, bool), Error>
Registers the trace provider synchronously. The call doesn’t return
until the provider is registered.
On return s
is ZX_OK
if registration was successful.
started
is true if tracing has already started, which is a hint to
the provider to wait for the Start() message before continuing if it
wishes to not drop trace records before Start() is received.
To unregister, simply close the Provider pipe.
pid
is the process id of the provider, name
is the name of the
provider. Both of these are used in logging and diagnostic messages.
Trait Implementations§
Source§impl Debug for RegistrySynchronousProxy
impl Debug for RegistrySynchronousProxy
Source§impl SynchronousProxy for RegistrySynchronousProxy
impl SynchronousProxy for RegistrySynchronousProxy
Source§type Proxy = RegistryProxy
type Proxy = RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Proxy
controls.