pub struct VncClient { /* private fields */ }Implementations§
Source§impl VncClient
impl VncClient
Sourcepub fn desktop_layout(&self) -> Option<DesktopLayout>
pub fn desktop_layout(&self) -> Option<DesktopLayout>
Last validated ExtendedDesktopSize layout; None means support is unconfirmed.
Sourcepub async fn resize_desktop(
&self,
width: u16,
height: u16,
) -> Result<DesktopLayout, ResizeError>
pub async fn resize_desktop( &self, width: u16, height: u16, ) -> Result<DesktopLayout, ResizeError>
Request a negotiated single-screen resize and wait for the server result. Available on native targets with a Tokio time driver; wasm supports observation only. Continue draining events concurrently. Each queue/confirmation wait is bounded to five seconds. Cancellation after dispatch makes later requests uncertain; reconnect and observe before retrying. Dispatch includes one incremental one-pixel update request so servers can deliver the confirmation.
Sourcepub async fn input(&self, event: X11Event) -> Result<(), VncError>
pub async fn input(&self, event: X11Event) -> Result<(), VncError>
Input a X11Event from the frontend
Sourcepub async fn recv_event(&self) -> Result<VncEvent, VncError>
pub async fn recv_event(&self) -> Result<VncEvent, VncError>
Receive a VncEvent from the engine
This function will block until a VncEvent is received
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VncClient
impl !UnwindSafe for VncClient
impl Freeze for VncClient
impl Send for VncClient
impl Sync for VncClient
impl Unpin for VncClient
impl UnsafeUnpin for VncClient
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