pub struct SetupSynchronousProxy { /* private fields */ }
Implementations§
Source§impl SetupSynchronousProxy
impl SetupSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<SetupEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<SetupEvent, 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_view_refs(
&self,
___deadline: MonotonicInstant,
) -> Result<(ViewRef, ViewRef), Error>
pub fn get_view_refs( &self, ___deadline: MonotonicInstant, ) -> Result<(ViewRef, ViewRef), Error>
Returns the viewrefs for injection authority (Config.context
) and injection
destination (Config.target
).
This only returns when valid context and target views exist. Typically called just once.
Sourcepub fn watch_viewport(
&self,
___deadline: MonotonicInstant,
) -> Result<Viewport, Error>
pub fn watch_viewport( &self, ___deadline: MonotonicInstant, ) -> Result<Viewport, Error>
Returns the current viewport. Follows the hanging get pattern.
The first call to this function will return the current viewport, whenever one exists. Subsequent calls will block until the viewport has been updated.
Flow control: There should only be one outstanding call to this function. The channel will be closed if an additional call to this function is made while a call is outstanding.
Trait Implementations§
Source§impl Debug for SetupSynchronousProxy
impl Debug for SetupSynchronousProxy
Source§impl SynchronousProxy for SetupSynchronousProxy
impl SynchronousProxy for SetupSynchronousProxy
Source§type Proxy = SetupProxy
type Proxy = SetupProxy
The async proxy for the same protocol.
Source§type Protocol = SetupMarker
type Protocol = SetupMarker
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 SetupSynchronousProxy
impl RefUnwindSafe for SetupSynchronousProxy
impl Send for SetupSynchronousProxy
impl Sync for SetupSynchronousProxy
impl Unpin for SetupSynchronousProxy
impl UnwindSafe for SetupSynchronousProxy
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