pub struct VncServer<S: Server> {
pub server: S,
/* private fields */
}Fields§
§server: SThe underlying Server implementation
Implementations§
Source§impl<S: Server> VncServer<S>
impl<S: Server> VncServer<S>
pub fn new(server: S, config: VncServerConfig, data: VncServerData) -> Arc<Self>
pub async fn set_pixel_format(&self, pixel_format: PixelFormat)
pub async fn set_resolution(&self, width: u16, height: u16)
pub async fn handle_conn( &self, s: &mut (impl AsyncRead + AsyncWrite + Unpin + Send + Sync), addr: SocketAddr, close_ch: Shared<Receiver<()>>, )
Auto Trait Implementations§
impl<S> !Freeze for VncServer<S>
impl<S> !RefUnwindSafe for VncServer<S>
impl<S> Send for VncServer<S>
impl<S> Sync for VncServer<S>
impl<S> Unpin for VncServer<S>where
S: Unpin,
impl<S> !UnwindSafe for VncServer<S>
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