enum PvClockWorkerState {
Idle(Tube),
Stub(WorkerThread<StubWorkerReturn>),
Main(WorkerThread<MainWorkerReturn>),
None,
}Expand description
An enum to keep dynamic state of pvclock workers in a type safe manner.
Variants§
Idle(Tube)
Idle means no worker is running. This tube is for communicating with this device from the crosvm threads.
Stub(WorkerThread<StubWorkerReturn>)
A stub worker to respond pvclock commands when the device is not activated yet.
Main(WorkerThread<MainWorkerReturn>)
A main worker to respond pvclock commands while the device is active.
None
None is used only for handling transitional state between the states above.
Auto Trait Implementations§
impl Freeze for PvClockWorkerState
impl !RefUnwindSafe for PvClockWorkerState
impl Send for PvClockWorkerState
impl Sync for PvClockWorkerState
impl Unpin for PvClockWorkerState
impl !UnwindSafe for PvClockWorkerState
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