pub struct PerformanceCounterAccessSynchronousProxy { /* private fields */ }
Implementations§
source§impl PerformanceCounterAccessSynchronousProxy
impl PerformanceCounterAccessSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<PerformanceCounterAccessEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<PerformanceCounterAccessEvent, 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_performance_count_token(
&self,
___deadline: Time
) -> Result<Event, Error>
pub fn get_performance_count_token( &self, ___deadline: Time ) -> Result<Event, Error>
This access token is not used as an event, but is instead passed to Primary.EnablePerformanceCounterAccess.