pub struct MagnificationHandlerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl MagnificationHandlerSynchronousProxy
impl MagnificationHandlerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<MagnificationHandlerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<MagnificationHandlerEvent, 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 set_clip_space_transform(
&self,
x: f32,
y: f32,
scale: f32,
___deadline: MonotonicInstant,
) -> Result<(), Error>
pub fn set_clip_space_transform( &self, x: f32, y: f32, scale: f32, ___deadline: MonotonicInstant, ) -> Result<(), Error>
Sets clip-space x-offset, y-offset, and scale for the presentation. x and y are in Vulkan NDC and are applied after scaling, which occurs about the center of the presentation. The callback indicates when the update has been presented. The identity transform (0, 0, 1) is the natural state.
Trait Implementations§
Source§impl SynchronousProxy for MagnificationHandlerSynchronousProxy
impl SynchronousProxy for MagnificationHandlerSynchronousProxy
Source§type Proxy = MagnificationHandlerProxy
type Proxy = MagnificationHandlerProxy
The async proxy for the same protocol.
Source§type Protocol = MagnificationHandlerMarker
type Protocol = MagnificationHandlerMarker
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 MagnificationHandlerSynchronousProxy
impl RefUnwindSafe for MagnificationHandlerSynchronousProxy
impl Send for MagnificationHandlerSynchronousProxy
impl Sync for MagnificationHandlerSynchronousProxy
impl Unpin for MagnificationHandlerSynchronousProxy
impl UnwindSafe for MagnificationHandlerSynchronousProxy
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