pub struct ComWorker<C: ServerConnector + 'static> {
pub sender: Sender<ComRequest>,
pub handle: Option<JoinHandle<()>>,
/* private fields */
}Expand description
Dedicated background worker thread manager handling COM MTA apartment thread affinity.
Dispatches requests received over an mpsc channel to Windows COM interfaces while maintaining
a persistent connection pool and transparently evicting stale connection handles on RPC errors.
Fields§
§sender: Sender<ComRequest>Channel sender for dispatching requests to the worker loop.
handle: Option<JoinHandle<()>>Thread join handle for clean worker thread teardown.
Implementations§
Source§impl<C: ServerConnector + 'static> ComWorker<C>
impl<C: ServerConnector + 'static> ComWorker<C>
Trait Implementations§
Auto Trait Implementations§
impl<C> !RefUnwindSafe for ComWorker<C>
impl<C> !UnwindSafe for ComWorker<C>
impl<C> Freeze for ComWorker<C>where
PhantomData<C>: Freeze,
impl<C> Send for ComWorker<C>where
PhantomData<C>: Send,
impl<C> Sync for ComWorker<C>where
PhantomData<C>: Sync,
impl<C> Unpin for ComWorker<C>where
PhantomData<C>: Unpin,
impl<C> UnsafeUnpin for ComWorker<C>where
PhantomData<C>: UnsafeUnpin,
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