pub struct ChargerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl ChargerSynchronousProxy
impl ChargerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<ChargerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<ChargerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
pub fn enable( &self, enable: bool, ___deadline: MonotonicInstant, ) -> Result<ChargerEnableResult, Error>
Trait Implementations§
Source§impl Debug for ChargerSynchronousProxy
impl Debug for ChargerSynchronousProxy
Source§impl From<Channel> for ChargerSynchronousProxy
impl From<Channel> for ChargerSynchronousProxy
Source§impl From<ChargerSynchronousProxy> for Handle
impl From<ChargerSynchronousProxy> for Handle
Source§fn from(value: ChargerSynchronousProxy) -> Self
fn from(value: ChargerSynchronousProxy) -> Self
Converts to this type from the input type.
Source§impl FromClient for ChargerSynchronousProxy
impl FromClient for ChargerSynchronousProxy
Source§type Protocol = ChargerMarker
type Protocol = ChargerMarker
The protocol.
Source§fn from_client(value: ClientEnd<ChargerMarker>) -> Self
fn from_client(value: ClientEnd<ChargerMarker>) -> Self
Converts from a client.
Source§impl SynchronousProxy for ChargerSynchronousProxy
impl SynchronousProxy for ChargerSynchronousProxy
Source§type Proxy = ChargerProxy
type Proxy = ChargerProxy
The async proxy for the same protocol.
Source§type Protocol = ChargerMarker
type Protocol = ChargerMarker
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 ChargerSynchronousProxy
impl RefUnwindSafe for ChargerSynchronousProxy
impl Send for ChargerSynchronousProxy
impl Sync for ChargerSynchronousProxy
impl Unpin for ChargerSynchronousProxy
impl UnwindSafe for ChargerSynchronousProxy
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