pub struct PuppetSynchronousProxy { /* private fields */ }
Implementations§
Source§impl PuppetSynchronousProxy
impl PuppetSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<PuppetEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<PuppetEvent, 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 embed_remote_view(
&self,
payload: &PuppetEmbedRemoteViewRequest,
___deadline: MonotonicInstant,
) -> Result<PuppetEmbedRemoteViewResponse, Error>
pub fn embed_remote_view( &self, payload: &PuppetEmbedRemoteViewRequest, ___deadline: MonotonicInstant, ) -> Result<PuppetEmbedRemoteViewResponse, Error>
Embeds a view owned elsewhere.
The puppet should create a (ViewportCreationToken, ViewCreationToken) pair
and use the former to create a viewport with the specified properties
.
Once the puppet has presented a frame containing the new viewport, it should
return the view creation token to the caller.
Sourcepub fn set_embedded_view_properties(
&self,
payload: &PuppetSetEmbeddedViewPropertiesRequest,
___deadline: MonotonicInstant,
) -> Result<PuppetSetEmbeddedViewPropertiesResponse, Error>
pub fn set_embedded_view_properties( &self, payload: &PuppetSetEmbeddedViewPropertiesRequest, ___deadline: MonotonicInstant, ) -> Result<PuppetSetEmbeddedViewPropertiesResponse, Error>
Updates the properties of an embedded view.
Sourcepub fn draw_image(
&self,
payload: &PuppetDrawImageRequest,
___deadline: MonotonicInstant,
) -> Result<PuppetDrawImageResponse, Error>
pub fn draw_image( &self, payload: &PuppetDrawImageRequest, ___deadline: MonotonicInstant, ) -> Result<PuppetDrawImageResponse, Error>
Draws an image composed of solid, monochrome-filled rectangles.
Sourcepub fn set_image_properties(
&self,
payload: &PuppetSetImagePropertiesRequest,
___deadline: MonotonicInstant,
) -> Result<PuppetSetImagePropertiesResponse, Error>
pub fn set_image_properties( &self, payload: &PuppetSetImagePropertiesRequest, ___deadline: MonotonicInstant, ) -> Result<PuppetSetImagePropertiesResponse, Error>
Updates the properties of an image.
Trait Implementations§
Source§impl Debug for PuppetSynchronousProxy
impl Debug for PuppetSynchronousProxy
Source§impl SynchronousProxy for PuppetSynchronousProxy
impl SynchronousProxy for PuppetSynchronousProxy
Source§type Proxy = PuppetProxy
type Proxy = PuppetProxy
The async proxy for the same protocol.
Source§type Protocol = PuppetMarker
type Protocol = PuppetMarker
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 PuppetSynchronousProxy
impl RefUnwindSafe for PuppetSynchronousProxy
impl Send for PuppetSynchronousProxy
impl Sync for PuppetSynchronousProxy
impl Unpin for PuppetSynchronousProxy
impl UnwindSafe for PuppetSynchronousProxy
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