struct WorkerClient {
control_evt: Event,
command_sender: Sender<WorkerCommand>,
response_receiver: Receiver<WorkerResponse>,
_worker_thread: WorkerThread<()>,
}Expand description
WorkerClient is a wrapper of the worker methods.
Fields§
§control_evt: Eventevent to signal control command is sent
command_sender: Sender<WorkerCommand>control channel to worker
response_receiver: Receiver<WorkerResponse>response channel from worker
_worker_thread: WorkerThread<()>Implementations§
Source§impl WorkerClient
impl WorkerClient
Sourcefn new(rootbus_controller: Sender<PciRootCommand>) -> Result<Self, Error>
fn new(rootbus_controller: Sender<PciRootCommand>) -> Result<Self, Error>
Constructs PciHotPlugWorker with its client.
Sourcefn send_worker_command(
&self,
command: WorkerCommand,
) -> Result<WorkerResponse, Error>
fn send_worker_command( &self, command: WorkerCommand, ) -> Result<WorkerResponse, Error>
Sends worker command, and wait for its response.
Auto Trait Implementations§
impl Freeze for WorkerClient
impl !RefUnwindSafe for WorkerClient
impl Send for WorkerClient
impl !Sync for WorkerClient
impl Unpin for WorkerClient
impl !UnwindSafe for WorkerClient
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