MCPcopy Create free account
hub / github.com/PowerShell/DSC / drop

Method drop

resources/windows_firewall/src/firewall.rs:34–38  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

32
33impl Drop for SafeVariant {
34 fn drop(&mut self) {
35 if let Err(e) = unsafe { VariantClear(&mut self.0) } {
36 crate::write_error(&format!("Warning: VariantClear failed with HRESULT: {:#010x}", e.code().0 as u32));
37 }
38 }
39}
40
41struct ComGuard;

Callers

nothing calls this directly

Calls 1

write_errorFunction · 0.70

Tested by

no test coverage detected