pub struct CounterSynchronousProxy { /* private fields */ }
Implementations§
Source§impl CounterSynchronousProxy
impl CounterSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<CounterEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<CounterEvent, 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 get_inspect_vmo(
&self,
___deadline: MonotonicInstant,
) -> Result<(i32, Buffer), Error>
pub fn get_inspect_vmo( &self, ___deadline: MonotonicInstant, ) -> Result<(i32, Buffer), Error>
Retrives a VMO containining summarized kcounter data. The vmo returned
in buffer
is in “inspect-vmo” format, documented elsewhere.
Sourcepub fn update_inspect_vmo(
&self,
___deadline: MonotonicInstant,
) -> Result<i32, Error>
pub fn update_inspect_vmo( &self, ___deadline: MonotonicInstant, ) -> Result<i32, Error>
Request that the previously-returned VMO buffer’s data be updated. The data may not be updated if it was already recently updated (updates are limited to an unspecified rate, but approximately every few seconds).
Trait Implementations§
Source§impl Debug for CounterSynchronousProxy
impl Debug for CounterSynchronousProxy
Source§impl SynchronousProxy for CounterSynchronousProxy
impl SynchronousProxy for CounterSynchronousProxy
Source§type Proxy = CounterProxy
type Proxy = CounterProxy
The async proxy for the same protocol.
Source§type Protocol = CounterMarker
type Protocol = CounterMarker
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 CounterSynchronousProxy
impl RefUnwindSafe for CounterSynchronousProxy
impl Send for CounterSynchronousProxy
impl Sync for CounterSynchronousProxy
impl Unpin for CounterSynchronousProxy
impl UnwindSafe for CounterSynchronousProxy
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