vnc_worker

Struct VncWorker

Source
pub struct VncWorker<T: Listener> { /* private fields */ }
Expand description

A worker for running a VNC server.

Trait Implementations§

Source§

impl Worker for VncWorker<TcpListener>

Source§

const ID: WorkerId<Self::Parameters> = vnc_worker_defs::VNC_WORKER_TCP

String identifying the Worker. Used when launching workers in separate processes to specify which workers are supported and which worker to launch. IDs must be unique within a given worker host.
Source§

type Parameters = VncParameters<TcpListener>

Parameters passed to launch the worker. Used with [Worker::new]. Read more
Source§

type State = VncParameters<TcpListener>

State used to implement hot restart. Used with [Worker::restart].
Source§

fn new(params: Self::Parameters) -> Result<Self>

Instantiates the worker. Read more
Source§

fn restart(state: Self::State) -> Result<Self>

Restarts a worker from a previous worker’s execution state.
Source§

fn run(self, rpc_recv: Receiver<WorkerRpc<Self::State>>) -> Result<()>

Synchronously runs the worker on the current thread. Read more
Source§

impl Worker for VncWorker<VmListener>

Source§

const ID: WorkerId<Self::Parameters> = vnc_worker_defs::VNC_WORKER_VMSOCKET

String identifying the Worker. Used when launching workers in separate processes to specify which workers are supported and which worker to launch. IDs must be unique within a given worker host.
Source§

type Parameters = VncParameters<VmListener>

Parameters passed to launch the worker. Used with [Worker::new]. Read more
Source§

type State = VncParameters<VmListener>

State used to implement hot restart. Used with [Worker::restart].
Source§

fn new(params: Self::Parameters) -> Result<Self>

Instantiates the worker. Read more
Source§

fn restart(state: Self::State) -> Result<Self>

Restarts a worker from a previous worker’s execution state.
Source§

fn run(self, rpc_recv: Receiver<WorkerRpc<Self::State>>) -> Result<()>

Synchronously runs the worker on the current thread. Read more

Auto Trait Implementations§

§

impl<T> Freeze for VncWorker<T>
where T: Freeze, <T as Listener>::Address: Freeze,

§

impl<T> !RefUnwindSafe for VncWorker<T>

§

impl<T> !Send for VncWorker<T>

§

impl<T> !Sync for VncWorker<T>

§

impl<T> Unpin for VncWorker<T>
where <T as Listener>::Address: Unpin,

§

impl<T> !UnwindSafe for VncWorker<T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more