pub struct VncServer<S: Server<K>, K = SocketAddr> {
pub server: Arc<dyn Fn(&K) -> Arc<S> + Send + Sync>,
/* private fields */
}Fields§
§server: Arc<dyn Fn(&K) -> Arc<S> + Send + Sync>The underlying Server implementation
Implementations§
Source§impl<S: Server<K>, K: Debug + Send + Sync + 'static> VncServer<S, K>
impl<S: Server<K>, K: Debug + Send + Sync + 'static> VncServer<S, K>
pub fn new(server: S, config: VncServerConfig, data: VncServerData) -> Arc<Self>
pub fn new_base( server: Arc<dyn Fn(&K) -> Arc<S> + Send + Sync>, 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: K, close_ch: Shared<Receiver<()>>, )
Auto Trait Implementations§
impl<S, K = SocketAddr> !Freeze for VncServer<S, K>
impl<S, K = SocketAddr> !RefUnwindSafe for VncServer<S, K>
impl<S, K> Send for VncServer<S, K>
impl<S, K> Sync for VncServer<S, K>
impl<S, K> Unpin for VncServer<S, K>
impl<S, K = SocketAddr> !UnwindSafe for VncServer<S, K>
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