pub struct Wmi { /* private fields */ }Expand description
A live COM WMI session bound to a single namespace on the local host.
Threading: connect_local forces the MTA. The instance is deliberately
!Send — the underlying COM proxies are apartment-scoped and must be
touched from the thread that initialized COM.
Drop order matters here: Rust drops fields in declaration order, so the
COM interfaces (services, _locator) release first, and only then
does [ComGuard] run CoUninitialize. Calling Release on a live
proxy after CoUninitialize is undefined behavior — an easy way to
earn an 0xc0000005 in a test binary.
Implementations§
Auto Trait Implementations§
impl !Send for Wmi
impl !Sync for Wmi
impl Freeze for Wmi
impl RefUnwindSafe for Wmi
impl Unpin for Wmi
impl UnsafeUnpin for Wmi
impl UnwindSafe for Wmi
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