pub struct SamplerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SamplerSynchronousProxy
impl SamplerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SamplerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SamplerEvent, 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 record_allocation(
&self,
address: u64,
stack_trace: &StackTrace,
size: u64,
) -> Result<(), Error>
pub fn record_allocation( &self, address: u64, stack_trace: &StackTrace, size: u64, ) -> Result<(), Error>
Record an allocation.
Sourcepub fn record_deallocation(
&self,
address: u64,
stack_trace: &StackTrace,
) -> Result<(), Error>
pub fn record_deallocation( &self, address: u64, stack_trace: &StackTrace, ) -> Result<(), Error>
Record a deallocation.
Sourcepub fn set_process_info(
&self,
payload: &SamplerSetProcessInfoRequest,
) -> Result<(), Error>
pub fn set_process_info( &self, payload: &SamplerSetProcessInfoRequest, ) -> Result<(), Error>
Communicate relevant process information to facilitate symbolization.
If called several times, the last process_name
prevails, but the
module_map
is added to the existing map for the process. If a client
needs to send a module_map
that does not fit in a single message, they
can split it and send it across several messages.
Trait Implementations§
Source§impl Debug for SamplerSynchronousProxy
impl Debug for SamplerSynchronousProxy
Source§impl SynchronousProxy for SamplerSynchronousProxy
impl SynchronousProxy for SamplerSynchronousProxy
Source§type Proxy = SamplerProxy
type Proxy = SamplerProxy
The async proxy for the same protocol.
Source§type Protocol = SamplerMarker
type Protocol = SamplerMarker
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 SamplerSynchronousProxy
impl RefUnwindSafe for SamplerSynchronousProxy
impl Send for SamplerSynchronousProxy
impl Sync for SamplerSynchronousProxy
impl Unpin for SamplerSynchronousProxy
impl UnwindSafe for SamplerSynchronousProxy
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