pub struct LocalHitSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LocalHitSynchronousProxy
impl LocalHitSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LocalHitEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LocalHitEvent, 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 upgrade(
&self,
original: ClientEnd<TouchSourceMarker>,
___deadline: MonotonicInstant,
) -> Result<(Option<ClientEnd<TouchSourceWithLocalHitMarker>>, Option<Box<ErrorForLocalHit>>), Error>
pub fn upgrade( &self, original: ClientEnd<TouchSourceMarker>, ___deadline: MonotonicInstant, ) -> Result<(Option<ClientEnd<TouchSourceWithLocalHitMarker>>, Option<Box<ErrorForLocalHit>>), Error>
An exchange from an original
touch protocol endpoint to an augmented
touch protocol endpoint. If successful, error
is empty, original
is
consumed, and augmented
is returned for the client’s use. Otherwise,
the error
carries back original
for the client’s use, and
augmented
is null.
Trait Implementations§
Source§impl Debug for LocalHitSynchronousProxy
impl Debug for LocalHitSynchronousProxy
Source§impl SynchronousProxy for LocalHitSynchronousProxy
impl SynchronousProxy for LocalHitSynchronousProxy
Source§type Proxy = LocalHitProxy
type Proxy = LocalHitProxy
The async proxy for the same protocol.
Source§type Protocol = LocalHitMarker
type Protocol = LocalHitMarker
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 LocalHitSynchronousProxy
impl RefUnwindSafe for LocalHitSynchronousProxy
impl Send for LocalHitSynchronousProxy
impl Sync for LocalHitSynchronousProxy
impl Unpin for LocalHitSynchronousProxy
impl UnwindSafe for LocalHitSynchronousProxy
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