pub struct RegistryProxy { /* private fields */ }
Implementations§
Source§impl RegistryProxy
impl RegistryProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.tracing.provider/Registry.
Sourcepub fn take_event_stream(&self) -> RegistryEventStream
pub fn take_event_stream(&self) -> RegistryEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
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,
) -> QueryResponseFut<(i32, bool), DefaultFuchsiaResourceDialect>
pub fn register_provider_synchronously( &self, provider: ClientEnd<ProviderMarker>, pid: u64, name: &str, ) -> QueryResponseFut<(i32, bool), DefaultFuchsiaResourceDialect>
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 Clone for RegistryProxy
impl Clone for RegistryProxy
Source§fn clone(&self) -> RegistryProxy
fn clone(&self) -> RegistryProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RegistryProxy
impl Debug for RegistryProxy
Source§impl Proxy for RegistryProxy
impl Proxy for RegistryProxy
Source§type Protocol = RegistryMarker
type Protocol = RegistryMarker
Proxy
controls.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl RegistryProxyInterface for RegistryProxy
impl RegistryProxyInterface for RegistryProxy
type RegisterProviderSynchronouslyResponseFut = QueryResponseFut<(i32, bool)>
fn register_provider( &self, provider: ClientEnd<ProviderMarker>, pid: u64, name: &str, ) -> Result<(), Error>
fn register_provider_synchronously( &self, provider: ClientEnd<ProviderMarker>, pid: u64, name: &str, ) -> Self::RegisterProviderSynchronouslyResponseFut
Auto Trait Implementations§
impl Freeze for RegistryProxy
impl !RefUnwindSafe for RegistryProxy
impl Send for RegistryProxy
impl Sync for RegistryProxy
impl Unpin for RegistryProxy
impl !UnwindSafe for RegistryProxy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)