pub struct ClientStateWatcherSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ClientStateWatcherSynchronousProxy
impl ClientStateWatcherSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ClientStateWatcherEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ClientStateWatcherEvent, 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 watch(&self, ___deadline: MonotonicInstant) -> Result<u64, Error>
pub fn watch(&self, ___deadline: MonotonicInstant) -> Result<u64, Error>
Watches for changes to a client’s thermal state.
A client’s thermal state is determined according to the central thermal configuration of its specific type. See the README.md for more details.
On a given connection, the first call will return immediately with the
client’s current thermal state. Subsequent Watch
requests will only
return a new state
if the client’s thermal state has changed. This
follows the hanging
get
pattern.
state
is an unsigned integer representing the client’s thermal state.
Trait Implementations§
Source§impl SynchronousProxy for ClientStateWatcherSynchronousProxy
impl SynchronousProxy for ClientStateWatcherSynchronousProxy
Source§type Proxy = ClientStateWatcherProxy
type Proxy = ClientStateWatcherProxy
The async proxy for the same protocol.
Source§type Protocol = ClientStateWatcherMarker
type Protocol = ClientStateWatcherMarker
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 ClientStateWatcherSynchronousProxy
impl RefUnwindSafe for ClientStateWatcherSynchronousProxy
impl Send for ClientStateWatcherSynchronousProxy
impl Sync for ClientStateWatcherSynchronousProxy
impl Unpin for ClientStateWatcherSynchronousProxy
impl UnwindSafe for ClientStateWatcherSynchronousProxy
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