enum WorkerCommand {
AddPort(PciAddress, PortWorkerStub),
GetPortState(PciAddress),
GetEmptyPort,
SignalHotPlug(SignalHotPlugCommand),
SignalHotUnplug(PciAddress),
}Expand description
Control commands to worker.
Variants§
AddPort(PciAddress, PortWorkerStub)
Add port to the worker.
GetPortState(PciAddress)
Get the state of the port.
GetEmptyPort
Get an empty port for hotplug. Returns the least port sorted by PortKey.
SignalHotPlug(SignalHotPlugCommand)
Signals hot plug on port. Changes an empty port to occupied.
SignalHotUnplug(PciAddress)
Signals hot unplug on port. Changes an occupied port to empty.
Auto Trait Implementations§
impl Freeze for WorkerCommand
impl RefUnwindSafe for WorkerCommand
impl Send for WorkerCommand
impl Sync for WorkerCommand
impl Unpin for WorkerCommand
impl UnwindSafe for WorkerCommand
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