From 187cbc75ab1e9a8e25082d5c3ad177eb7b0b3573 Mon Sep 17 00:00:00 2001 From: Youyuan Wu Date: Sat, 18 Nov 2023 15:20:08 -0800 Subject: [PATCH] upgrade windows-rs to 0.51 --- Cargo.lock | 182 +- Cargo.toml | 6 +- bindings.txt | 8 + crates/fabric/ext/Cargo.toml | 6 +- crates/fabric/ext/src/fasync/mod.rs | 11 +- crates/fabric/ext/src/lib.rs | 47 +- crates/samples/client/Cargo.toml | 7 +- crates/samples/client/src/main.rs | 2 +- crates/samples/echomain/Cargo.toml | 5 +- crates/samples/echomain/src/app.rs | 30 +- crates/samples/echomain/src/main.rs | 5 +- crates/tools/api/Cargo.toml | 6 +- crates/tools/api/src/main.rs | 73 +- src/Microsoft.rs | 110749 +++++++++++++++ .../FabricCommon/FabricClient/impl.rs | 14512 -- .../FabricCommon/FabricClient/mod.rs | 43989 ------ .../FabricCommon/FabricRuntime/impl.rs | 6469 - .../FabricCommon/FabricRuntime/mod.rs | 12484 -- .../FabricCommon/FabricTransport/impl.rs | 759 - .../FabricCommon/FabricTransport/mod.rs | 1014 - .../ServiceFabric/FabricCommon/impl.rs | 207 - .../ServiceFabric/FabricCommon/mod.rs | 254 - src/Microsoft/ServiceFabric/impl.rs | 1 - src/Microsoft/ServiceFabric/mod.rs | 33413 ----- src/Microsoft/impl.rs | 1 - src/Microsoft/mod.rs | 3 - src/lib.rs | 3 +- 27 files changed, 110971 insertions(+), 113275 deletions(-) create mode 100644 bindings.txt create mode 100644 src/Microsoft.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/impl.rs delete mode 100644 src/Microsoft/ServiceFabric/FabricCommon/mod.rs delete mode 100644 src/Microsoft/ServiceFabric/impl.rs delete mode 100644 src/Microsoft/ServiceFabric/mod.rs delete mode 100644 src/Microsoft/impl.rs delete mode 100644 src/Microsoft/mod.rs diff --git a/Cargo.lock b/Cargo.lock index ae98d635..f9742d59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,6 +46,39 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "crossbeam-deque" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +dependencies = [ + "autocfg", + "cfg-if", + "crossbeam-utils", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" +dependencies = [ + "cfg-if", +] + [[package]] name = "ctrlc" version = "3.2.3" @@ -56,6 +89,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "either" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" + [[package]] name = "env_logger" version = "0.9.1" @@ -84,6 +123,7 @@ dependencies = [ "service-fabric-rs", "tokio", "windows", + "windows-core", ] [[package]] @@ -132,6 +172,15 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +[[package]] +name = "memoffset" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" +dependencies = [ + "autocfg", +] + [[package]] name = "mio" version = "0.8.4" @@ -203,22 +252,42 @@ checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" [[package]] name = "proc-macro2" -version = "1.0.46" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94e2ef8dbfc347b10c094890f778ee2e36ca9bb4262e86dc99cd217e35f3470b" +checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.21" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] +[[package]] +name = "rayon" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + [[package]] name = "redox_syscall" version = "0.2.16" @@ -252,6 +321,7 @@ dependencies = [ "fabric_ext", "service-fabric-rs", "windows", + "windows-core", ] [[package]] @@ -265,6 +335,7 @@ dependencies = [ "service-fabric-rs", "tokio", "windows", + "windows-core", ] [[package]] @@ -285,6 +356,7 @@ version = "0.0.2" dependencies = [ "fabric-metadata", "windows", + "windows-core", ] [[package]] @@ -323,6 +395,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "2.0.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "termcolor" version = "1.1.3" @@ -360,7 +443,7 @@ checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.101", ] [[package]] @@ -417,58 +500,64 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244" +checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" dependencies = [ + "windows-core", "windows-implement", "windows-interface", - "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows-targets", ] [[package]] name = "windows-bindgen" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27a53bbcdeded4e690dbfba77bccc4fe2a6d896ec8191254fc739e1ce49e5925" +checksum = "bc1f16b778125675feee0d15d6dd9f6af0e3ac52b3233d63a10aa39230c1cd75" dependencies = [ + "proc-macro2", + "rayon", + "syn 2.0.39", "windows-metadata", - "windows-tokens", +] + +[[package]] +name = "windows-core" +version = "0.51.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" +dependencies = [ + "windows-targets", ] [[package]] name = "windows-implement" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e29b056dc743c5b8f70010774e894bb54ac4f95a62a848c3458a6f5baef807" +checksum = "fb2b158efec5af20d8846836622f50a87e6556b9153a42772fa047f773c0e555" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.39", ] [[package]] name = "windows-interface" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc8d4fbef035748e3904ff0fde0188361e8ba730530b8501328d3ca6d854b919" +checksum = "0546e63e1ce64c04403d2311fa0e3ab5ae3a367bd524b4a38d8d8d18c70cfa76" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.39", ] [[package]] name = "windows-metadata" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d78850a4a8852ba8593fd006dfa22a042f96b9d48f963c556fc494ddb9ee6a18" +checksum = "753135d996f9da437c0b31dbde3032489a61708361929bcc07d4fba0b161000e" [[package]] name = "windows-sys" @@ -484,16 +573,25 @@ dependencies = [ ] [[package]] -name = "windows-tokens" -version = "0.42.0" +name = "windows-targets" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63933cde113d4e17e105129217d6fcd1f520bcdc615f3d480263504c4b804316" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.48.5", +] [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" @@ -503,9 +601,9 @@ checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" @@ -515,9 +613,9 @@ checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" @@ -527,9 +625,9 @@ checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" @@ -539,15 +637,15 @@ checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" @@ -557,6 +655,6 @@ checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" diff --git a/Cargo.toml b/Cargo.toml index 8492a1e7..c67ba95c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,11 +23,13 @@ targets = [] [dependencies] fabric-metadata = { git = "https://github.com/youyuanwu/fabric-metadata.git", rev = "9d62ca15573a0716fb9828dce03a489ae4b8a4a7"} +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ - "Win32_Foundation" + "Win32_Foundation", + "implement" ] [features] diff --git a/bindings.txt b/bindings.txt new file mode 100644 index 00000000..c11fd424 --- /dev/null +++ b/bindings.txt @@ -0,0 +1,8 @@ +--in ./build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd +--out src/Microsoft.rs + +--filter + Microsoft + +--config + implement=true \ No newline at end of file diff --git a/crates/fabric/ext/Cargo.toml b/crates/fabric/ext/Cargo.toml index 159b0413..2e36ec6c 100644 --- a/crates/fabric/ext/Cargo.toml +++ b/crates/fabric/ext/Cargo.toml @@ -8,12 +8,14 @@ log = "0.4" env_logger = "*" tokio = { version = "1", features = ["full"] } paste = "1.0" +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement", - "interface" + "Win32_System_Com", + "Win32_Foundation" ] [dependencies.service-fabric-rs] diff --git a/crates/fabric/ext/src/fasync/mod.rs b/crates/fabric/ext/src/fasync/mod.rs index 917639b1..500b6a61 100644 --- a/crates/fabric/ext/src/fasync/mod.rs +++ b/crates/fabric/ext/src/fasync/mod.rs @@ -24,9 +24,10 @@ use service_fabric_rs::{ }, FABRIC_NODE_QUERY_DESCRIPTION, }; -use windows::core::{implement, Interface, Vtable}; - +use windows::core::{implement, Interface}; +//use windows_core::com_interface::ComInterface; use windows::core::HSTRING; +use windows_core::ComInterface; /// Shared state between the future and the waiting thread #[derive(Debug)] @@ -44,7 +45,7 @@ pub struct SharedState { // fabric code begins here -#[windows::core::interface("a9445a72-838b-4ed3-8073-bb6423198241")] +#[windows::core::interface] pub unsafe trait IFabricAwaitableCallback: IFabricAsyncOperationCallback { // This has warning pub unsafe fn get_token(&self) -> AwaitableToken; @@ -52,7 +53,7 @@ pub unsafe trait IFabricAwaitableCallback: IFabricAsyncOperationCallback { // This is implement a call back the supports rust .await syntax #[derive(Debug)] -#[implement(IFabricAsyncOperationCallback, IFabricAwaitableCallback)] +#[implement(IFabricAwaitableCallback)] pub struct AwaitableCallback { shared_state: Arc>, } @@ -70,7 +71,7 @@ impl AwaitableCallback { impl IFabricAsyncOperationCallback_Impl for AwaitableCallback { // notify the function has been invoked. - fn Invoke(&self, _context: &core::option::Option) { + fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { let mut shared_state = self.shared_state.lock().unwrap(); // Signal that the timer has completed and wake up the last // task on which the future was polled, if one exists. diff --git a/crates/fabric/ext/src/lib.rs b/crates/fabric/ext/src/lib.rs index e4b6b6d7..c3648f4e 100644 --- a/crates/fabric/ext/src/lib.rs +++ b/crates/fabric/ext/src/lib.rs @@ -21,6 +21,7 @@ use service_fabric_rs::FabricCommon::{ IFabricAsyncOperationContext_Impl, IFabricStringResult, IFabricStringResult_Impl, }; use windows::core::implement; +use windows_core::PCWSTR; // Interface for waitable async callback. // This is a common use case to combine fabric Begin* and End* apis. @@ -30,7 +31,7 @@ pub unsafe trait IFabricWaitableCallback: IFabricAsyncOperationCallback { } #[derive(Debug)] -#[implement(IFabricWaitableCallback, IFabricAsyncOperationCallback)] +#[implement(IFabricWaitableCallback)] pub struct WaitableCallback { pair_: Arc<(Mutex, Condvar)>, } @@ -45,7 +46,7 @@ impl WaitableCallback { impl IFabricAsyncOperationCallback_Impl for WaitableCallback { // notify the function has been invoked. - fn Invoke(&self, _context: &core::option::Option) { + fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { //println!("WaitableCallback Invoke."); let (lock, cvar) = &*self.pair_; let mut started = lock.lock().unwrap(); @@ -67,22 +68,22 @@ impl IFabricWaitableCallback_Impl for WaitableCallback { } } -// pub fn pwstr_to_string(p: PCWSTR) -> String { -// if p.0.is_null() { -// return String::new(); -// } - -// let mut end = p.0; -// unsafe { -// while *end != 0 { -// end = end.add(1); -// } -// } -// let ret: String = unsafe { -// String::from_utf16_lossy(std::slice::from_raw_parts(p.0, end.offset_from(p.0) as _)) -// }; -// return ret; -// } +pub fn pwstr_to_string(p: PCWSTR) -> String { + if p.0.is_null() { + return String::new(); + } + + let mut end = p.0; + unsafe { + while *end != 0 { + end = end.add(1); + } + } + let ret: String = unsafe { + String::from_utf16_lossy(std::slice::from_raw_parts(p.0, end.offset_from(p.0) as _)) + }; + return ret; +} // The basic implementation of async context // which use needs to trigger callback synchronously @@ -96,12 +97,12 @@ impl AsyncContext { // construct ctx. Note: caller needs to invoke callback. // This is different from cpp impl. pub fn new( - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> AsyncContext { info!("AsyncContext::new"); - let callback_copy: IFabricAsyncOperationCallback = callback.clone().expect("msg"); + let callback_copy: IFabricAsyncOperationCallback = callback.expect("msg").clone(); let ctx = AsyncContext { callback_: callback_copy, @@ -155,9 +156,9 @@ impl StringResult { } impl IFabricStringResult_Impl for StringResult { - fn get_String(&self) -> windows::core::PWSTR { + fn get_String(&self) -> windows::core::PCWSTR { // This is some hack to get the raw pointer out. let ptr: *mut u16 = self.vec_.as_ptr() as *mut u16; - return windows::core::PWSTR::from_raw(ptr); + return windows::core::PCWSTR::from_raw(ptr); } } diff --git a/crates/samples/client/Cargo.toml b/crates/samples/client/Cargo.toml index 89b1826d..5fa4d340 100644 --- a/crates/samples/client/Cargo.toml +++ b/crates/samples/client/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" edition = "2018" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement" ] @@ -16,4 +16,7 @@ features = [ ] [dependencies.fabric_ext] -path = "../../../crates/fabric/ext" \ No newline at end of file +path = "../../../crates/fabric/ext" + +[dependencies] +windows-core = "0.51" \ No newline at end of file diff --git a/crates/samples/client/src/main.rs b/crates/samples/client/src/main.rs index 4d77ce77..b5178591 100644 --- a/crates/samples/client/src/main.rs +++ b/crates/samples/client/src/main.rs @@ -7,7 +7,7 @@ use fabric_ext::{IFabricWaitableCallback, WaitableCallback}; use service_fabric_rs::FabricCommon::{FabricClient::*, IFabricAsyncOperationCallback}; use service_fabric_rs::{FABRIC_NODE_QUERY_DESCRIPTION, FABRIC_NODE_QUERY_RESULT_ITEM}; -use windows::core::*; +use windows_core::{ComInterface, Interface}; fn main() -> windows::core::Result<()> { println!("GetNodeCli"); diff --git a/crates/samples/echomain/Cargo.toml b/crates/samples/echomain/Cargo.toml index 8551d807..6d91a2b1 100644 --- a/crates/samples/echomain/Cargo.toml +++ b/crates/samples/echomain/Cargo.toml @@ -8,9 +8,10 @@ log = "0.4" env_logger = "*" ctrlc = { version = "3.0", features = ["termination"] } tokio = { version = "1", features = ["full"] } +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement" ] @@ -22,4 +23,4 @@ features = [ ] [dependencies.fabric_ext] -path = "../../../crates/fabric/ext" \ No newline at end of file +path = "../../../crates/fabric/ext" diff --git a/crates/samples/echomain/src/app.rs b/crates/samples/echomain/src/app.rs index 3f0961b1..bcd7d93f 100644 --- a/crates/samples/echomain/src/app.rs +++ b/crates/samples/echomain/src/app.rs @@ -18,7 +18,7 @@ use service_fabric_rs::FabricCommon::FabricRuntime::{ use service_fabric_rs::FabricCommon::{IFabricAsyncOperationContext, IFabricStringResult}; use tokio::sync::oneshot::{self, Sender}; use windows::core::implement; -use windows::w; +use windows::core::w; mod echo; @@ -50,15 +50,13 @@ impl ServiceFactory { impl IFabricStatelessServiceFactory_Impl for ServiceFactory { fn CreateInstance( &self, - servicetypename: &windows::core::PCWSTR, + servicetypename: &::windows::core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: &windows::core::GUID, + partitionid: &::windows::core::GUID, instanceid: i64, - ) -> windows::core::Result< - service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServiceInstance, - > { + ) -> ::windows::core::Result { let mut init_data: String = "".to_string(); if initializationdata != null() && initializationdatalength != 0 { init_data = unsafe { @@ -107,11 +105,11 @@ impl AppInstance { impl IFabricStatelessServiceInstance_Impl for AppInstance { fn BeginOpen( &self, - partition: &core::option::Option< - service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServicePartition, + partition: core::option::Option< + &service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServicePartition, >, - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> windows::core::Result { let p = partition.as_ref().expect("get partition failed"); @@ -139,8 +137,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn EndOpen( &self, - context: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, + context: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, >, ) -> windows::core::Result { info!("AppInstance::EndOpen"); @@ -163,8 +161,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn BeginClose( &self, - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> windows::core::Result { info!("AppInstance::BeginClose"); @@ -203,8 +201,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn EndClose( &self, - context: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, + context: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, >, ) -> windows::core::Result<()> { info!("AppInstance::EndClose"); diff --git a/crates/samples/echomain/src/main.rs b/crates/samples/echomain/src/main.rs index 5d60d8aa..820f944b 100644 --- a/crates/samples/echomain/src/main.rs +++ b/crates/samples/echomain/src/main.rs @@ -17,8 +17,9 @@ use service_fabric_rs::FabricCommon::FabricRuntime::{ }; use service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback; use std::sync::mpsc::channel; -use windows::core::{Interface, Vtable, PCWSTR}; -use windows::w; +use windows::core::w; +use windows::core::{Interface, PCWSTR}; +use windows_core::ComInterface; pub mod app; fn main() -> windows::core::Result<()> { diff --git a/crates/tools/api/Cargo.toml b/crates/tools/api/Cargo.toml index 64b4c3bb..e7c7e9aa 100644 --- a/crates/tools/api/Cargo.toml +++ b/crates/tools/api/Cargo.toml @@ -6,5 +6,7 @@ publish = false [dependencies] serde = "1.0.136" -windows-bindgen = "0.43" -windows-metadata = "0.43" \ No newline at end of file +windows-bindgen = "0.51" +windows-metadata = "0.51" +#windows-targets = "0.51" +#windows-core = "0.51" \ No newline at end of file diff --git a/crates/tools/api/src/main.rs b/crates/tools/api/src/main.rs index 4f60f82b..0e7cc74d 100644 --- a/crates/tools/api/src/main.rs +++ b/crates/tools/api/src/main.rs @@ -1,70 +1,7 @@ -use std::io::prelude::*; -use windows_metadata::reader::{File, Reader, Tree}; +use windows_bindgen::{bindgen, Result}; -fn main() { - let start = std::time::Instant::now(); - let mut output_path = std::path::PathBuf::from(""); - - output_path.push("src/Microsoft"); - let _ = std::fs::remove_dir_all(&output_path); - output_path.pop(); - - // use winmd files from fabric-metadata repo - let winmd_files = [ - File::new("build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd") - .unwrap(), - File::new("build/_deps/fabric_metadata-src/.windows/winmd/Windows.Win32.winmd").unwrap() - ]; - let reader = Reader::new(&winmd_files); - let root = reader - .tree("Microsoft", &[]) - .expect("Microsoft namespace not found"); - - let trees = root.flatten(); - trees - .iter() - .for_each(|tree| gen_tree(&reader, &output_path, tree)); - - println!("Elapsed: {} ms", start.elapsed().as_millis()); -} - -fn gen_tree(reader: &Reader, output: &std::path::Path, tree: &Tree) { - let mut path = std::path::PathBuf::from(output); - - path.push(tree.namespace.replace('.', "/")); - std::fs::create_dir_all(&path).unwrap(); - - let mut gen = windows_bindgen::Gen::new(reader); - gen.namespace = tree.namespace; - gen.cfg = false; - gen.doc = false; - - let mut tokens = windows_bindgen::namespace(&gen, tree); - tokens.push_str(r#"#[cfg(feature = "implement")] ::core::include!("impl.rs");"#); - fmt_tokens(tree.namespace, &mut tokens); - std::fs::write(path.join("mod.rs"), tokens).unwrap(); - - let mut tokens = windows_bindgen::namespace_impl(&gen, tree); - fmt_tokens(tree.namespace, &mut tokens); - std::fs::write(path.join("impl.rs"), tokens).unwrap(); -} - -fn fmt_tokens(namespace: &str, tokens: &mut String) { - let mut child = std::process::Command::new("rustfmt") - .stdin(std::process::Stdio::piped()) - .stdout(std::process::Stdio::piped()) - .stderr(std::process::Stdio::null()) - .spawn() - .expect("Failed to spawn `rustfmt`"); - - let mut stdin = child.stdin.take().expect("Failed to open stdin"); - stdin.write_all(tokens.as_bytes()).unwrap(); - drop(stdin); - let output = child.wait_with_output().unwrap(); - - if output.status.success() { - *tokens = String::from_utf8(output.stdout).expect("Failed to parse UTF-8"); - } else { - println!("** {} - rustfmt failed", namespace); - } +fn main() -> Result<()> { + let log = bindgen(["--etc", "bindings.txt"])?; + println!("{}", log); + Ok(()) } diff --git a/src/Microsoft.rs b/src/Microsoft.rs new file mode 100644 index 00000000..4f1e490e --- /dev/null +++ b/src/Microsoft.rs @@ -0,0 +1,110749 @@ +// Bindings generated by `windows-bindgen` 0.51.1 + +#![allow( + non_snake_case, + non_upper_case_globals, + non_camel_case_types, + dead_code, + clippy::all +)] +pub mod ServiceFabric { + pub mod FabricCommon { + pub mod FabricClient { + #[inline] + pub unsafe fn FabricCreateClient( + connectionstrings: &[::windows_core::PCWSTR], + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateClient( + connectionstringssize: u16, + connectionstrings: *const ::windows_core::PCWSTR, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateClient( + connectionstrings.len() as _, + ::core::mem::transmute(connectionstrings.as_ptr()), + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateClient2( + connectionstrings: &[::windows_core::PCWSTR], + __midl__fabricclientmodule0000: P0, + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateClient2( + connectionstringssize: u16, + connectionstrings: *const ::windows_core::PCWSTR, + __midl__fabricclientmodule0000: *mut ::core::ffi::c_void, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateClient2( + connectionstrings.len() as _, + ::core::mem::transmute(connectionstrings.as_ptr()), + __midl__fabricclientmodule0000.into_param().abi(), + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateClient3( + connectionstrings: &[::windows_core::PCWSTR], + __midl__fabricclientmodule0002: P0, + __midl__fabricclientmodule0003: P1, + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateClient3( + connectionstringssize: u16, + connectionstrings: *const ::windows_core::PCWSTR, + __midl__fabricclientmodule0002: *mut ::core::ffi::c_void, + __midl__fabricclientmodule0003: *mut ::core::ffi::c_void, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateClient3( + connectionstrings.len() as _, + ::core::mem::transmute(connectionstrings.as_ptr()), + __midl__fabricclientmodule0002.into_param().abi(), + __midl__fabricclientmodule0003.into_param().abi(), + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateLocalClient( + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateLocalClient( + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateLocalClient(iid, &mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateLocalClient2( + __midl__fabricclientmodule0001: P0, + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateLocalClient2( + __midl__fabricclientmodule0001: *mut ::core::ffi::c_void, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateLocalClient2( + __midl__fabricclientmodule0001.into_param().abi(), + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateLocalClient3( + __midl__fabricclientmodule0004: P0, + __midl__fabricclientmodule0005: P1, + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateLocalClient3( + __midl__fabricclientmodule0004: *mut ::core::ffi::c_void, + __midl__fabricclientmodule0005: *mut ::core::ffi::c_void, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateLocalClient3( + __midl__fabricclientmodule0004.into_param().abi(), + __midl__fabricclientmodule0005.into_param().abi(), + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateLocalClient4( + __midl__fabricclientmodule0006: P0, + __midl__fabricclientmodule0007: P1, + clientrole: super::super::FABRIC_CLIENT_ROLE, + iid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricCreateLocalClient4( + __midl__fabricclientmodule0006: *mut ::core::ffi::c_void, + __midl__fabricclientmodule0007: *mut ::core::ffi::c_void, + clientrole: super::super::FABRIC_CLIENT_ROLE, + iid: *const ::windows_core::GUID, + fabricclient: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateLocalClient4( + __midl__fabricclientmodule0006.into_param().abi(), + __midl__fabricclientmodule0007.into_param().abi(), + clientrole, + iid, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricGetDefaultRollingUpgradeMonitoringPolicy( + ) -> ::windows_core::Result + { + #[link(name = "fabricclient")] + extern "system" { + pub fn FabricGetDefaultRollingUpgradeMonitoringPolicy( + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricGetDefaultRollingUpgradeMonitoringPolicy(&mut result__).from_abi(result__) + } + #[repr(transparent)] + pub struct IFabricApplicationHealthResult(::windows_core::IUnknown); + impl IFabricApplicationHealthResult { + pub unsafe fn get_ApplicationHealth( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_HEALTH { + (::windows_core::Interface::vtable(self).get_ApplicationHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricApplicationHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationHealthResult {} + impl ::core::fmt::Debug for IFabricApplicationHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationHealthResult { + type Vtable = IFabricApplicationHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x41612fab_e615_4a48_98e7_4abcc93b6049); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ApplicationHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_APPLICATION_HEALTH, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient(::windows_core::IUnknown); + impl IFabricApplicationManagementClient { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient { + type Vtable = IFabricApplicationManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7c219ae9_e58d_431f_8b30_92a40281faac); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginProvisionApplicationType: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationbuildpath: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndProvisionApplicationType: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginCreateApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCreateApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUpgradeApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpgradeApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetApplicationUpgradeProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetApplicationUpgradeProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginMoveNextApplicationUpgradeDomain: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + progress: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndMoveNextApplicationUpgradeDomain: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginDeleteApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteApplication: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUnprovisionApplicationType: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndUnprovisionApplicationType: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient10(::windows_core::IUnknown); + impl IFabricApplicationManagementClient10 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionApplicationType2( + &self, + description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType2( + &self, + description : *const super::super:: FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionApplicationType3( + &self, + description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType3)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType3( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProvisionApplicationType3)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient10, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7, + IFabricApplicationManagementClient8, + IFabricApplicationManagementClient9 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient10 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient10 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient10 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient10") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient10 { + type Vtable = IFabricApplicationManagementClient10_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x67001225_d106_41ae_8bd4_5a0a119c5c01); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient10_Vtbl where { pub base__ : IFabricApplicationManagementClient9_Vtbl , pub BeginProvisionApplicationType3 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndProvisionApplicationType3 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient2(::windows_core::IUnknown); + impl IFabricApplicationManagementClient2 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . BeginMoveNextApplicationUpgradeDomain2 ) ( ::windows_core::Interface::as_raw ( self ) , applicationname , nextupgradedomain . into_param ( ) . abi ( ) , timeoutmilliseconds , callback . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient2, + ::windows_core::IUnknown, + IFabricApplicationManagementClient + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient2 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient2 { + type Vtable = IFabricApplicationManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf873516f_9bfe_47e5_93b9_3667aaf19324); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient2_Vtbl { + pub base__: IFabricApplicationManagementClient_Vtbl, + pub BeginGetApplicationManifest: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetApplicationManifest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginMoveNextApplicationUpgradeDomain2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + nextupgradedomain: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndMoveNextApplicationUpgradeDomain2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient3(::windows_core::IUnknown); + impl IFabricApplicationManagementClient3 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient3, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient3 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient3 { + type Vtable = IFabricApplicationManagementClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x108c7735_97e1_4af8_8c2d_9080b1b29d33); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient3_Vtbl where { pub base__ : IFabricApplicationManagementClient2_Vtbl , pub BeginUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub CopyApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : ::windows_core::PCWSTR , applicationpackagepath : ::windows_core::PCWSTR , applicationpackagepathinimagestore : ::windows_core::PCWSTR , ) -> ::windows_core::HRESULT , pub RemoveApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : ::windows_core::PCWSTR , applicationpackagepathinimagestore : ::windows_core::PCWSTR , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient4(::windows_core::IUnknown); + impl IFabricApplicationManagementClient4 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient4, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient4 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient4 { + type Vtable = IFabricApplicationManagementClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient4_Vtbl { + pub base__: IFabricApplicationManagementClient3_Vtbl, + pub BeginDeployServicePackageToNode: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndDeployServicePackageToNode: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient5(::windows_core::IUnknown); + impl IFabricApplicationManagementClient5 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient5, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient5 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient5") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient5 { + type Vtable = IFabricApplicationManagementClient5_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd7490e43_2217_4158_93e1_9ce4dd6f724a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient5_Vtbl { + pub base__: IFabricApplicationManagementClient4_Vtbl, + pub BeginRollbackApplicationUpgrade: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRollbackApplicationUpgrade: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient6(::windows_core::IUnknown); + impl IFabricApplicationManagementClient6 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient6, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient6 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient6") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient6 { + type Vtable = IFabricApplicationManagementClient6_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb01e63ee_1ea4_4181_95c7_983b32e16848); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient6_Vtbl where { pub base__ : IFabricApplicationManagementClient5_Vtbl , pub BeginUpdateApplication :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUpdateApplication :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient7(::windows_core::IUnknown); + impl IFabricApplicationManagementClient7 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient7, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient7 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient7 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient7 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient7") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient7 { + type Vtable = IFabricApplicationManagementClient7_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26844276_25b1_4f8c_adbe_b1b3a3083c17); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient7_Vtbl { + pub base__: IFabricApplicationManagementClient6_Vtbl, + pub BeginDeleteApplication2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteApplication2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient8(::windows_core::IUnknown); + impl IFabricApplicationManagementClient8 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionApplicationType2( + &self, + description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient8, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient8 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient8 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient8 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient8") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient8 { + type Vtable = IFabricApplicationManagementClient8_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x97b38e85_7329_47ff_a8d2_b7cbf1603689); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient8_Vtbl where { pub base__ : IFabricApplicationManagementClient7_Vtbl , pub BeginProvisionApplicationType2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndProvisionApplicationType2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricApplicationManagementClient9(::windows_core::IUnknown); + impl IFabricApplicationManagementClient9 { + pub unsafe fn BeginProvisionApplicationType( + &self, + applicationbuildpath: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetApplicationManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepath: P1, + applicationpackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: P0, + applicationpackagepathinimagestore: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeployServicePackageToNode( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: P3, + timeoutmilliseconds: u32, + callback: P4, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeployServicePackageToNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackApplicationUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateApplication( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteApplication2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteApplication2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionApplicationType2( + &self, + description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionApplicationType2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionApplicationType2( + &self, + description : *const super::super:: FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionApplicationType2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationManagementClient9, + ::windows_core::IUnknown, + IFabricApplicationManagementClient, + IFabricApplicationManagementClient2, + IFabricApplicationManagementClient3, + IFabricApplicationManagementClient4, + IFabricApplicationManagementClient5, + IFabricApplicationManagementClient6, + IFabricApplicationManagementClient7, + IFabricApplicationManagementClient8 + ); + impl ::core::cmp::PartialEq for IFabricApplicationManagementClient9 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationManagementClient9 {} + impl ::core::fmt::Debug for IFabricApplicationManagementClient9 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationManagementClient9") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient9 { + type Vtable = IFabricApplicationManagementClient9_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationManagementClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26617b63_1350_4d7f_830c_2200978d31bb); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationManagementClient9_Vtbl where { pub base__ : IFabricApplicationManagementClient8_Vtbl , pub BeginUnprovisionApplicationType2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUnprovisionApplicationType2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricApplicationUpgradeProgressResult(::windows_core::IUnknown); + impl IFabricApplicationUpgradeProgressResult { + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_TargetApplicationTypeVersion)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_UpgradeState( + &self, + ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { + (::windows_core::Interface::vtable(self).get_UpgradeState)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationUpgradeProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult {} + impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationUpgradeProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult { + type Vtable = IFabricApplicationUpgradeProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1e4670f8_ede5_48ab_881f_c45a0f38413a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationUpgradeProgressResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ApplicationName: + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, + pub get_ApplicationTypeName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + pub get_TargetApplicationTypeVersion: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR, + pub get_UpgradeState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_APPLICATION_UPGRADE_STATE, + pub GetUpgradeDomains: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) + -> ::windows_core::HRESULT, + pub GetChangedUpgradeDomains: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + previousprogress: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricApplicationUpgradeProgressResult2(::windows_core::IUnknown); + impl IFabricApplicationUpgradeProgressResult2 { + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_TargetApplicationTypeVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeState( + &self, + ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { + (::windows_core::Interface::vtable(self) + .base__ + .get_UpgradeState)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn get_RollingUpgradeMode( + &self, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + (::windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_NextUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationUpgradeProgressResult2, + ::windows_core::IUnknown, + IFabricApplicationUpgradeProgressResult + ); + impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult2 {} + impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationUpgradeProgressResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult2 { + type Vtable = IFabricApplicationUpgradeProgressResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x62707ee5_b625_4489_aa4d_2e54b06ea248); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationUpgradeProgressResult2_Vtbl { + pub base__: IFabricApplicationUpgradeProgressResult_Vtbl, + pub get_RollingUpgradeMode: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_ROLLING_UPGRADE_MODE, + pub get_NextUpgradeDomain: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + } + #[repr(transparent)] + pub struct IFabricApplicationUpgradeProgressResult3(::windows_core::IUnknown); + impl IFabricApplicationUpgradeProgressResult3 { + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_TargetApplicationTypeVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeState( + &self, + ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_UpgradeState)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn get_RollingUpgradeMode( + &self, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + (::windows_core::Interface::vtable(self) + .base__ + .get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_NextUpgradeDomain)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeProgress( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS { + (::windows_core::Interface::vtable(self).get_UpgradeProgress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricApplicationUpgradeProgressResult3, + ::windows_core::IUnknown, + IFabricApplicationUpgradeProgressResult, + IFabricApplicationUpgradeProgressResult2 + ); + impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult3 {} + impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricApplicationUpgradeProgressResult3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult3 { + type Vtable = IFabricApplicationUpgradeProgressResult3_Vtbl; + } + impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricApplicationUpgradeProgressResult3_Vtbl where { pub base__ : IFabricApplicationUpgradeProgressResult2_Vtbl , pub get_UpgradeProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_UPGRADE_PROGRESS , } + #[repr(transparent)] + pub struct IFabricChaosDescriptionResult(::windows_core::IUnknown); + impl IFabricChaosDescriptionResult { + pub unsafe fn get_ChaosDescriptionResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_ChaosDescriptionResult)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricChaosDescriptionResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricChaosDescriptionResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricChaosDescriptionResult {} + impl ::core::fmt::Debug for IFabricChaosDescriptionResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricChaosDescriptionResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricChaosDescriptionResult { + type Vtable = IFabricChaosDescriptionResult_Vtbl; + } + impl ::core::clone::Clone for IFabricChaosDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricChaosDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricChaosDescriptionResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ChaosDescriptionResult: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CHAOS_DESCRIPTION, + } + #[repr(transparent)] + pub struct IFabricChaosEventsSegmentResult(::windows_core::IUnknown); + impl IFabricChaosEventsSegmentResult { + pub unsafe fn get_ChaosEventsSegmentResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT { + (::windows_core::Interface::vtable(self).get_ChaosEventsSegmentResult)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricChaosEventsSegmentResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricChaosEventsSegmentResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricChaosEventsSegmentResult {} + impl ::core::fmt::Debug for IFabricChaosEventsSegmentResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricChaosEventsSegmentResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricChaosEventsSegmentResult { + type Vtable = IFabricChaosEventsSegmentResult_Vtbl; + } + impl ::core::clone::Clone for IFabricChaosEventsSegmentResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricChaosEventsSegmentResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xde148299_c48a_4540_877b_5b1daa518d76); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricChaosEventsSegmentResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ChaosEventsSegmentResult: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT, + } + #[repr(transparent)] + pub struct IFabricChaosReportResult(::windows_core::IUnknown); + impl IFabricChaosReportResult { + pub unsafe fn get_ChaosReportResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_REPORT { + (::windows_core::Interface::vtable(self).get_ChaosReportResult)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricChaosReportResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricChaosReportResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricChaosReportResult {} + impl ::core::fmt::Debug for IFabricChaosReportResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricChaosReportResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricChaosReportResult { + type Vtable = IFabricChaosReportResult_Vtbl; + } + impl ::core::clone::Clone for IFabricChaosReportResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricChaosReportResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8952e931_b2b3_470a_b982_6b415f30dbc0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricChaosReportResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ChaosReportResult: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CHAOS_REPORT, + } + #[repr(transparent)] + pub struct IFabricChaosScheduleDescriptionResult(::windows_core::IUnknown); + impl IFabricChaosScheduleDescriptionResult { + pub unsafe fn get_ChaosScheduleDescriptionResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_ChaosScheduleDescriptionResult)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricChaosScheduleDescriptionResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricChaosScheduleDescriptionResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricChaosScheduleDescriptionResult {} + impl ::core::fmt::Debug for IFabricChaosScheduleDescriptionResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricChaosScheduleDescriptionResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricChaosScheduleDescriptionResult { + type Vtable = IFabricChaosScheduleDescriptionResult_Vtbl; + } + impl ::core::clone::Clone for IFabricChaosScheduleDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricChaosScheduleDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricChaosScheduleDescriptionResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ChaosScheduleDescriptionResult :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_CHAOS_SCHEDULE_DESCRIPTION , } + #[repr(transparent)] + pub struct IFabricClientConnectionEventHandler(::windows_core::IUnknown); + impl IFabricClientConnectionEventHandler { + pub unsafe fn OnConnected( + &self, + __midl__ifabricclientconnectioneventhandler0000: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnConnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0000 + .into_param() + .abi(), + ) + .ok() + } + pub unsafe fn OnDisconnected( + &self, + __midl__ifabricclientconnectioneventhandler0001: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnDisconnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0001 + .into_param() + .abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClientConnectionEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClientConnectionEventHandler {} + impl ::core::fmt::Debug for IFabricClientConnectionEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClientConnectionEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClientConnectionEventHandler { + type Vtable = IFabricClientConnectionEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricClientConnectionEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClientConnectionEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClientConnectionEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnConnected: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub OnDisconnected: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClientConnectionEventHandler2(::windows_core::IUnknown); + impl IFabricClientConnectionEventHandler2 { + pub unsafe fn OnConnected( + &self, + __midl__ifabricclientconnectioneventhandler0000: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.OnConnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0000 + .into_param() + .abi(), + ) + .ok() + } + pub unsafe fn OnDisconnected( + &self, + __midl__ifabricclientconnectioneventhandler0001: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .OnDisconnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0001 + .into_param() + .abi(), + ) + .ok() + } + pub unsafe fn OnClaimsRetrieval( + &self, + metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).OnClaimsRetrieval)( + ::windows_core::Interface::as_raw(self), + metadata, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClientConnectionEventHandler2, + ::windows_core::IUnknown, + IFabricClientConnectionEventHandler + ); + impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClientConnectionEventHandler2 {} + impl ::core::fmt::Debug for IFabricClientConnectionEventHandler2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClientConnectionEventHandler2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClientConnectionEventHandler2 { + type Vtable = IFabricClientConnectionEventHandler2_Vtbl; + } + impl ::core::clone::Clone for IFabricClientConnectionEventHandler2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClientConnectionEventHandler2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClientConnectionEventHandler2_Vtbl { + pub base__: IFabricClientConnectionEventHandler_Vtbl, + pub OnClaimsRetrieval: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, + token: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClientSettings(::windows_core::IUnknown); + impl IFabricClientSettings { + pub unsafe fn SetSecurityCredentials( + &self, + securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetSecurityCredentials)( + ::windows_core::Interface::as_raw(self), + securitycredentials, + ) + .ok() + } + pub unsafe fn SetKeepAlive( + &self, + keepaliveintervalinseconds: u32, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetKeepAlive)( + ::windows_core::Interface::as_raw(self), + keepaliveintervalinseconds, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClientSettings, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricClientSettings { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClientSettings {} + impl ::core::fmt::Debug for IFabricClientSettings { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClientSettings") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClientSettings { + type Vtable = IFabricClientSettings_Vtbl; + } + impl ::core::clone::Clone for IFabricClientSettings { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClientSettings { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb0e7dee0_cf64_11e0_9572_0800200c9a66); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClientSettings_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub SetSecurityCredentials: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + ) + -> ::windows_core::HRESULT, + pub SetKeepAlive: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + keepaliveintervalinseconds: u32, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClientSettings2(::windows_core::IUnknown); + impl IFabricClientSettings2 { + pub unsafe fn SetSecurityCredentials( + &self, + securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .SetSecurityCredentials)( + ::windows_core::Interface::as_raw(self), + securitycredentials, + ) + .ok() + } + pub unsafe fn SetKeepAlive( + &self, + keepaliveintervalinseconds: u32, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.SetKeepAlive)( + ::windows_core::Interface::as_raw(self), + keepaliveintervalinseconds, + ) + .ok() + } + pub unsafe fn GetSettings( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetSettings)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn SetSettings( + &self, + fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetSettings)( + ::windows_core::Interface::as_raw(self), + fabricclientsettings, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClientSettings2, + ::windows_core::IUnknown, + IFabricClientSettings + ); + impl ::core::cmp::PartialEq for IFabricClientSettings2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClientSettings2 {} + impl ::core::fmt::Debug for IFabricClientSettings2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClientSettings2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClientSettings2 { + type Vtable = IFabricClientSettings2_Vtbl; + } + impl ::core::clone::Clone for IFabricClientSettings2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClientSettings2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClientSettings2_Vtbl { + pub base__: IFabricClientSettings_Vtbl, + pub GetSettings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub SetSettings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClientSettingsResult(::windows_core::IUnknown); + impl IFabricClientSettingsResult { + pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS { + (::windows_core::Interface::vtable(self).get_Settings)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClientSettingsResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricClientSettingsResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClientSettingsResult {} + impl ::core::fmt::Debug for IFabricClientSettingsResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClientSettingsResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClientSettingsResult { + type Vtable = IFabricClientSettingsResult_Vtbl; + } + impl ::core::clone::Clone for IFabricClientSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClientSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3b825afd_cb31_4589_961e_e3778aa23a60); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClientSettingsResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Settings: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CLIENT_SETTINGS, + } + #[repr(transparent)] + pub struct IFabricClusterHealthResult(::windows_core::IUnknown); + impl IFabricClusterHealthResult { + pub unsafe fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH { + (::windows_core::Interface::vtable(self).get_ClusterHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricClusterHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterHealthResult {} + impl ::core::fmt::Debug for IFabricClusterHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterHealthResult { + type Vtable = IFabricClusterHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ClusterHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CLUSTER_HEALTH, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient(::windows_core::IUnknown); + impl IFabricClusterManagementClient { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient {} + impl ::core::fmt::Debug for IFabricClusterManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient { + type Vtable = IFabricClusterManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginNodeStateRemoved: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndNodeStateRemoved: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRecoverPartitions: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRecoverPartitions: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient10(::windows_core::IUnknown); + impl IFabricClusterManagementClient10 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + startupgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterConfiguration( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradesPendingApproval( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradesPendingApproval( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartApprovedUpgrades( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartApprovedUpgrades( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest2( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradeOrchestrationServiceState( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginSetUpgradeOrchestrationServiceState( + &self, + state: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginSetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + state.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndSetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterConfiguration2( + &self, + apiversion: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterConfiguration2)( + ::windows_core::Interface::as_raw(self), + apiversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfiguration2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterConfiguration2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient10, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6, + IFabricClusterManagementClient7, + IFabricClusterManagementClient8, + IFabricClusterManagementClient9 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient10 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient10 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient10 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient10") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient10 { + type Vtable = IFabricClusterManagementClient10_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient10_Vtbl { + pub base__: IFabricClusterManagementClient9_Vtbl, + pub BeginGetClusterConfiguration2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + apiversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetClusterConfiguration2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient2(::windows_core::IUnknown); + impl IFabricClusterManagementClient2 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient2, + ::windows_core::IUnknown, + IFabricClusterManagementClient + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient2 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient2 { + type Vtable = IFabricClusterManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf9493e16_6a49_4d79_8695_5a6826b504c5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient2_Vtbl { + pub base__: IFabricClusterManagementClient_Vtbl, + pub BeginDeactivateNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeactivateNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginActivateNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndActivateNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginProvisionFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + codefilepath: ::windows_core::PCWSTR, + clustermanifestfilepath: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndProvisionFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUpgradeFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpgradeFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetFabricUpgradeProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetFabricUpgradeProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginMoveNextFabricUpgradeDomain: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + progress: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndMoveNextFabricUpgradeDomain: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginMoveNextFabricUpgradeDomain2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + nextupgradedomain: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndMoveNextFabricUpgradeDomain2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginUnprovisionFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + codeversion: ::windows_core::PCWSTR, + configversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUnprovisionFabric: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetClusterManifest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetClusterManifest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRecoverPartition: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRecoverPartition: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRecoverServicePartitions: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRecoverServicePartitions: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginRecoverSystemPartitions: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRecoverSystemPartitions: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient3(::windows_core::IUnknown); + impl IFabricClusterManagementClient3 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient3, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient3 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient3 { + type Vtable = IFabricClusterManagementClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient3_Vtbl { + pub base__: IFabricClusterManagementClient2_Vtbl, + pub BeginUpdateFabricUpgrade: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpdateFabricUpgrade: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginStopNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndStopNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRestartNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRestartNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginStartNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndStartNode: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub CopyClusterPackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpath: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepath: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) + -> ::windows_core::HRESULT, + pub RemoveClusterPackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient4(::windows_core::IUnknown); + impl IFabricClusterManagementClient4 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient4, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient4 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient4 { + type Vtable = IFabricClusterManagementClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb6b12671_f283_4d71_a818_0260549bc83e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient4_Vtbl { + pub base__: IFabricClusterManagementClient3_Vtbl, + pub BeginRollbackFabricUpgrade: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRollbackFabricUpgrade: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient5(::windows_core::IUnknown); + impl IFabricClusterManagementClient5 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient5, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient5 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient5") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient5 { + type Vtable = IFabricClusterManagementClient5_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa6ddd816_a100_11e4_89d3_123b93f75cba); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient5_Vtbl { + pub base__: IFabricClusterManagementClient4_Vtbl, + pub BeginResetPartitionLoad: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndResetPartitionLoad: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient6(::windows_core::IUnknown); + impl IFabricClusterManagementClient6 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient6, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient6 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient6") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient6 { + type Vtable = IFabricClusterManagementClient6_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9e454ae8_4b8c_4136_884a_37b0b92cc855); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient6_Vtbl { + pub base__: IFabricClusterManagementClient5_Vtbl, + pub BeginToggleVerboseServicePlacementHealthReporting: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + enabled: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndToggleVerboseServicePlacementHealthReporting: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient7(::windows_core::IUnknown); + impl IFabricClusterManagementClient7 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + startupgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .EndGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterConfiguration( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradesPendingApproval( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradesPendingApproval( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartApprovedUpgrades( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartApprovedUpgrades( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient7, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient7 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient7 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient7 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient7") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient7 { + type Vtable = IFabricClusterManagementClient7_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9b9105ac_d595_4f59_9c94_1ffdbf92a876); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient7_Vtbl { + pub base__: IFabricClusterManagementClient6_Vtbl, + pub BeginUpgradeConfiguration: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpgradeConfiguration: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetClusterConfigurationUpgradeStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetClusterConfigurationUpgradeStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginGetClusterConfiguration: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetClusterConfiguration: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginGetUpgradesPendingApproval: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetUpgradesPendingApproval: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginStartApprovedUpgrades: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndStartApprovedUpgrades: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient8(::windows_core::IUnknown); + impl IFabricClusterManagementClient8 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + startupgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterConfiguration( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradesPendingApproval( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradesPendingApproval( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartApprovedUpgrades( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartApprovedUpgrades( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest2( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient8, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6, + IFabricClusterManagementClient7 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient8 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient8 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient8 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient8") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient8 { + type Vtable = IFabricClusterManagementClient8_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0b79641c_79a6_4162_904a_840babd08381); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient8_Vtbl { + pub base__: IFabricClusterManagementClient7_Vtbl, + pub BeginGetClusterManifest2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetClusterManifest2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricClusterManagementClient9(::windows_core::IUnknown); + impl IFabricClusterManagementClient9 { + pub unsafe fn BeginNodeStateRemoved( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNodeStateRemoved( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateNode( + &self, + nodename: P0, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + intent, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateNode( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginActivateNode( + &self, + nodename: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProvisionFabric( + &self, + codefilepath: P0, + clustermanifestfilepath: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProvisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetFabricUpgradeProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveNextFabricUpgradeDomain2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUnprovisionFabric( + &self, + codeversion: P0, + configversion: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnprovisionFabric( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRecoverPartition( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverPartition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverServicePartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRecoverSystemPartitions( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn CopyClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpath: P1, + clustermanifestpathinimagestore: P2, + codepackagepath: P3, + codepackagepathinimagestore: P4, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: P0, + clustermanifestpathinimagestore: P1, + codepackagepathinimagestore: P2, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRollbackFabricUpgrade( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginResetPartitionLoad( + &self, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResetPartitionLoad( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + startupgradedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpgradeConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterConfiguration( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterConfiguration( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradesPendingApproval( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradesPendingApproval( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartApprovedUpgrades( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartApprovedUpgrades( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetClusterManifest2( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterManifest2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUpgradeOrchestrationServiceState( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginGetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . EndGetUpgradeOrchestrationServiceState ) ( ::windows_core::Interface::as_raw ( self ) , context . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + pub unsafe fn BeginSetUpgradeOrchestrationServiceState( + &self, + state: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginSetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + state.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSetUpgradeOrchestrationServiceState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . EndSetUpgradeOrchestrationServiceState ) ( ::windows_core::Interface::as_raw ( self ) , context . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricClusterManagementClient9, + ::windows_core::IUnknown, + IFabricClusterManagementClient, + IFabricClusterManagementClient2, + IFabricClusterManagementClient3, + IFabricClusterManagementClient4, + IFabricClusterManagementClient5, + IFabricClusterManagementClient6, + IFabricClusterManagementClient7, + IFabricClusterManagementClient8 + ); + impl ::core::cmp::PartialEq for IFabricClusterManagementClient9 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricClusterManagementClient9 {} + impl ::core::fmt::Debug for IFabricClusterManagementClient9 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricClusterManagementClient9") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricClusterManagementClient9 { + type Vtable = IFabricClusterManagementClient9_Vtbl; + } + impl ::core::clone::Clone for IFabricClusterManagementClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricClusterManagementClient9_Vtbl { + pub base__: IFabricClusterManagementClient8_Vtbl, + pub BeginGetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginSetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + state: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndSetUpgradeOrchestrationServiceState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricDeployedApplicationHealthResult(::windows_core::IUnknown); + impl IFabricDeployedApplicationHealthResult { + pub unsafe fn get_DeployedApplicationHealth( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH { + (::windows_core::Interface::vtable(self).get_DeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricDeployedApplicationHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricDeployedApplicationHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricDeployedApplicationHealthResult {} + impl ::core::fmt::Debug for IFabricDeployedApplicationHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricDeployedApplicationHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricDeployedApplicationHealthResult { + type Vtable = IFabricDeployedApplicationHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricDeployedApplicationHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricDeployedApplicationHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4df50bf4_7c28_4210_94f7_50625df6c942); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricDeployedApplicationHealthResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedApplicationHealth :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH , } + #[repr(transparent)] + pub struct IFabricDeployedServicePackageHealthResult(::windows_core::IUnknown); + impl IFabricDeployedServicePackageHealthResult { + pub unsafe fn get_DeployedServicePackageHealth( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + (::windows_core::Interface::vtable(self).get_DeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricDeployedServicePackageHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricDeployedServicePackageHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricDeployedServicePackageHealthResult {} + impl ::core::fmt::Debug for IFabricDeployedServicePackageHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricDeployedServicePackageHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricDeployedServicePackageHealthResult { + type Vtable = IFabricDeployedServicePackageHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricDeployedServicePackageHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricDeployedServicePackageHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricDeployedServicePackageHealthResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedServicePackageHealth :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH , } + #[repr(transparent)] + pub struct IFabricFaultManagementClient(::windows_core::IUnknown); + impl IFabricFaultManagementClient { + pub unsafe fn BeginRestartNode( + &self, + description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartNode( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartNode( + &self, + description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNode)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNode( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStopNode( + &self, + description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopNode)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopNode( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRestartDeployedCodePackage( + &self, + description : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartDeployedCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMovePrimary( + &self, + description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMovePrimary)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMovePrimary( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndMovePrimary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginMoveSecondary( + &self, + description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveSecondary)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndMoveSecondary( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndMoveSecondary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricFaultManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricFaultManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricFaultManagementClient {} + impl ::core::fmt::Debug for IFabricFaultManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricFaultManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricFaultManagementClient { + type Vtable = IFabricFaultManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricFaultManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricFaultManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x769e1838_8726_4dcd_a3c0_211673a6967a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricFaultManagementClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginRestartNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_RESTART_NODE_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndRestartNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStartNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_START_NODE_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStopNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_STOP_NODE_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStopNode :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginMovePrimary :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_MOVE_PRIMARY_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndMovePrimary :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginMoveSecondary :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_MOVE_SECONDARY_DESCRIPTION2 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndMoveSecondary :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricGatewayInformationResult(::windows_core::IUnknown); + impl IFabricGatewayInformationResult { + pub unsafe fn get_GatewayInformation( + &self, + ) -> *mut super::super::FABRIC_GATEWAY_INFORMATION { + (::windows_core::Interface::vtable(self).get_GatewayInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGatewayInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGatewayInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGatewayInformationResult {} + impl ::core::fmt::Debug for IFabricGatewayInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGatewayInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGatewayInformationResult { + type Vtable = IFabricGatewayInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGatewayInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGatewayInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa57e7740_fa33_448e_9f35_8bf802a713aa); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGatewayInformationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_GatewayInformation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_GATEWAY_INFORMATION, + } + #[repr(transparent)] + pub struct IFabricGetApplicationListResult(::windows_core::IUnknown); + impl IFabricGetApplicationListResult { + pub unsafe fn get_ApplicationList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ApplicationList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationListResult {} + impl ::core::fmt::Debug for IFabricGetApplicationListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationListResult { + type Vtable = IFabricGetApplicationListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf038c61e_7059_41b6_8dea_d304a2080f46); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetApplicationListResult2(::windows_core::IUnknown); + impl IFabricGetApplicationListResult2 { + pub unsafe fn get_ApplicationList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationList)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationListResult2, + ::windows_core::IUnknown, + IFabricGetApplicationListResult + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationListResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationListResult2 {} + impl ::core::fmt::Debug for IFabricGetApplicationListResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationListResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationListResult2 { + type Vtable = IFabricGetApplicationListResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6637a860_26bc_4f1a_902f_f418fcfe1e51); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationListResult2_Vtbl { + pub base__: IFabricGetApplicationListResult_Vtbl, + pub get_PagingStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PAGING_STATUS, + } + #[repr(transparent)] + pub struct IFabricGetApplicationLoadInformationResult(::windows_core::IUnknown); + impl IFabricGetApplicationLoadInformationResult { + pub unsafe fn get_ApplicationLoadInformation( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION { + (::windows_core::Interface::vtable(self).get_ApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationLoadInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationLoadInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationLoadInformationResult {} + impl ::core::fmt::Debug for IFabricGetApplicationLoadInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationLoadInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationLoadInformationResult { + type Vtable = IFabricGetApplicationLoadInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x38fd0512_7586_4bd5_9616_b7070cf025c0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationLoadInformationResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_LOAD_INFORMATION , } + #[repr(transparent)] + pub struct IFabricGetApplicationNameResult(::windows_core::IUnknown); + impl IFabricGetApplicationNameResult { + pub unsafe fn get_ApplicationName( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT { + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationNameResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationNameResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationNameResult {} + impl ::core::fmt::Debug for IFabricGetApplicationNameResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationNameResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationNameResult { + type Vtable = IFabricGetApplicationNameResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationNameResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationNameResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x258dbcc8_ac9a_47ff_838b_57ff506c73b1); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationNameResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationName :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_NAME_QUERY_RESULT , } + #[repr(transparent)] + pub struct IFabricGetApplicationNetworkListResult(::windows_core::IUnknown); + impl IFabricGetApplicationNetworkListResult { + pub unsafe fn get_ApplicationNetworkList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_ApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationNetworkListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationNetworkListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationNetworkListResult {} + impl ::core::fmt::Debug for IFabricGetApplicationNetworkListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationNetworkListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationNetworkListResult { + type Vtable = IFabricGetApplicationNetworkListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4f9d0390_aa08_4dee_ba49_62891eb47c37); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationNetworkListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetApplicationTypeListResult(::windows_core::IUnknown); + impl IFabricGetApplicationTypeListResult { + pub unsafe fn get_ApplicationTypeList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationTypeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationTypeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationTypeListResult {} + impl ::core::fmt::Debug for IFabricGetApplicationTypeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationTypeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationTypeListResult { + type Vtable = IFabricGetApplicationTypeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x944f7a70_224e_4191_8dd1_bba46dc88dd2); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetApplicationTypePagedListResult(::windows_core::IUnknown); + impl IFabricGetApplicationTypePagedListResult { + pub unsafe fn get_ApplicationTypePagedList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationTypePagedListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetApplicationTypePagedListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetApplicationTypePagedListResult {} + impl ::core::fmt::Debug for IFabricGetApplicationTypePagedListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetApplicationTypePagedListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetApplicationTypePagedListResult { + type Vtable = IFabricGetApplicationTypePagedListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetApplicationTypePagedListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetApplicationTypePagedListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5d8dde9c_05e8_428d_b494_43873d7c2db8); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetApplicationTypePagedListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationTypePagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetClusterHealthChunkResult(::windows_core::IUnknown); + impl IFabricGetClusterHealthChunkResult { + pub unsafe fn get_ClusterHealthChunk( + &self, + ) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK { + (::windows_core::Interface::vtable(self).get_ClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetClusterHealthChunkResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetClusterHealthChunkResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetClusterHealthChunkResult {} + impl ::core::fmt::Debug for IFabricGetClusterHealthChunkResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetClusterHealthChunkResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetClusterHealthChunkResult { + type Vtable = IFabricGetClusterHealthChunkResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetClusterHealthChunkResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetClusterHealthChunkResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7fefcf06_c840_4d8a_9cc7_36f080e0e121); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetClusterHealthChunkResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ClusterHealthChunk: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK, + } + #[repr(transparent)] + pub struct IFabricGetClusterLoadInformationResult(::windows_core::IUnknown); + impl IFabricGetClusterLoadInformationResult { + pub unsafe fn get_ClusterLoadInformation( + &self, + ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION { + (::windows_core::Interface::vtable(self).get_ClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetClusterLoadInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetClusterLoadInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetClusterLoadInformationResult {} + impl ::core::fmt::Debug for IFabricGetClusterLoadInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetClusterLoadInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetClusterLoadInformationResult { + type Vtable = IFabricGetClusterLoadInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetClusterLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetClusterLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetClusterLoadInformationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ClusterLoadInformation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION, + } + #[repr(transparent)] + pub struct IFabricGetDeployedApplicationListResult(::windows_core::IUnknown); + impl IFabricGetDeployedApplicationListResult { + pub unsafe fn get_DeployedApplicationList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedApplicationListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedApplicationListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedApplicationListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedApplicationListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedApplicationListResult { + type Vtable = IFabricGetDeployedApplicationListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5722b789_3936_4c33_9f7a_342967457612); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedApplicationListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetDeployedApplicationPagedListResult(::windows_core::IUnknown); + impl IFabricGetDeployedApplicationPagedListResult { + pub unsafe fn get_DeployedApplicationPagedList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedApplicationPagedListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationPagedListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedApplicationPagedListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedApplicationPagedListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedApplicationPagedListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedApplicationPagedListResult { + type Vtable = IFabricGetDeployedApplicationPagedListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedApplicationPagedListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedApplicationPagedListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetDeployedCodePackageListResult(::windows_core::IUnknown); + impl IFabricGetDeployedCodePackageListResult { + pub unsafe fn get_DeployedCodePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedCodePackageListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedCodePackageListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedCodePackageListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedCodePackageListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedCodePackageListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedCodePackageListResult { + type Vtable = IFabricGetDeployedCodePackageListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedCodePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedCodePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3f390652_c0dc_4919_8a7f_8ae1e827de0c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedCodePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetDeployedNetworkCodePackageListResult(::windows_core::IUnknown); + impl IFabricGetDeployedNetworkCodePackageListResult { + pub unsafe fn get_DeployedNetworkCodePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedNetworkCodePackageList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedNetworkCodePackageListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkCodePackageListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedNetworkCodePackageListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedNetworkCodePackageListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedNetworkCodePackageListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedNetworkCodePackageListResult { + type Vtable = IFabricGetDeployedNetworkCodePackageListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedNetworkCodePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedNetworkCodePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6586d264_a96e_4f46_9388_189de5d61d6d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetDeployedNetworkListResult(::windows_core::IUnknown); + impl IFabricGetDeployedNetworkListResult { + pub unsafe fn get_DeployedNetworkList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_DeployedNetworkList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedNetworkListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedNetworkListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedNetworkListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedNetworkListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedNetworkListResult { + type Vtable = IFabricGetDeployedNetworkListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x347f5d8c_1abd_48e1_a7d1_9083556dafd3); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedNetworkListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetDeployedReplicaListResult(::windows_core::IUnknown); + impl IFabricGetDeployedReplicaListResult { + pub unsafe fn get_DeployedReplicaList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedReplicaListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedReplicaListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedReplicaListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedReplicaListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedReplicaListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedReplicaListResult { + type Vtable = IFabricGetDeployedReplicaListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedReplicaListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedReplicaListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedReplicaListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetDeployedServicePackageListResult(::windows_core::IUnknown); + impl IFabricGetDeployedServicePackageListResult { + pub unsafe fn get_DeployedServicePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServicePackageListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedServicePackageListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedServicePackageListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedServicePackageListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedServicePackageListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedServicePackageListResult { + type Vtable = IFabricGetDeployedServicePackageListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedServicePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServicePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x65851388_0421_4107_977b_39f4e15440d4); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedServicePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetDeployedServiceReplicaDetailResult(::windows_core::IUnknown); + impl IFabricGetDeployedServiceReplicaDetailResult { + pub unsafe fn get_ReplicaDetail( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM + { + (::windows_core::Interface::vtable(self).get_ReplicaDetail)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServiceReplicaDetailResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedServiceReplicaDetailResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedServiceReplicaDetailResult {} + impl ::core::fmt::Debug for IFabricGetDeployedServiceReplicaDetailResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedServiceReplicaDetailResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedServiceReplicaDetailResult { + type Vtable = IFabricGetDeployedServiceReplicaDetailResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedServiceReplicaDetailResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServiceReplicaDetailResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6d9d355e_89cf_4928_b758_b11ca4664fbe); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , } + #[repr(transparent)] + pub struct IFabricGetDeployedServiceTypeListResult(::windows_core::IUnknown); + impl IFabricGetDeployedServiceTypeListResult { + pub unsafe fn get_DeployedServiceTypeList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_DeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetDeployedServiceTypeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetDeployedServiceTypeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetDeployedServiceTypeListResult {} + impl ::core::fmt::Debug for IFabricGetDeployedServiceTypeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetDeployedServiceTypeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetDeployedServiceTypeListResult { + type Vtable = IFabricGetDeployedServiceTypeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetDeployedServiceTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServiceTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdba68c7a_3f77_49bb_b611_ff94df062b8d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetDeployedServiceTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetNetworkApplicationListResult(::windows_core::IUnknown); + impl IFabricGetNetworkApplicationListResult { + pub unsafe fn get_NetworkApplicationList( + &self, + ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_NetworkApplicationList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNetworkApplicationListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetNetworkApplicationListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNetworkApplicationListResult {} + impl ::core::fmt::Debug for IFabricGetNetworkApplicationListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNetworkApplicationListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNetworkApplicationListResult { + type Vtable = IFabricGetNetworkApplicationListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNetworkApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNetworkApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xad1f51ff_e244_498e_9f72_609b01124b84); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNetworkApplicationListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_NetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetNetworkListResult(::windows_core::IUnknown); + impl IFabricGetNetworkListResult { + pub unsafe fn get_NetworkList( + &self, + ) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_NetworkList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNetworkListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetNetworkListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNetworkListResult {} + impl ::core::fmt::Debug for IFabricGetNetworkListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNetworkListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNetworkListResult { + type Vtable = IFabricGetNetworkListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbd777a0f_2020_40bb_8f23_8756649cce47); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNetworkListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_NetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetNetworkNodeListResult(::windows_core::IUnknown); + impl IFabricGetNetworkNodeListResult { + pub unsafe fn get_NetworkNodeList( + &self, + ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_NetworkNodeList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNetworkNodeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetNetworkNodeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNetworkNodeListResult {} + impl ::core::fmt::Debug for IFabricGetNetworkNodeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNetworkNodeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNetworkNodeListResult { + type Vtable = IFabricGetNetworkNodeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNetworkNodeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNetworkNodeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ba780e9_58eb_478d_bc89_42c89e19d083); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNetworkNodeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_NetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_NODE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } + #[repr(transparent)] + pub struct IFabricGetNodeListResult(::windows_core::IUnknown); + impl IFabricGetNodeListResult { + pub unsafe fn get_NodeList( + &self, + ) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_NodeList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNodeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetNodeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNodeListResult {} + impl ::core::fmt::Debug for IFabricGetNodeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNodeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNodeListResult { + type Vtable = IFabricGetNodeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNodeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNodeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNodeListResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_NodeList: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST, + } + #[repr(transparent)] + pub struct IFabricGetNodeListResult2(::windows_core::IUnknown); + impl IFabricGetNodeListResult2 { + pub unsafe fn get_NodeList( + &self, + ) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).base__.get_NodeList)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNodeListResult2, + ::windows_core::IUnknown, + IFabricGetNodeListResult + ); + impl ::core::cmp::PartialEq for IFabricGetNodeListResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNodeListResult2 {} + impl ::core::fmt::Debug for IFabricGetNodeListResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNodeListResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNodeListResult2 { + type Vtable = IFabricGetNodeListResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNodeListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNodeListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4a0f2da7_f851_44e5_8e12_aa521076097a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNodeListResult2_Vtbl { + pub base__: IFabricGetNodeListResult_Vtbl, + pub get_PagingStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PAGING_STATUS, + } + #[repr(transparent)] + pub struct IFabricGetNodeLoadInformationResult(::windows_core::IUnknown); + impl IFabricGetNodeLoadInformationResult { + pub unsafe fn get_NodeLoadInformation( + &self, + ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION { + (::windows_core::Interface::vtable(self).get_NodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetNodeLoadInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetNodeLoadInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetNodeLoadInformationResult {} + impl ::core::fmt::Debug for IFabricGetNodeLoadInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetNodeLoadInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetNodeLoadInformationResult { + type Vtable = IFabricGetNodeLoadInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetNodeLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetNodeLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4332eb3a_aed6_86fe_c2fa_653123dea09b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetNodeLoadInformationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_NodeLoadInformation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION, + } + #[repr(transparent)] + pub struct IFabricGetPartitionListResult(::windows_core::IUnknown); + impl IFabricGetPartitionListResult { + pub unsafe fn get_PartitionList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_PartitionList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetPartitionListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetPartitionListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetPartitionListResult {} + impl ::core::fmt::Debug for IFabricGetPartitionListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetPartitionListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetPartitionListResult { + type Vtable = IFabricGetPartitionListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetPartitionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetPartitionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xafc1266c_967b_4769_9f8a_b249c5887ee6); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetPartitionListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_PartitionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetPartitionListResult2(::windows_core::IUnknown); + impl IFabricGetPartitionListResult2 { + pub unsafe fn get_PartitionList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_PartitionList)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetPartitionListResult2, + ::windows_core::IUnknown, + IFabricGetPartitionListResult + ); + impl ::core::cmp::PartialEq for IFabricGetPartitionListResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetPartitionListResult2 {} + impl ::core::fmt::Debug for IFabricGetPartitionListResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetPartitionListResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetPartitionListResult2 { + type Vtable = IFabricGetPartitionListResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricGetPartitionListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetPartitionListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb131b99a_d251_47b2_9d08_24ddd6793206); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetPartitionListResult2_Vtbl { + pub base__: IFabricGetPartitionListResult_Vtbl, + pub get_PagingStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PAGING_STATUS, + } + #[repr(transparent)] + pub struct IFabricGetPartitionLoadInformationResult(::windows_core::IUnknown); + impl IFabricGetPartitionLoadInformationResult { + pub unsafe fn get_PartitionLoadInformation( + &self, + ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION { + (::windows_core::Interface::vtable(self).get_PartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetPartitionLoadInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetPartitionLoadInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetPartitionLoadInformationResult {} + impl ::core::fmt::Debug for IFabricGetPartitionLoadInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetPartitionLoadInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetPartitionLoadInformationResult { + type Vtable = IFabricGetPartitionLoadInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetPartitionLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetPartitionLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetPartitionLoadInformationResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_PartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PARTITION_LOAD_INFORMATION , } + #[repr(transparent)] + pub struct IFabricGetProvisionedCodeVersionListResult(::windows_core::IUnknown); + impl IFabricGetProvisionedCodeVersionListResult { + pub unsafe fn get_ProvisionedCodeVersionList( + &self, + ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_ProvisionedCodeVersionList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetProvisionedCodeVersionListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetProvisionedCodeVersionListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetProvisionedCodeVersionListResult {} + impl ::core::fmt::Debug for IFabricGetProvisionedCodeVersionListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetProvisionedCodeVersionListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetProvisionedCodeVersionListResult { + type Vtable = IFabricGetProvisionedCodeVersionListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetProvisionedCodeVersionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetProvisionedCodeVersionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd042bdb6_4364_4818_b395_0e6b1a22cb11); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetProvisionedConfigVersionListResult(::windows_core::IUnknown); + impl IFabricGetProvisionedConfigVersionListResult { + pub unsafe fn get_ProvisionedConfigVersionList( + &self, + ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_ProvisionedConfigVersionList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetProvisionedConfigVersionListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetProvisionedConfigVersionListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetProvisionedConfigVersionListResult {} + impl ::core::fmt::Debug for IFabricGetProvisionedConfigVersionListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetProvisionedConfigVersionListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetProvisionedConfigVersionListResult { + type Vtable = IFabricGetProvisionedConfigVersionListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetProvisionedConfigVersionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetProvisionedConfigVersionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetRepairTaskListResult(::windows_core::IUnknown); + impl IFabricGetRepairTaskListResult { + pub unsafe fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST { + (::windows_core::Interface::vtable(self).get_Tasks)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetRepairTaskListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetRepairTaskListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetRepairTaskListResult {} + impl ::core::fmt::Debug for IFabricGetRepairTaskListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetRepairTaskListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetRepairTaskListResult { + type Vtable = IFabricGetRepairTaskListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetRepairTaskListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetRepairTaskListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x576b2462_5f69_4351_87c7_3ec2d1654a22); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetRepairTaskListResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Tasks: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_REPAIR_TASK_LIST, + } + #[repr(transparent)] + pub struct IFabricGetReplicaListResult(::windows_core::IUnknown); + impl IFabricGetReplicaListResult { + pub unsafe fn get_ReplicaList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ReplicaList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetReplicaListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetReplicaListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetReplicaListResult {} + impl ::core::fmt::Debug for IFabricGetReplicaListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetReplicaListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetReplicaListResult { + type Vtable = IFabricGetReplicaListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetReplicaListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetReplicaListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe00d3761_3ac5_407d_a04f_1b59486217cf); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetReplicaListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetReplicaListResult2(::windows_core::IUnknown); + impl IFabricGetReplicaListResult2 { + pub unsafe fn get_ReplicaList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ReplicaList)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetReplicaListResult2, + ::windows_core::IUnknown, + IFabricGetReplicaListResult + ); + impl ::core::cmp::PartialEq for IFabricGetReplicaListResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetReplicaListResult2 {} + impl ::core::fmt::Debug for IFabricGetReplicaListResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetReplicaListResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetReplicaListResult2 { + type Vtable = IFabricGetReplicaListResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricGetReplicaListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetReplicaListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0bc12f86_c157_4c0d_b274_01fb09145934); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetReplicaListResult2_Vtbl { + pub base__: IFabricGetReplicaListResult_Vtbl, + pub get_PagingStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PAGING_STATUS, + } + #[repr(transparent)] + pub struct IFabricGetReplicaLoadInformationResult(::windows_core::IUnknown); + impl IFabricGetReplicaLoadInformationResult { + pub unsafe fn get_ReplicaLoadInformation( + &self, + ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION { + (::windows_core::Interface::vtable(self).get_ReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetReplicaLoadInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetReplicaLoadInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetReplicaLoadInformationResult {} + impl ::core::fmt::Debug for IFabricGetReplicaLoadInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetReplicaLoadInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetReplicaLoadInformationResult { + type Vtable = IFabricGetReplicaLoadInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetReplicaLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetReplicaLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe4190ca0_225c_11e4_8c21_0800200c9a66); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetReplicaLoadInformationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ReplicaLoadInformation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION, + } + #[repr(transparent)] + pub struct IFabricGetRollingUpgradeMonitoringPolicyResult(::windows_core::IUnknown); + impl IFabricGetRollingUpgradeMonitoringPolicyResult { + pub unsafe fn get_Policy( + &self, + ) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + (::windows_core::Interface::vtable(self).get_Policy)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetRollingUpgradeMonitoringPolicyResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetRollingUpgradeMonitoringPolicyResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetRollingUpgradeMonitoringPolicyResult {} + impl ::core::fmt::Debug for IFabricGetRollingUpgradeMonitoringPolicyResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetRollingUpgradeMonitoringPolicyResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetRollingUpgradeMonitoringPolicyResult { + type Vtable = IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetRollingUpgradeMonitoringPolicyResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetRollingUpgradeMonitoringPolicyResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Policy :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_ROLLING_UPGRADE_MONITORING_POLICY , } + #[repr(transparent)] + pub struct IFabricGetServiceGroupMemberListResult(::windows_core::IUnknown); + impl IFabricGetServiceGroupMemberListResult { + pub unsafe fn get_ServiceGroupMemberList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_ServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceGroupMemberListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceGroupMemberListResult {} + impl ::core::fmt::Debug for IFabricGetServiceGroupMemberListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceGroupMemberListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceGroupMemberListResult { + type Vtable = IFabricGetServiceGroupMemberListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceGroupMemberListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceGroupMemberListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceGroupMemberListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetServiceGroupMemberTypeListResult(::windows_core::IUnknown); + impl IFabricGetServiceGroupMemberTypeListResult { + pub unsafe fn get_ServiceGroupMemberTypeList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST + { + (::windows_core::Interface::vtable(self).get_ServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceGroupMemberTypeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberTypeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceGroupMemberTypeListResult {} + impl ::core::fmt::Debug for IFabricGetServiceGroupMemberTypeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceGroupMemberTypeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceGroupMemberTypeListResult { + type Vtable = IFabricGetServiceGroupMemberTypeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceGroupMemberTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceGroupMemberTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5e572763_29a9_463a_b602_1332c0f60e6b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetServiceListResult(::windows_core::IUnknown); + impl IFabricGetServiceListResult { + pub unsafe fn get_ServiceList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ServiceList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetServiceListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceListResult {} + impl ::core::fmt::Debug for IFabricGetServiceListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceListResult { + type Vtable = IFabricGetServiceListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetServiceListResult2(::windows_core::IUnknown); + impl IFabricGetServiceListResult2 { + pub unsafe fn get_ServiceList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceList)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceListResult2, + ::windows_core::IUnknown, + IFabricGetServiceListResult + ); + impl ::core::cmp::PartialEq for IFabricGetServiceListResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceListResult2 {} + impl ::core::fmt::Debug for IFabricGetServiceListResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceListResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceListResult2 { + type Vtable = IFabricGetServiceListResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x30263683_4b25_4ec3_86d7_94ed86e7a8bf); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceListResult2_Vtbl { + pub base__: IFabricGetServiceListResult_Vtbl, + pub get_PagingStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PAGING_STATUS, + } + #[repr(transparent)] + pub struct IFabricGetServiceNameResult(::windows_core::IUnknown); + impl IFabricGetServiceNameResult { + pub unsafe fn get_ServiceName( + &self, + ) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT { + (::windows_core::Interface::vtable(self).get_ServiceName)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceNameResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetServiceNameResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceNameResult {} + impl ::core::fmt::Debug for IFabricGetServiceNameResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceNameResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceNameResult { + type Vtable = IFabricGetServiceNameResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceNameResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceNameResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceNameResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceName :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_NAME_QUERY_RESULT , } + #[repr(transparent)] + pub struct IFabricGetServiceTypeListResult(::windows_core::IUnknown); + impl IFabricGetServiceTypeListResult { + pub unsafe fn get_ServiceTypeList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_ServiceTypeList)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetServiceTypeListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetServiceTypeListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetServiceTypeListResult {} + impl ::core::fmt::Debug for IFabricGetServiceTypeListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetServiceTypeListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetServiceTypeListResult { + type Vtable = IFabricGetServiceTypeListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetServiceTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetServiceTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetServiceTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST , } + #[repr(transparent)] + pub struct IFabricGetUnplacedReplicaInformationResult(::windows_core::IUnknown); + impl IFabricGetUnplacedReplicaInformationResult { + pub unsafe fn get_UnplacedReplicaInformation( + &self, + ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION { + (::windows_core::Interface::vtable(self).get_UnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetUnplacedReplicaInformationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetUnplacedReplicaInformationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetUnplacedReplicaInformationResult {} + impl ::core::fmt::Debug for IFabricGetUnplacedReplicaInformationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetUnplacedReplicaInformationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetUnplacedReplicaInformationResult { + type Vtable = IFabricGetUnplacedReplicaInformationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetUnplacedReplicaInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetUnplacedReplicaInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9d86a611_3fd3_451b_9495_6a831f417473); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_UnplacedReplicaInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION , } + #[repr(transparent)] + pub struct IFabricHealthClient(::windows_core::IUnknown); + impl IFabricHealthClient { + pub unsafe fn ReportHealth( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportHealth)( + ::windows_core::Interface::as_raw(self), + healthreport, + ) + .ok() + } + pub unsafe fn BeginGetClusterHealth( + &self, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth( + &self, + nodename: P0, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth( + &self, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth( + &self, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth( + &self, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth( + &self, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + replicaid, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth( + &self, + applicationname: *const u16, + nodename: P0, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: *const u16, + servicemanifestname: P0, + nodename: P1, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricHealthClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricHealthClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricHealthClient {} + impl ::core::fmt::Debug for IFabricHealthClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricHealthClient").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricHealthClient { + type Vtable = IFabricHealthClient_Vtbl; + } + impl ::core::clone::Clone for IFabricHealthClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricHealthClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricHealthClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub ReportHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) + -> ::windows_core::HRESULT, + pub BeginGetClusterHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetClusterHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetNodeHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetNodeHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetApplicationHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetApplicationHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetServiceHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetServiceHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetPartitionHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetPartitionHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetReplicaHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetReplicaHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetDeployedApplicationHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetDeployedApplicationHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginGetDeployedServicePackageHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicemanifestname: ::windows_core::PCWSTR, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetDeployedServicePackageHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricHealthClient2(::windows_core::IUnknown); + impl IFabricHealthClient2 { + pub unsafe fn ReportHealth( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportHealth)( + ::windows_core::Interface::as_raw(self), + healthreport, + ) + .ok() + } + pub unsafe fn BeginGetClusterHealth( + &self, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth( + &self, + nodename: P0, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth( + &self, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth( + &self, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth( + &self, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth( + &self, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + replicaid, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth( + &self, + applicationname: *const u16, + nodename: P0, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: *const u16, + servicemanifestname: P0, + nodename: P1, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterHealth2( + &self, + querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth2( + &self, + querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth2( + &self, + querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth2( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth2( + &self, + querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricHealthClient2, + ::windows_core::IUnknown, + IFabricHealthClient + ); + impl ::core::cmp::PartialEq for IFabricHealthClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricHealthClient2 {} + impl ::core::fmt::Debug for IFabricHealthClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricHealthClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricHealthClient2 { + type Vtable = IFabricHealthClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricHealthClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricHealthClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x66cbc014_d7b3_4f81_a498_e580feb9a1f5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricHealthClient2_Vtbl where { pub base__ : IFabricHealthClient_Vtbl , pub BeginGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricHealthClient3(::windows_core::IUnknown); + impl IFabricHealthClient3 { + pub unsafe fn ReportHealth( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportHealth)( + ::windows_core::Interface::as_raw(self), healthreport + ) + .ok() + } + pub unsafe fn BeginGetClusterHealth( + &self, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth( + &self, + nodename: P0, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth( + &self, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth( + &self, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth( + &self, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth( + &self, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + replicaid, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth( + &self, + applicationname: *const u16, + nodename: P0, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: *const u16, + servicemanifestname: P0, + nodename: P1, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterHealth2( + &self, + querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth2( + &self, + querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth2( + &self, + querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth2( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth2( + &self, + querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterHealthChunk( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealthChunk( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricHealthClient3, + ::windows_core::IUnknown, + IFabricHealthClient, + IFabricHealthClient2 + ); + impl ::core::cmp::PartialEq for IFabricHealthClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricHealthClient3 {} + impl ::core::fmt::Debug for IFabricHealthClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricHealthClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricHealthClient3 { + type Vtable = IFabricHealthClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricHealthClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricHealthClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdd3e4497_3373_458d_ad22_c88ebd27493e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricHealthClient3_Vtbl where { pub base__ : IFabricHealthClient2_Vtbl , pub BeginGetClusterHealthChunk :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetClusterHealthChunk :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricHealthClient4(::windows_core::IUnknown); + impl IFabricHealthClient4 { + pub unsafe fn ReportHealth( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportHealth)( + ::windows_core::Interface::as_raw(self), healthreport + ) + .ok() + } + pub unsafe fn BeginGetClusterHealth( + &self, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth( + &self, + nodename: P0, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth( + &self, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth( + &self, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth( + &self, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth( + &self, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(partitionid), + replicaid, + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth( + &self, + applicationname: *const u16, + nodename: P0, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: *const u16, + servicemanifestname: P0, + nodename: P1, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterHealth2( + &self, + querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeHealth2( + &self, + querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceHealth2( + &self, + querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionHealth2( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaHealth2( + &self, + querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageHealth2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterHealthChunk( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterHealthChunk( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportHealth2( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportHealth2)( + ::windows_core::Interface::as_raw(self), + healthreport, + sendoptions, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricHealthClient4, + ::windows_core::IUnknown, + IFabricHealthClient, + IFabricHealthClient2, + IFabricHealthClient3 + ); + impl ::core::cmp::PartialEq for IFabricHealthClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricHealthClient4 {} + impl ::core::fmt::Debug for IFabricHealthClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricHealthClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricHealthClient4 { + type Vtable = IFabricHealthClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricHealthClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricHealthClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9f0401af_4909_404f_8696_0a71bd753e98); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricHealthClient4_Vtbl { + pub base__: IFabricHealthClient3_Vtbl, + pub ReportHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricInfrastructureServiceClient(::windows_core::IUnknown); + impl IFabricInfrastructureServiceClient { + pub unsafe fn BeginInvokeInfrastructureCommand( + &self, + servicename: *const u16, + command: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginInvokeInfrastructureCommand)( + ::windows_core::Interface::as_raw(self), + servicename, + command.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndInvokeInfrastructureCommand( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndInvokeInfrastructureCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginInvokeInfrastructureQuery( + &self, + servicename: *const u16, + command: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginInvokeInfrastructureQuery)( + ::windows_core::Interface::as_raw(self), + servicename, + command.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndInvokeInfrastructureQuery( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndInvokeInfrastructureQuery)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricInfrastructureServiceClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricInfrastructureServiceClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricInfrastructureServiceClient {} + impl ::core::fmt::Debug for IFabricInfrastructureServiceClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricInfrastructureServiceClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricInfrastructureServiceClient { + type Vtable = IFabricInfrastructureServiceClient_Vtbl; + } + impl ::core::clone::Clone for IFabricInfrastructureServiceClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricInfrastructureServiceClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricInfrastructureServiceClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginInvokeInfrastructureCommand: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + command: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndInvokeInfrastructureCommand: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginInvokeInfrastructureQuery: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + command: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndInvokeInfrastructureQuery: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricMovePrimaryResult(::windows_core::IUnknown); + impl IFabricMovePrimaryResult { + pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricMovePrimaryResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricMovePrimaryResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricMovePrimaryResult {} + impl ::core::fmt::Debug for IFabricMovePrimaryResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricMovePrimaryResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricMovePrimaryResult { + type Vtable = IFabricMovePrimaryResult_Vtbl; + } + impl ::core::clone::Clone for IFabricMovePrimaryResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricMovePrimaryResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x66ac03f5_e61c_47a2_80fe_49309a02c92c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricMovePrimaryResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT, + } + #[repr(transparent)] + pub struct IFabricMoveSecondaryResult(::windows_core::IUnknown); + impl IFabricMoveSecondaryResult { + pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricMoveSecondaryResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricMoveSecondaryResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricMoveSecondaryResult {} + impl ::core::fmt::Debug for IFabricMoveSecondaryResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricMoveSecondaryResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricMoveSecondaryResult { + type Vtable = IFabricMoveSecondaryResult_Vtbl; + } + impl ::core::clone::Clone for IFabricMoveSecondaryResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricMoveSecondaryResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x60fe896a_b690_4abb_94fd_86c615d29bee); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricMoveSecondaryResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT, + } + #[repr(transparent)] + pub struct IFabricNameEnumerationResult(::windows_core::IUnknown); + impl IFabricNameEnumerationResult { + pub unsafe fn get_EnumerationStatus( + &self, + ) -> super::super::FABRIC_ENUMERATION_STATUS { + (::windows_core::Interface::vtable(self).get_EnumerationStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetNames( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut *mut u16, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetNames)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNameEnumerationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricNameEnumerationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNameEnumerationResult {} + impl ::core::fmt::Debug for IFabricNameEnumerationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNameEnumerationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNameEnumerationResult { + type Vtable = IFabricNameEnumerationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricNameEnumerationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNameEnumerationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x557e8105_f4f4_4fd3_9d21_075f34e2f98c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNameEnumerationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_EnumerationStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_ENUMERATION_STATUS, + pub GetNames: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut *mut u16, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricNetworkManagementClient(::windows_core::IUnknown); + impl IFabricNetworkManagementClient { + pub unsafe fn BeginCreateNetwork( + &self, + networkname: P0, + description: *const super::super::FABRIC_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateNetwork)( + ::windows_core::Interface::as_raw(self), + networkname.into_param().abi(), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateNetwork(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateNetwork)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteNetwork( + &self, + deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteNetwork)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteNetwork(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteNetwork)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetNetworkList( + &self, + querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNetworkList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNetworkApplicationList( + &self, + querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNetworkApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNetworkNodeList( + &self, + querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNetworkNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationNetworkList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationNetworkList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedNetworkList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedNetworkList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedNetworkCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . BeginGetDeployedNetworkCodePackageList ) ( ::windows_core::Interface::as_raw ( self ) , querydescription , timeoutmilliseconds , callback . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + pub unsafe fn EndGetDeployedNetworkCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedNetworkCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNetworkManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricNetworkManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNetworkManagementClient {} + impl ::core::fmt::Debug for IFabricNetworkManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNetworkManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNetworkManagementClient { + type Vtable = IFabricNetworkManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricNetworkManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNetworkManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNetworkManagementClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , networkname : ::windows_core::PCWSTR , description : *const super::super:: FABRIC_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , deletedescription : *const super::super:: FABRIC_DELETE_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_NODE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricNodeHealthResult(::windows_core::IUnknown); + impl IFabricNodeHealthResult { + pub unsafe fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH { + (::windows_core::Interface::vtable(self).get_NodeHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNodeHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricNodeHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNodeHealthResult {} + impl ::core::fmt::Debug for IFabricNodeHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNodeHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNodeHealthResult { + type Vtable = IFabricNodeHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricNodeHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNodeHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe461f70b_51b8_4b73_9f35_e38e5ac68719); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNodeHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_NodeHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_HEALTH, + } + #[repr(transparent)] + pub struct IFabricNodeTransitionProgressResult(::windows_core::IUnknown); + impl IFabricNodeTransitionProgressResult { + pub unsafe fn get_Progress( + &self, + ) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS { + (::windows_core::Interface::vtable(self).get_Progress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNodeTransitionProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricNodeTransitionProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNodeTransitionProgressResult {} + impl ::core::fmt::Debug for IFabricNodeTransitionProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNodeTransitionProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNodeTransitionProgressResult { + type Vtable = IFabricNodeTransitionProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricNodeTransitionProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNodeTransitionProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x68a98626_6a1b_4dd8_ad93_74c0936e86aa); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNodeTransitionProgressResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Progress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS, + } + #[repr(transparent)] + pub struct IFabricOrchestrationUpgradeStatusResult(::windows_core::IUnknown); + impl IFabricOrchestrationUpgradeStatusResult { + pub unsafe fn get_Progress( + &self, + ) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + (::windows_core::Interface::vtable(self).get_Progress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricOrchestrationUpgradeStatusResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricOrchestrationUpgradeStatusResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOrchestrationUpgradeStatusResult {} + impl ::core::fmt::Debug for IFabricOrchestrationUpgradeStatusResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOrchestrationUpgradeStatusResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOrchestrationUpgradeStatusResult { + type Vtable = IFabricOrchestrationUpgradeStatusResult_Vtbl; + } + impl ::core::clone::Clone for IFabricOrchestrationUpgradeStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOrchestrationUpgradeStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x95a56e4a_490d_445e_865c_ef0a62f15504); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Progress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_ORCHESTRATION_UPGRADE_PROGRESS , } + #[repr(transparent)] + pub struct IFabricPartitionDataLossProgressResult(::windows_core::IUnknown); + impl IFabricPartitionDataLossProgressResult { + pub unsafe fn get_Progress( + &self, + ) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS { + (::windows_core::Interface::vtable(self).get_Progress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPartitionDataLossProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPartitionDataLossProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPartitionDataLossProgressResult {} + impl ::core::fmt::Debug for IFabricPartitionDataLossProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPartitionDataLossProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPartitionDataLossProgressResult { + type Vtable = IFabricPartitionDataLossProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPartitionDataLossProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPartitionDataLossProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x614921e6_75f1_44e7_9107_ab88819136b8); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPartitionDataLossProgressResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Progress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PARTITION_DATA_LOSS_PROGRESS , } + #[repr(transparent)] + pub struct IFabricPartitionHealthResult(::windows_core::IUnknown); + impl IFabricPartitionHealthResult { + pub unsafe fn get_PartitionHealth( + &self, + ) -> *mut super::super::FABRIC_PARTITION_HEALTH { + (::windows_core::Interface::vtable(self).get_PartitionHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPartitionHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPartitionHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPartitionHealthResult {} + impl ::core::fmt::Debug for IFabricPartitionHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPartitionHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPartitionHealthResult { + type Vtable = IFabricPartitionHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPartitionHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPartitionHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPartitionHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_PartitionHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_PARTITION_HEALTH, + } + #[repr(transparent)] + pub struct IFabricPartitionQuorumLossProgressResult(::windows_core::IUnknown); + impl IFabricPartitionQuorumLossProgressResult { + pub unsafe fn get_Progress( + &self, + ) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + (::windows_core::Interface::vtable(self).get_Progress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPartitionQuorumLossProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPartitionQuorumLossProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPartitionQuorumLossProgressResult {} + impl ::core::fmt::Debug for IFabricPartitionQuorumLossProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPartitionQuorumLossProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPartitionQuorumLossProgressResult { + type Vtable = IFabricPartitionQuorumLossProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPartitionQuorumLossProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPartitionQuorumLossProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x36d8e378_3706_403d_8d99_2afd1a120687); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPartitionQuorumLossProgressResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Progress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PARTITION_QUORUM_LOSS_PROGRESS , } + #[repr(transparent)] + pub struct IFabricPartitionRestartProgressResult(::windows_core::IUnknown); + impl IFabricPartitionRestartProgressResult { + pub unsafe fn get_Progress( + &self, + ) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS { + (::windows_core::Interface::vtable(self).get_Progress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPartitionRestartProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPartitionRestartProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPartitionRestartProgressResult {} + impl ::core::fmt::Debug for IFabricPartitionRestartProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPartitionRestartProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPartitionRestartProgressResult { + type Vtable = IFabricPartitionRestartProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPartitionRestartProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPartitionRestartProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPartitionRestartProgressResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Progress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PARTITION_RESTART_PROGRESS , } + #[repr(transparent)] + pub struct IFabricPropertyBatchResult(::windows_core::IUnknown); + impl IFabricPropertyBatchResult { + pub unsafe fn GetProperty( + &self, + operationindexinrequest: u32, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetProperty)( + ::windows_core::Interface::as_raw(self), + operationindexinrequest, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyBatchResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPropertyBatchResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyBatchResult {} + impl ::core::fmt::Debug for IFabricPropertyBatchResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyBatchResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyBatchResult { + type Vtable = IFabricPropertyBatchResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyBatchResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyBatchResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyBatchResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + operationindexinrequest: u32, + property: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricPropertyEnumerationResult(::windows_core::IUnknown); + impl IFabricPropertyEnumerationResult { + pub unsafe fn get_EnumerationStatus( + &self, + ) -> super::super::FABRIC_ENUMERATION_STATUS { + (::windows_core::Interface::vtable(self).get_EnumerationStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_PropertyCount(&self) -> u32 { + (::windows_core::Interface::vtable(self).get_PropertyCount)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetProperty( + &self, + index: u32, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetProperty)( + ::windows_core::Interface::as_raw(self), + index, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyEnumerationResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPropertyEnumerationResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyEnumerationResult {} + impl ::core::fmt::Debug for IFabricPropertyEnumerationResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyEnumerationResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyEnumerationResult { + type Vtable = IFabricPropertyEnumerationResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyEnumerationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyEnumerationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa42da40d_a637_478d_83f3_2813871234cf); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyEnumerationResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_EnumerationStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_ENUMERATION_STATUS, + pub get_PropertyCount: + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, + pub GetProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + index: u32, + property: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricPropertyManagementClient(::windows_core::IUnknown); + impl IFabricPropertyManagementClient { + pub unsafe fn BeginCreateName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateName)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateName(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteName)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteName(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginNameExists( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginNameExists)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNameExists(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndNameExists)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginEnumerateSubNames( + &self, + name: *const u16, + previousresult: P0, + recursive: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + name, + previousresult.into_param().abi(), + recursive.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndEnumerateSubNames( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginPutPropertyBinary( + &self, + name: *const u16, + propertyname: P0, + data: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.len() as _, + ::core::mem::transmute(data.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyBinary( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyInt64( + &self, + name: *const u16, + propertyname: P0, + data: i64, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyInt64( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyDouble( + &self, + name: *const u16, + propertyname: P0, + data: f64, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyDouble( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyWString( + &self, + name: *const u16, + propertyname: P0, + data: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyWString( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyGuid( + &self, + name: *const u16, + propertyname: P0, + data: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyGuid( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteProperty( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteProperty( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPropertyMetadata( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPropertyMetadata( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProperty( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProperty( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginSubmitPropertyBatch( + &self, + name: *const u16, + operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + name, + operations.len() as _, + ::core::mem::transmute(operations.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSubmitPropertyBatch( + &self, + context: P0, + failedoperationindexinrequest: *mut u32, + result: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + failedoperationindexinrequest, + ::core::mem::transmute(result), + ) + .ok() + } + pub unsafe fn BeginEnumerateProperties( + &self, + name: *const u16, + includevalues: P0, + previousresult: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + name, + includevalues.into_param().abi(), + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndEnumerateProperties( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPropertyManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyManagementClient {} + impl ::core::fmt::Debug for IFabricPropertyManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyManagementClient { + type Vtable = IFabricPropertyManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26e58816_b5d5_4f08_9770_dbf0410c99d6); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginCreateName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCreateName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginDeleteName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginNameExists: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndNameExists: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + value: *mut u8, + ) + -> ::windows_core::HRESULT, + pub BeginEnumerateSubNames: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + previousresult: *mut ::core::ffi::c_void, + recursive: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndEnumerateSubNames: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginPutPropertyBinary: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + datalength: u32, + data: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPutPropertyBinary: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginPutPropertyInt64: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: i64, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPutPropertyInt64: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginPutPropertyDouble: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: f64, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPutPropertyDouble: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginPutPropertyWString: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPutPropertyWString: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginPutPropertyGuid: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPutPropertyGuid: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginDeleteProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetPropertyMetadata: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetPropertyMetadata: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetProperty: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginSubmitPropertyBatch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + operationcount: u32, + operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndSubmitPropertyBatch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + failedoperationindexinrequest: *mut u32, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginEnumerateProperties: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + includevalues: ::windows::Win32::Foundation::BOOLEAN, + previousresult: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndEnumerateProperties: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricPropertyManagementClient2(::windows_core::IUnknown); + impl IFabricPropertyManagementClient2 { + pub unsafe fn BeginCreateName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateName)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateName(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndCreateName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteName)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteName(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndDeleteName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginNameExists( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginNameExists)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndNameExists(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndNameExists)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginEnumerateSubNames( + &self, + name: *const u16, + previousresult: P0, + recursive: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + name, + previousresult.into_param().abi(), + recursive.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndEnumerateSubNames( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginPutPropertyBinary( + &self, + name: *const u16, + propertyname: P0, + data: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.len() as _, + ::core::mem::transmute(data.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyBinary( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyInt64( + &self, + name: *const u16, + propertyname: P0, + data: i64, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyInt64( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyDouble( + &self, + name: *const u16, + propertyname: P0, + data: f64, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyDouble( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyWString( + &self, + name: *const u16, + propertyname: P0, + data: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyWString( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginPutPropertyGuid( + &self, + name: *const u16, + propertyname: P0, + data: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutPropertyGuid( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteProperty( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteProperty( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPropertyMetadata( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPropertyMetadata( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProperty( + &self, + name: *const u16, + propertyname: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProperty( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginSubmitPropertyBatch( + &self, + name: *const u16, + operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + name, + operations.len() as _, + ::core::mem::transmute(operations.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSubmitPropertyBatch( + &self, + context: P0, + failedoperationindexinrequest: *mut u32, + result: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + failedoperationindexinrequest, + ::core::mem::transmute(result), + ) + .ok() + } + pub unsafe fn BeginEnumerateProperties( + &self, + name: *const u16, + includevalues: P0, + previousresult: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + name, + includevalues.into_param().abi(), + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndEnumerateProperties( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginPutCustomPropertyOperation( + &self, + name: *const u16, + propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutCustomPropertyOperation)( + ::windows_core::Interface::as_raw(self), + name, + propertyoperation, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPutCustomPropertyOperation( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndPutCustomPropertyOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyManagementClient2, + ::windows_core::IUnknown, + IFabricPropertyManagementClient + ); + impl ::core::cmp::PartialEq for IFabricPropertyManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyManagementClient2 {} + impl ::core::fmt::Debug for IFabricPropertyManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyManagementClient2 { + type Vtable = IFabricPropertyManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x04991c28_3f9d_4a49_9322_a56d308965fd); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyManagementClient2_Vtbl { + pub base__: IFabricPropertyManagementClient_Vtbl, + pub BeginPutCustomPropertyOperation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndPutCustomPropertyOperation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricPropertyMetadataResult(::windows_core::IUnknown); + impl IFabricPropertyMetadataResult { + pub unsafe fn get_Metadata( + &self, + ) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA { + (::windows_core::Interface::vtable(self).get_Metadata)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyMetadataResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPropertyMetadataResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyMetadataResult {} + impl ::core::fmt::Debug for IFabricPropertyMetadataResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyMetadataResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyMetadataResult { + type Vtable = IFabricPropertyMetadataResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyMetadataResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyMetadataResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x33302306_fb8d_4831_b493_57efcc772462); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyMetadataResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Metadata: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA, + } + #[repr(transparent)] + pub struct IFabricPropertyValueResult(::windows_core::IUnknown); + impl IFabricPropertyValueResult { + pub unsafe fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY { + (::windows_core::Interface::vtable(self).get_Property)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetValueAsBinary( + &self, + bytecount: *mut u32, + bufferedvalue: *mut *mut u8, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetValueAsBinary)( + ::windows_core::Interface::as_raw(self), + bytecount, + bufferedvalue, + ) + .ok() + } + pub unsafe fn GetValueAsInt64(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsInt64)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValueAsDouble(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsDouble)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValueAsWString( + &self, + ) -> ::windows_core::Result<::windows_core::PCWSTR> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsWString)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValueAsGuid( + &self, + ) -> ::windows_core::Result<::windows_core::GUID> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsGuid)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPropertyValueResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricPropertyValueResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPropertyValueResult {} + impl ::core::fmt::Debug for IFabricPropertyValueResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPropertyValueResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPropertyValueResult { + type Vtable = IFabricPropertyValueResult_Vtbl; + } + impl ::core::clone::Clone for IFabricPropertyValueResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPropertyValueResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9a518b49_9903_4b8f_834e_1979e9c6745e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPropertyValueResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Property: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NAMED_PROPERTY, + pub GetValueAsBinary: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + bytecount: *mut u32, + bufferedvalue: *mut *mut u8, + ) + -> ::windows_core::HRESULT, + pub GetValueAsInt64: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + value: *mut i64, + ) + -> ::windows_core::HRESULT, + pub GetValueAsDouble: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + value: *mut f64, + ) + -> ::windows_core::HRESULT, + pub GetValueAsWString: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) + -> ::windows_core::HRESULT, + pub GetValueAsGuid: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + value: *mut ::windows_core::GUID, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricQueryClient(::windows_core::IUnknown); + impl IFabricQueryClient { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!(IFabricQueryClient, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricQueryClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient {} + impl ::core::fmt::Debug for IFabricQueryClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient { + type Vtable = IFabricQueryClient_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc629e422_90ba_4efd_8f64_cecf51bc3df0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginGetNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetApplicationTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetServiceList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetServiceList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient10(::windows_core::IUnknown); + impl IFabricQueryClient10 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceName( + &self, + querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationName( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypePagedList( + &self, + querydescription : *const super::super:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypePagedList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationPagedList( + &self, + querydescription : *const super::super:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationPagedList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient10, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7, + IFabricQueryClient8, + IFabricQueryClient9 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient10 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient10 {} + impl ::core::fmt::Debug for IFabricQueryClient10 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient10") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient10 { + type Vtable = IFabricQueryClient10_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x02139da8_7140_42ae_8403_79a551600e63); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient10_Vtbl where { pub base__ : IFabricQueryClient9_Vtbl , pub BeginGetDeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient2(::windows_core::IUnknown); + impl IFabricQueryClient2 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . EndGetProvisionedFabricCodeVersionList ) ( ::windows_core::Interface::as_raw ( self ) , context . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient2, + ::windows_core::IUnknown, + IFabricQueryClient + ); + impl ::core::cmp::PartialEq for IFabricQueryClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient2 {} + impl ::core::fmt::Debug for IFabricQueryClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient2").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient2 { + type Vtable = IFabricQueryClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient2_Vtbl where { pub base__ : IFabricQueryClient_Vtbl , pub BeginGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient3(::windows_core::IUnknown); + impl IFabricQueryClient3 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient3, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient3 {} + impl ::core::fmt::Debug for IFabricQueryClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient3").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient3 { + type Vtable = IFabricQueryClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x16f563f3_4017_496e_b0e7_2650de5774b3); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient3_Vtbl where { pub base__ : IFabricQueryClient2_Vtbl , pub BeginGetNodeLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNodeLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetReplicaLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetReplicaLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient4(::windows_core::IUnknown); + impl IFabricQueryClient4 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient4, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient4 {} + impl ::core::fmt::Debug for IFabricQueryClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient4").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient4 { + type Vtable = IFabricQueryClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xab92081d_0d78_410b_9777_0846dba24c10); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient4_Vtbl where { pub base__ : IFabricQueryClient3_Vtbl , pub BeginGetServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient5(::windows_core::IUnknown); + impl IFabricQueryClient5 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient5, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient5 {} + impl ::core::fmt::Debug for IFabricQueryClient5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient5").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient5 { + type Vtable = IFabricQueryClient5_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x75c35e8c_87a2_4810_a401_b50da858fe34); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient5_Vtbl where { pub base__ : IFabricQueryClient4_Vtbl , pub BeginGetUnplacedReplicaInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetUnplacedReplicaInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient6(::windows_core::IUnknown); + impl IFabricQueryClient6 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient6, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient6 {} + impl ::core::fmt::Debug for IFabricQueryClient6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient6").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient6 { + type Vtable = IFabricQueryClient6_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient6_Vtbl { + pub base__: IFabricQueryClient5_Vtbl, + pub EndGetNodeList2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetApplicationList2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetServiceList2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetPartitionList2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetReplicaList2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricQueryClient7(::windows_core::IUnknown); + impl IFabricQueryClient7 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient7, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient7 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient7 {} + impl ::core::fmt::Debug for IFabricQueryClient7 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient7").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient7 { + type Vtable = IFabricQueryClient7_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x538baa81_ba97_46da_95ac_e1cdd184cc74); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient7_Vtbl where { pub base__ : IFabricQueryClient6_Vtbl , pub BeginGetApplicationLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricQueryClient8(::windows_core::IUnknown); + impl IFabricQueryClient8 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceName( + &self, + querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationName( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient8, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient8 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient8 {} + impl ::core::fmt::Debug for IFabricQueryClient8 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient8").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient8 { + type Vtable = IFabricQueryClient8_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2c850629_6a83_4fc3_8468_c868b87e9a17); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient8_Vtbl { + pub base__: IFabricQueryClient7_Vtbl, + pub BeginGetServiceName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetServiceName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetApplicationName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetApplicationName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricQueryClient9(::windows_core::IUnknown); + impl IFabricQueryClient9 { + pub unsafe fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedApplicationList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServicePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedServiceTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedCodePackageList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetDeployedReplicaDetail( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetClusterLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricCodeVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetProvisionedFabricConfigVersionList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupMemberTypeList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetUnplacedReplicaInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetReplicaList2( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationLoadInformation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceName( + &self, + querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationName( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetApplicationName)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationName( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetApplicationName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetApplicationTypePagedList( + &self, + querydescription : *const super::super:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetApplicationTypePagedList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricQueryClient9, + ::windows_core::IUnknown, + IFabricQueryClient, + IFabricQueryClient2, + IFabricQueryClient3, + IFabricQueryClient4, + IFabricQueryClient5, + IFabricQueryClient6, + IFabricQueryClient7, + IFabricQueryClient8 + ); + impl ::core::cmp::PartialEq for IFabricQueryClient9 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricQueryClient9 {} + impl ::core::fmt::Debug for IFabricQueryClient9 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricQueryClient9").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricQueryClient9 { + type Vtable = IFabricQueryClient9_Vtbl; + } + impl ::core::clone::Clone for IFabricQueryClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricQueryClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x76f0b4a5_4941_49d7_993c_ad7afc37c6af); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricQueryClient9_Vtbl where { pub base__ : IFabricQueryClient8_Vtbl , pub BeginGetApplicationTypePagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationTypePagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricRepairManagementClient(::windows_core::IUnknown); + impl IFabricRepairManagementClient { + pub unsafe fn BeginCreateRepairTask( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginForceApproveRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndForceApproveRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginDeleteRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateRepairExecutionState( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateRepairExecutionState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetRepairTaskList( + &self, + querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetRepairTaskList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricRepairManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricRepairManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricRepairManagementClient {} + impl ::core::fmt::Debug for IFabricRepairManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricRepairManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricRepairManagementClient { + type Vtable = IFabricRepairManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricRepairManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricRepairManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xee483ba5_9018_4c99_9804_be6185db88e6); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricRepairManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginCreateRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCreateRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) + -> ::windows_core::HRESULT, + pub BeginCancelRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCancelRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) + -> ::windows_core::HRESULT, + pub BeginForceApproveRepairTask: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndForceApproveRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) + -> ::windows_core::HRESULT, + pub BeginDeleteRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteRepairTask: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUpdateRepairExecutionState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndUpdateRepairExecutionState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT, + pub BeginGetRepairTaskList: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetRepairTaskList: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricRepairManagementClient2(::windows_core::IUnknown); + impl IFabricRepairManagementClient2 { + pub unsafe fn BeginCreateRepairTask( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginForceApproveRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndForceApproveRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginDeleteRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteRepairTask( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateRepairExecutionState( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + repairtask, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateRepairExecutionState( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetRepairTaskList( + &self, + querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + querydescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetRepairTaskList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateRepairTaskHealthPolicy( + &self, + updatedescription : *const super::super:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateRepairTaskHealthPolicy)( + ::windows_core::Interface::as_raw(self), + updatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateRepairTaskHealthPolicy( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndUpdateRepairTaskHealthPolicy)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricRepairManagementClient2, + ::windows_core::IUnknown, + IFabricRepairManagementClient + ); + impl ::core::cmp::PartialEq for IFabricRepairManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricRepairManagementClient2 {} + impl ::core::fmt::Debug for IFabricRepairManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricRepairManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricRepairManagementClient2 { + type Vtable = IFabricRepairManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricRepairManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricRepairManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5067d775_3baa_48e4_8c72_bb5573cc3fb8); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricRepairManagementClient2_Vtbl where { pub base__ : IFabricRepairManagementClient_Vtbl , pub BeginUpdateRepairTaskHealthPolicy :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , updatedescription : *const super::super:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUpdateRepairTaskHealthPolicy :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , commitversion : *mut i64 , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricReplicaHealthResult(::windows_core::IUnknown); + impl IFabricReplicaHealthResult { + pub unsafe fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH { + (::windows_core::Interface::vtable(self).get_ReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricReplicaHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricReplicaHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricReplicaHealthResult {} + impl ::core::fmt::Debug for IFabricReplicaHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricReplicaHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricReplicaHealthResult { + type Vtable = IFabricReplicaHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricReplicaHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricReplicaHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricReplicaHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ReplicaHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_REPLICA_HEALTH, + } + #[repr(transparent)] + pub struct IFabricResolvedServicePartitionResult(::windows_core::IUnknown); + impl IFabricResolvedServicePartitionResult { + pub unsafe fn get_Partition( + &self, + ) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION { + (::windows_core::Interface::vtable(self).get_Partition)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetEndpoint( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetEndpoint)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn CompareVersion(&self, other: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CompareVersion)( + ::windows_core::Interface::as_raw(self), + other.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricResolvedServicePartitionResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricResolvedServicePartitionResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricResolvedServicePartitionResult {} + impl ::core::fmt::Debug for IFabricResolvedServicePartitionResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricResolvedServicePartitionResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricResolvedServicePartitionResult { + type Vtable = IFabricResolvedServicePartitionResult_Vtbl; + } + impl ::core::clone::Clone for IFabricResolvedServicePartitionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricResolvedServicePartitionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricResolvedServicePartitionResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Partition :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_RESOLVED_SERVICE_PARTITION , pub GetEndpoint :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , endpoint : *mut *mut super::super:: FABRIC_RESOLVED_SERVICE_ENDPOINT , ) -> ::windows_core::HRESULT , pub CompareVersion :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , other : * mut::core::ffi::c_void , compareresult : *mut i32 , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricRestartDeployedCodePackageResult(::windows_core::IUnknown); + impl IFabricRestartDeployedCodePackageResult { + pub unsafe fn get_Result( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricRestartDeployedCodePackageResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricRestartDeployedCodePackageResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricRestartDeployedCodePackageResult {} + impl ::core::fmt::Debug for IFabricRestartDeployedCodePackageResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricRestartDeployedCodePackageResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricRestartDeployedCodePackageResult { + type Vtable = IFabricRestartDeployedCodePackageResult_Vtbl; + } + impl ::core::clone::Clone for IFabricRestartDeployedCodePackageResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricRestartDeployedCodePackageResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricRestartDeployedCodePackageResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Result :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_RESULT , } + #[repr(transparent)] + pub struct IFabricRestartNodeResult(::windows_core::IUnknown); + impl IFabricRestartNodeResult { + pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricRestartNodeResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricRestartNodeResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricRestartNodeResult {} + impl ::core::fmt::Debug for IFabricRestartNodeResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricRestartNodeResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricRestartNodeResult { + type Vtable = IFabricRestartNodeResult_Vtbl; + } + impl ::core::clone::Clone for IFabricRestartNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricRestartNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricRestartNodeResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_RESULT, + } + #[repr(transparent)] + pub struct IFabricSecretReferencesResult(::windows_core::IUnknown); + impl IFabricSecretReferencesResult { + pub unsafe fn get_SecretReferences( + &self, + ) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST { + (::windows_core::Interface::vtable(self).get_SecretReferences)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricSecretReferencesResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricSecretReferencesResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricSecretReferencesResult {} + impl ::core::fmt::Debug for IFabricSecretReferencesResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricSecretReferencesResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricSecretReferencesResult { + type Vtable = IFabricSecretReferencesResult_Vtbl; + } + impl ::core::clone::Clone for IFabricSecretReferencesResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricSecretReferencesResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbb8f69de_f667_4fab_820d_274cf4303ab4); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricSecretReferencesResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_SecretReferences: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST, + } + #[repr(transparent)] + pub struct IFabricSecretStoreClient(::windows_core::IUnknown); + impl IFabricSecretStoreClient { + pub unsafe fn BeginGetSecrets( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + includevalue: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetSecrets)( + ::windows_core::Interface::as_raw(self), + secretreferences, + includevalue.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetSecrets( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginSetSecrets( + &self, + secrets: *const super::super::FABRIC_SECRET_LIST, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSetSecrets)( + ::windows_core::Interface::as_raw(self), + secrets, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSetSecrets( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndSetSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRemoveSecrets( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRemoveSecrets)( + ::windows_core::Interface::as_raw(self), + secretreferences, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRemoveSecrets( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRemoveSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetSecretVersions( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetSecretVersions)( + ::windows_core::Interface::as_raw(self), + secretreferences, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetSecretVersions( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetSecretVersions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricSecretStoreClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricSecretStoreClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricSecretStoreClient {} + impl ::core::fmt::Debug for IFabricSecretStoreClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricSecretStoreClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricSecretStoreClient { + type Vtable = IFabricSecretStoreClient_Vtbl; + } + impl ::core::clone::Clone for IFabricSecretStoreClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricSecretStoreClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x38c4c723_3815_49d8_bdf2_68bfb536b8c9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricSecretStoreClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginGetSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + includevalue: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginSetSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + secrets: *const super::super::FABRIC_SECRET_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndSetSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRemoveSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRemoveSecrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetSecretVersions: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetSecretVersions: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricSecretsResult(::windows_core::IUnknown); + impl IFabricSecretsResult { + pub unsafe fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST { + (::windows_core::Interface::vtable(self).get_Secrets)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricSecretsResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricSecretsResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricSecretsResult {} + impl ::core::fmt::Debug for IFabricSecretsResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricSecretsResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricSecretsResult { + type Vtable = IFabricSecretsResult_Vtbl; + } + impl ::core::clone::Clone for IFabricSecretsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricSecretsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe15a879_0dbe_4841_9cc6_6e92077cd669); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricSecretsResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Secrets: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SECRET_LIST, + } + #[repr(transparent)] + pub struct IFabricServiceDescriptionResult(::windows_core::IUnknown); + impl IFabricServiceDescriptionResult { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceDescriptionResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceDescriptionResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceDescriptionResult {} + impl ::core::fmt::Debug for IFabricServiceDescriptionResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceDescriptionResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceDescriptionResult { + type Vtable = IFabricServiceDescriptionResult_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x86b4f744_38c7_4dab_b6b4_11c23734c269); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceDescriptionResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Description: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SERVICE_DESCRIPTION, + } + #[repr(transparent)] + pub struct IFabricServiceEndpointsVersion(::windows_core::IUnknown); + impl IFabricServiceEndpointsVersion { + pub unsafe fn Compare(&self, other: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Compare)( + ::windows_core::Interface::as_raw(self), + other.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceEndpointsVersion, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceEndpointsVersion { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceEndpointsVersion {} + impl ::core::fmt::Debug for IFabricServiceEndpointsVersion { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceEndpointsVersion") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceEndpointsVersion { + type Vtable = IFabricServiceEndpointsVersion_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceEndpointsVersion { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceEndpointsVersion { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0a673dc5_2297_4fc5_a38f_482d29144fa5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceEndpointsVersion_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub Compare: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + other: *mut ::core::ffi::c_void, + compareresult: *mut i32, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceGroupDescriptionResult(::windows_core::IUnknown); + impl IFabricServiceGroupDescriptionResult { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupDescriptionResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupDescriptionResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupDescriptionResult {} + impl ::core::fmt::Debug for IFabricServiceGroupDescriptionResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupDescriptionResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupDescriptionResult { + type Vtable = IFabricServiceGroupDescriptionResult_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ca814d4_e067_48b7_9bdc_9be33810416d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupDescriptionResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Description :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_DESCRIPTION , } + #[repr(transparent)] + pub struct IFabricServiceGroupManagementClient(::windows_core::IUnknown); + impl IFabricServiceGroupManagementClient { + pub unsafe fn BeginCreateServiceGroup( + &self, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteServiceGroup( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceGroupDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupManagementClient {} + impl ::core::fmt::Debug for IFabricServiceGroupManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient { + type Vtable = IFabricServiceGroupManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2061227e_0281_4baf_9b19_b2dfb2e63bbe); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginCreateServiceGroup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCreateServiceGroup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginDeleteServiceGroup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteServiceGroup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetServiceGroupDescription: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetServiceGroupDescription: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceGroupManagementClient2(::windows_core::IUnknown); + impl IFabricServiceGroupManagementClient2 { + pub unsafe fn BeginCreateServiceGroup( + &self, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteServiceGroup( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceGroupDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateServiceGroup( + &self, + name: *const u16, + servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient2, + ::windows_core::IUnknown, + IFabricServiceGroupManagementClient + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupManagementClient2 {} + impl ::core::fmt::Debug for IFabricServiceGroupManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient2 { + type Vtable = IFabricServiceGroupManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupManagementClient2_Vtbl where { pub base__ : IFabricServiceGroupManagementClient_Vtbl , pub BeginUpdateServiceGroup :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , name : *const u16 , servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUpdateServiceGroup :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricServiceGroupManagementClient3(::windows_core::IUnknown); + impl IFabricServiceGroupManagementClient3 { + pub unsafe fn BeginCreateServiceGroup( + &self, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteServiceGroup( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceGroupDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateServiceGroup( + &self, + name: *const u16, + servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceGroupFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroupFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient3, + ::windows_core::IUnknown, + IFabricServiceGroupManagementClient, + IFabricServiceGroupManagementClient2 + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupManagementClient3 {} + impl ::core::fmt::Debug for IFabricServiceGroupManagementClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupManagementClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient3 { + type Vtable = IFabricServiceGroupManagementClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupManagementClient3_Vtbl { + pub base__: IFabricServiceGroupManagementClient2_Vtbl, + pub BeginCreateServiceGroupFromTemplate: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicename: *const u16, + servicetypename: ::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndCreateServiceGroupFromTemplate: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceGroupManagementClient4(::windows_core::IUnknown); + impl IFabricServiceGroupManagementClient4 { + pub unsafe fn BeginCreateServiceGroup( + &self, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteServiceGroup( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceGroupDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceGroupDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateServiceGroup( + &self, + name: *const u16, + servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateServiceGroup( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceGroupFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroupFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceGroupFromTemplate2( + &self, + servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate2)( + ::windows_core::Interface::as_raw(self), + servicegroupfromtemplatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceGroupFromTemplate2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupManagementClient4, + ::windows_core::IUnknown, + IFabricServiceGroupManagementClient, + IFabricServiceGroupManagementClient2, + IFabricServiceGroupManagementClient3 + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupManagementClient4 {} + impl ::core::fmt::Debug for IFabricServiceGroupManagementClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupManagementClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient4 { + type Vtable = IFabricServiceGroupManagementClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3c73b32e_9a08_48ca_b3a3_993a2029e37a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupManagementClient4_Vtbl where { pub base__ : IFabricServiceGroupManagementClient3_Vtbl , pub BeginCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricServiceHealthResult(::windows_core::IUnknown); + impl IFabricServiceHealthResult { + pub unsafe fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH { + (::windows_core::Interface::vtable(self).get_ServiceHealth)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceHealthResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceHealthResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceHealthResult {} + impl ::core::fmt::Debug for IFabricServiceHealthResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceHealthResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceHealthResult { + type Vtable = IFabricServiceHealthResult_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x52040bd9_a78e_4308_a30e_7114e3684e76); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceHealthResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ServiceHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SERVICE_HEALTH, + } + #[repr(transparent)] + pub struct IFabricServiceManagementClient(::windows_core::IUnknown); + impl IFabricServiceManagementClient { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient {} + impl ::core::fmt::Debug for IFabricServiceManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient { + type Vtable = IFabricServiceManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf7368189_fd1f_437c_888d_8c89cecc57a0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginCreateService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCreateService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginCreateServiceFromTemplate: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicename: *const u16, + servicetypename: ::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndCreateServiceFromTemplate: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginDeleteService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetServiceDescription: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetServiceDescription: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub RegisterServicePartitionResolutionChangeHandler: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + callbackhandle: *mut i64, + ) -> ::windows_core::HRESULT, + pub UnregisterServicePartitionResolutionChangeHandler: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callbackhandle: i64, + ) -> ::windows_core::HRESULT, + pub BeginResolveServicePartition: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndResolveServicePartition: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceManagementClient2(::windows_core::IUnknown); + impl IFabricServiceManagementClient2 { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient2, + ::windows_core::IUnknown, + IFabricServiceManagementClient + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient2 {} + impl ::core::fmt::Debug for IFabricServiceManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient2 { + type Vtable = IFabricServiceManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient2_Vtbl { + pub base__: IFabricServiceManagementClient_Vtbl, + pub BeginGetServiceManifest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetServiceManifest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUpdateService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpdateService: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceManagementClient3(::windows_core::IUnknown); + impl IFabricServiceManagementClient3 { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRemoveReplica( + &self, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRemoveReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartReplica( + &self, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartReplica( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient3, + ::windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2 + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient3 {} + impl ::core::fmt::Debug for IFabricServiceManagementClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient3 { + type Vtable = IFabricServiceManagementClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient3_Vtbl { + pub base__: IFabricServiceManagementClient2_Vtbl, + pub BeginRemoveReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRemoveReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginRestartReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRestartReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceManagementClient4(::windows_core::IUnknown); + impl IFabricServiceManagementClient4 { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRemoveReplica( + &self, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRemoveReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartReplica( + &self, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRestartReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartReplica( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRegisterServiceNotificationFilter( + &self, + description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + ( ::windows_core::Interface::vtable ( self ) . BeginRegisterServiceNotificationFilter ) ( ::windows_core::Interface::as_raw ( self ) , description , timeoutmilliseconds , callback . into_param ( ) . abi ( ) , & mut result__ , ) . from_abi ( result__ ) + } + pub unsafe fn EndRegisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUnregisterServiceNotificationFilter( + &self, + filterid: i64, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .BeginUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + filterid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnregisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + ( ::windows_core::Interface::vtable ( self ) . EndUnregisterServiceNotificationFilter ) ( ::windows_core::Interface::as_raw ( self ) , context . into_param ( ) . abi ( ) , ) . ok ( ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient4, + ::windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3 + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient4 {} + impl ::core::fmt::Debug for IFabricServiceManagementClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient4 { + type Vtable = IFabricServiceManagementClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8180db27_7d0b_43b0_82e0_4a8e022fc238); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient4_Vtbl where { pub base__ : IFabricServiceManagementClient3_Vtbl , pub BeginRegisterServiceNotificationFilter :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndRegisterServiceNotificationFilter :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , filterid : *mut i64 , ) -> ::windows_core::HRESULT , pub BeginUnregisterServiceNotificationFilter :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , filterid : i64 , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUnregisterServiceNotificationFilter :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricServiceManagementClient5(::windows_core::IUnknown); + impl IFabricServiceManagementClient5 { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRemoveReplica( + &self, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRemoveReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartReplica( + &self, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRestartReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartReplica( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRegisterServiceNotificationFilter( + &self, + description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRegisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUnregisterServiceNotificationFilter( + &self, + filterid: i64, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + filterid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnregisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteService2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeleteService2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient5, + ::windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3, + IFabricServiceManagementClient4 + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient5 {} + impl ::core::fmt::Debug for IFabricServiceManagementClient5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient5") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient5 { + type Vtable = IFabricServiceManagementClient5_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf9a70679_8ca3_4e27_9411_483e0c89b1fa); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient5_Vtbl { + pub base__: IFabricServiceManagementClient4_Vtbl, + pub BeginDeleteService2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndDeleteService2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceManagementClient6(::windows_core::IUnknown); + impl IFabricServiceManagementClient6 { + pub unsafe fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: P0, + initializationdata: &[u8], + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceDescription( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, + keytype, + partitionkey, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, + partitionkeytype, + partitionkey, + previousresult.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndResolveServicePartition( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetServiceManifest( + &self, + applicationtypename: P0, + applicationtypeversion: P1, + servicemanifestname: P2, + timeoutmilliseconds: u32, + callback: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetServiceManifest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRemoveReplica( + &self, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRemoveReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestartReplica( + &self, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginRestartReplica)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestartReplica( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRegisterServiceNotificationFilter( + &self, + description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRegisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginUnregisterServiceNotificationFilter( + &self, + filterid: i64, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + filterid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUnregisterServiceNotificationFilter( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeleteService2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteService2)( + ::windows_core::Interface::as_raw(self), + deletedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeleteService2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndDeleteService2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginCreateServiceFromTemplate2( + &self, + servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate2)( + ::windows_core::Interface::as_raw(self), + servicefromtemplatedescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCreateServiceFromTemplate2( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCreateServiceFromTemplate2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceManagementClient6, + ::windows_core::IUnknown, + IFabricServiceManagementClient, + IFabricServiceManagementClient2, + IFabricServiceManagementClient3, + IFabricServiceManagementClient4, + IFabricServiceManagementClient5 + ); + impl ::core::cmp::PartialEq for IFabricServiceManagementClient6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceManagementClient6 {} + impl ::core::fmt::Debug for IFabricServiceManagementClient6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceManagementClient6") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceManagementClient6 { + type Vtable = IFabricServiceManagementClient6_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x23e4ee1b_049a_48f5_8dd7_b601eace47de); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceManagementClient6_Vtbl where { pub base__ : IFabricServiceManagementClient5_Vtbl , pub BeginCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricServiceNotification(::windows_core::IUnknown); + impl IFabricServiceNotification { + pub unsafe fn get_Notification( + &self, + ) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION { + (::windows_core::Interface::vtable(self).get_Notification)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceNotification, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceNotification { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceNotification {} + impl ::core::fmt::Debug for IFabricServiceNotification { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceNotification") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceNotification { + type Vtable = IFabricServiceNotification_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceNotification { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceNotification { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8222c825_08ad_4639_afce_a8988cbd6db3); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceNotification_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Notification: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SERVICE_NOTIFICATION, + pub GetVersion: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceNotificationEventHandler(::windows_core::IUnknown); + impl IFabricServiceNotificationEventHandler { + pub unsafe fn OnNotification( + &self, + __midl__ifabricservicenotificationeventhandler0000: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnNotification)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricservicenotificationeventhandler0000 + .into_param() + .abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceNotificationEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceNotificationEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceNotificationEventHandler {} + impl ::core::fmt::Debug for IFabricServiceNotificationEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceNotificationEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceNotificationEventHandler { + type Vtable = IFabricServiceNotificationEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceNotificationEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceNotificationEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceNotificationEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnNotification: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + __midl__ifabricservicenotificationeventhandler0000: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServicePartitionResolutionChangeHandler(::windows_core::IUnknown); + impl IFabricServicePartitionResolutionChangeHandler { + pub unsafe fn OnChange( + &self, + source: P0, + handlerid: i64, + partition: P1, + error: ::windows_core::HRESULT, + ) where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnChange)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + handlerid, + partition.into_param().abi(), + error, + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServicePartitionResolutionChangeHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServicePartitionResolutionChangeHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServicePartitionResolutionChangeHandler {} + impl ::core::fmt::Debug for IFabricServicePartitionResolutionChangeHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServicePartitionResolutionChangeHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServicePartitionResolutionChangeHandler { + type Vtable = IFabricServicePartitionResolutionChangeHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricServicePartitionResolutionChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServicePartitionResolutionChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf495715d_8e03_4232_b8d6_1227b39984fc); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnChange: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + handlerid: i64, + partition: *mut ::core::ffi::c_void, + error: ::windows_core::HRESULT, + ), + } + #[repr(transparent)] + pub struct IFabricStartNodeResult(::windows_core::IUnknown); + impl IFabricStartNodeResult { + pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStartNodeResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStartNodeResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStartNodeResult {} + impl ::core::fmt::Debug for IFabricStartNodeResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStartNodeResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStartNodeResult { + type Vtable = IFabricStartNodeResult_Vtbl; + } + impl ::core::clone::Clone for IFabricStartNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStartNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7e9f51a5_88ac_49b8_958d_329e3334802e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStartNodeResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_RESULT, + } + #[repr(transparent)] + pub struct IFabricStopNodeResult(::windows_core::IUnknown); + impl IFabricStopNodeResult { + pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStopNodeResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStopNodeResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStopNodeResult {} + impl ::core::fmt::Debug for IFabricStopNodeResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStopNodeResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStopNodeResult { + type Vtable = IFabricStopNodeResult_Vtbl; + } + impl ::core::clone::Clone for IFabricStopNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStopNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x711d60a6_9623_476c_970c_83059a0b4d55); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStopNodeResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_RESULT, + } + #[repr(transparent)] + pub struct IFabricTestCommandStatusResult(::windows_core::IUnknown); + impl IFabricTestCommandStatusResult { + pub unsafe fn get_Result( + &self, + ) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST { + (::windows_core::Interface::vtable(self).get_Result)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTestCommandStatusResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTestCommandStatusResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTestCommandStatusResult {} + impl ::core::fmt::Debug for IFabricTestCommandStatusResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTestCommandStatusResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTestCommandStatusResult { + type Vtable = IFabricTestCommandStatusResult_Vtbl; + } + impl ::core::clone::Clone for IFabricTestCommandStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTestCommandStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x87798f5c_e600_493a_a926_16b6807378e6); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTestCommandStatusResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Result: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST, + } + #[repr(transparent)] + pub struct IFabricTestManagementClient(::windows_core::IUnknown); + impl IFabricTestManagementClient { + pub unsafe fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionDataLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionDataLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionDataLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionQuorumLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionQuorumLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionRestart( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionRestartProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionRestartProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + operationid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetTestCommandStatusList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelTestCommand( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTestManagementClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTestManagementClient {} + impl ::core::fmt::Debug for IFabricTestManagementClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTestManagementClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTestManagementClient { + type Vtable = IFabricTestManagementClient_Vtbl; + } + impl ::core::clone::Clone for IFabricTestManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTestManagementClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : *const super::super:: FABRIC_TEST_COMMAND_LIST_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricTestManagementClient2(::windows_core::IUnknown); + impl IFabricTestManagementClient2 { + pub unsafe fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionDataLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionDataLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionDataLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionQuorumLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionQuorumLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionRestart( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionRestartProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionRestartProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + operationid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetTestCommandStatusList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelTestCommand( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartChaos( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartChaos)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopChaos( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopChaos)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetChaosReport( + &self, + getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosReport)( + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaosReport( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosReport)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient2, + ::windows_core::IUnknown, + IFabricTestManagementClient + ); + impl ::core::cmp::PartialEq for IFabricTestManagementClient2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTestManagementClient2 {} + impl ::core::fmt::Debug for IFabricTestManagementClient2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTestManagementClient2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTestManagementClient2 { + type Vtable = IFabricTestManagementClient2_Vtbl; + } + impl ::core::clone::Clone for IFabricTestManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTestManagementClient2_Vtbl where { pub base__ : IFabricTestManagementClient_Vtbl , pub BeginStartChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStopChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStopChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetChaosReport :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetChaosReport :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricTestManagementClient3(::windows_core::IUnknown); + impl IFabricTestManagementClient3 { + pub unsafe fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionDataLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionDataLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionDataLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionQuorumLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionQuorumLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionRestart( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionRestartProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionRestartProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + operationid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetTestCommandStatusList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelTestCommand( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartChaos( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartChaos)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopChaos( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStopChaos)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetChaosReport( + &self, + getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetChaosReport)( + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaosReport( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetChaosReport)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartNodeTransition( + &self, + description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNodeTransition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetNodeTransitionProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeTransitionProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient3, + ::windows_core::IUnknown, + IFabricTestManagementClient, + IFabricTestManagementClient2 + ); + impl ::core::cmp::PartialEq for IFabricTestManagementClient3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTestManagementClient3 {} + impl ::core::fmt::Debug for IFabricTestManagementClient3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTestManagementClient3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTestManagementClient3 { + type Vtable = IFabricTestManagementClient3_Vtbl; + } + impl ::core::clone::Clone for IFabricTestManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa4b94afd_0cb5_4010_8995_e58e9b6ca373); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTestManagementClient3_Vtbl { + pub base__: IFabricTestManagementClient2_Vtbl, + pub BeginStartNodeTransition: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndStartNodeTransition: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginGetNodeTransitionProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndGetNodeTransitionProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricTestManagementClient4(::windows_core::IUnknown); + impl IFabricTestManagementClient4 { + pub unsafe fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionDataLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionDataLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionDataLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionQuorumLoss( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionQuorumLossProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartPartitionRestart( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetPartitionRestartProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetPartitionRestartProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + operationid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetTestCommandStatusList( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCancelTestCommand( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStartChaos( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStartChaos)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginStopChaos( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginStopChaos)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetChaosReport( + &self, + getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginGetChaosReport)( + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaosReport( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndGetChaosReport)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginStartNodeTransition( + &self, + description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + description, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndStartNodeTransition( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetNodeTransitionProgress( + &self, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), + ::core::mem::transmute(operationid), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNodeTransitionProgress( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetChaos( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaos)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaos( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginGetChaosSchedule( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaosSchedule( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginSetChaosSchedule( + &self, + setchaosscheduledescription : *const super::super:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + setchaosscheduledescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndSetChaosSchedule( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndSetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginGetChaosEvents( + &self, + chaoseventsdescription : *const super::super:: FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosEvents)( + ::windows_core::Interface::as_raw(self), + chaoseventsdescription, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetChaosEvents( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosEvents)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTestManagementClient4, + ::windows_core::IUnknown, + IFabricTestManagementClient, + IFabricTestManagementClient2, + IFabricTestManagementClient3 + ); + impl ::core::cmp::PartialEq for IFabricTestManagementClient4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTestManagementClient4 {} + impl ::core::fmt::Debug for IFabricTestManagementClient4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTestManagementClient4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTestManagementClient4 { + type Vtable = IFabricTestManagementClient4_Vtbl; + } + impl ::core::clone::Clone for IFabricTestManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb96aa7d4_acc0_4814_89dc_561b0cbb6028); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTestManagementClient4_Vtbl where { pub base__ : IFabricTestManagementClient3_Vtbl , pub BeginGetChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetChaos :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetChaosSchedule :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetChaosSchedule :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginSetChaosSchedule :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , setchaosscheduledescription : *const super::super:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndSetChaosSchedule :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetChaosEvents :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , chaoseventsdescription : *const super::super:: FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetChaosEvents :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricUpgradeOrchestrationServiceStateResult(::windows_core::IUnknown); + impl IFabricUpgradeOrchestrationServiceStateResult { + pub unsafe fn get_State( + &self, + ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + (::windows_core::Interface::vtable(self).get_State)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricUpgradeOrchestrationServiceStateResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricUpgradeOrchestrationServiceStateResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricUpgradeOrchestrationServiceStateResult {} + impl ::core::fmt::Debug for IFabricUpgradeOrchestrationServiceStateResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricUpgradeOrchestrationServiceStateResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricUpgradeOrchestrationServiceStateResult { + type Vtable = IFabricUpgradeOrchestrationServiceStateResult_Vtbl; + } + impl ::core::clone::Clone for IFabricUpgradeOrchestrationServiceStateResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricUpgradeOrchestrationServiceStateResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x413968aa_2eb7_4023_b9dc_0f2160b76a6d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_State :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE , } + #[repr(transparent)] + pub struct IFabricUpgradeProgressResult(::windows_core::IUnknown); + impl IFabricUpgradeProgressResult { + pub unsafe fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_TargetCodeVersion)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_TargetConfigVersion)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { + (::windows_core::Interface::vtable(self).get_UpgradeState)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricUpgradeProgressResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricUpgradeProgressResult {} + impl ::core::fmt::Debug for IFabricUpgradeProgressResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricUpgradeProgressResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult { + type Vtable = IFabricUpgradeProgressResult_Vtbl; + } + impl ::core::clone::Clone for IFabricUpgradeProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2adb07db_f7db_4621_9afc_daabe1e53bf8); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricUpgradeProgressResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_TargetCodeVersion: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + pub get_TargetConfigVersion: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + pub get_UpgradeState: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_UPGRADE_STATE, + pub GetUpgradeDomains: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) + -> ::windows_core::HRESULT, + pub GetChangedUpgradeDomains: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + previousprogress: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricUpgradeProgressResult2(::windows_core::IUnknown); + impl IFabricUpgradeProgressResult2 { + pub unsafe fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_TargetCodeVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_TargetConfigVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { + (::windows_core::Interface::vtable(self) + .base__ + .get_UpgradeState)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn get_RollingUpgradeMode( + &self, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + (::windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_NextUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricUpgradeProgressResult2, + ::windows_core::IUnknown, + IFabricUpgradeProgressResult + ); + impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricUpgradeProgressResult2 {} + impl ::core::fmt::Debug for IFabricUpgradeProgressResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricUpgradeProgressResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult2 { + type Vtable = IFabricUpgradeProgressResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricUpgradeProgressResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricUpgradeProgressResult2_Vtbl { + pub base__: IFabricUpgradeProgressResult_Vtbl, + pub get_RollingUpgradeMode: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_ROLLING_UPGRADE_MODE, + pub get_NextUpgradeDomain: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + } + #[repr(transparent)] + pub struct IFabricUpgradeProgressResult3(::windows_core::IUnknown); + impl IFabricUpgradeProgressResult3 { + pub unsafe fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_TargetCodeVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_TargetConfigVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_UpgradeState)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn GetChangedUpgradeDomains( + &self, + previousprogress: P0, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, + ) + .ok() + } + pub unsafe fn get_RollingUpgradeMode( + &self, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + (::windows_core::Interface::vtable(self) + .base__ + .get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_NextUpgradeDomain)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_UpgradeProgress( + &self, + ) -> *mut super::super::FABRIC_UPGRADE_PROGRESS { + (::windows_core::Interface::vtable(self).get_UpgradeProgress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricUpgradeProgressResult3, + ::windows_core::IUnknown, + IFabricUpgradeProgressResult, + IFabricUpgradeProgressResult2 + ); + impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricUpgradeProgressResult3 {} + impl ::core::fmt::Debug for IFabricUpgradeProgressResult3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricUpgradeProgressResult3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult3 { + type Vtable = IFabricUpgradeProgressResult3_Vtbl; + } + impl ::core::clone::Clone for IFabricUpgradeProgressResult3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricUpgradeProgressResult3_Vtbl { + pub base__: IFabricUpgradeProgressResult2_Vtbl, + pub get_UpgradeProgress: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_UPGRADE_PROGRESS, + } + pub const FabricClient: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); + pub trait IFabricApplicationHealthResult_Impl: Sized { + fn get_ApplicationHealth(&self) -> *mut super::super::FABRIC_APPLICATION_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricApplicationHealthResult {} + impl IFabricApplicationHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricApplicationHealthResult_Vtbl { + unsafe extern "system" fn get_ApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationHealth: get_ApplicationHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricApplicationManagementClient_Impl: Sized { + fn BeginProvisionApplicationType( + &self, + applicationbuildpath: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProvisionApplicationType( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginCreateApplication( + &self, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateApplication( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUpgradeApplication( + &self, + upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpgradeApplication( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetApplicationUpgradeProgress( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationUpgradeProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginMoveNextApplicationUpgradeDomain( + &self, + progress: ::core::option::Option<&IFabricApplicationUpgradeProgressResult2>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMoveNextApplicationUpgradeDomain( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteApplication( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteApplication( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUnprovisionApplicationType( + &self, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUnprovisionApplicationType( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient {} + impl IFabricApplicationManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient_Vtbl { + unsafe extern "system" fn BeginProvisionApplicationType< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationbuildpath: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProvisionApplicationType( + ::core::mem::transmute(&applicationbuildpath), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProvisionApplicationType< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProvisionApplicationType(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginCreateApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateApplication( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateApplication(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUpgradeApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + upgradedescription : *const super::super:: FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpgradeApplication( + ::core::mem::transmute_copy(&upgradedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpgradeApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpgradeApplication(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetApplicationUpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationUpgradeProgress( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationUpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetApplicationUpgradeProgress( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + progress: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMoveNextApplicationUpgradeDomain( + ::windows_core::from_raw_borrowed(&progress), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndMoveNextApplicationUpgradeDomain(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginDeleteApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteApplication( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteApplication(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUnprovisionApplicationType< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUnprovisionApplicationType( + ::core::mem::transmute(&applicationtypename), + ::core::mem::transmute(&applicationtypeversion), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUnprovisionApplicationType< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUnprovisionApplicationType(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginProvisionApplicationType: BeginProvisionApplicationType::< + Identity, + Impl, + OFFSET, + >, + EndProvisionApplicationType: EndProvisionApplicationType::< + Identity, + Impl, + OFFSET, + >, + BeginCreateApplication: BeginCreateApplication::, + EndCreateApplication: EndCreateApplication::, + BeginUpgradeApplication: BeginUpgradeApplication::, + EndUpgradeApplication: EndUpgradeApplication::, + BeginGetApplicationUpgradeProgress: BeginGetApplicationUpgradeProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationUpgradeProgress: EndGetApplicationUpgradeProgress::< + Identity, + Impl, + OFFSET, + >, + BeginMoveNextApplicationUpgradeDomain: + BeginMoveNextApplicationUpgradeDomain::, + EndMoveNextApplicationUpgradeDomain: EndMoveNextApplicationUpgradeDomain::< + Identity, + Impl, + OFFSET, + >, + BeginDeleteApplication: BeginDeleteApplication::, + EndDeleteApplication: EndDeleteApplication::, + BeginUnprovisionApplicationType: BeginUnprovisionApplicationType::< + Identity, + Impl, + OFFSET, + >, + EndUnprovisionApplicationType: EndUnprovisionApplicationType::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient10_Impl: + Sized + IFabricApplicationManagementClient9_Impl + { + fn BeginProvisionApplicationType3( + &self, + description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProvisionApplicationType3( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient10 {} + impl IFabricApplicationManagementClient10_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient10_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient10_Vtbl { + unsafe extern "system" fn BeginProvisionApplicationType3< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProvisionApplicationType3( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProvisionApplicationType3< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProvisionApplicationType3(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricApplicationManagementClient9_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginProvisionApplicationType3: BeginProvisionApplicationType3::< + Identity, + Impl, + OFFSET, + >, + EndProvisionApplicationType3: EndProvisionApplicationType3::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient10 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient7 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient8 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient9 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient2_Impl: + Sized + IFabricApplicationManagementClient_Impl + { + fn BeginGetApplicationManifest( + &self, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationManifest( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginMoveNextApplicationUpgradeDomain2( + &self, + applicationname: *const u16, + nextupgradedomain: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMoveNextApplicationUpgradeDomain2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient2 {} + impl IFabricApplicationManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient2_Vtbl { + unsafe extern "system" fn BeginGetApplicationManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationManifest( + ::core::mem::transmute(&applicationtypename), + ::core::mem::transmute(&applicationtypeversion), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationManifest(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + nextupgradedomain: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMoveNextApplicationUpgradeDomain2( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute(&nextupgradedomain), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndMoveNextApplicationUpgradeDomain2( + ::windows_core::from_raw_borrowed(&context), + ) + .into() + } + Self { + base__: IFabricApplicationManagementClient_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginGetApplicationManifest: BeginGetApplicationManifest::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationManifest: EndGetApplicationManifest::< + Identity, + Impl, + OFFSET, + >, + BeginMoveNextApplicationUpgradeDomain2: + BeginMoveNextApplicationUpgradeDomain2::, + EndMoveNextApplicationUpgradeDomain2: EndMoveNextApplicationUpgradeDomain2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient3_Impl: + Sized + IFabricApplicationManagementClient2_Impl + { + fn BeginUpdateApplicationUpgrade( + &self, + description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateApplicationUpgrade( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRestartDeployedCodePackage( + &self, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestartDeployedCodePackage( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn CopyApplicationPackage( + &self, + imagestoreconnectionstring: &::windows_core::PCWSTR, + applicationpackagepath: &::windows_core::PCWSTR, + applicationpackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn RemoveApplicationPackage( + &self, + imagestoreconnectionstring: &::windows_core::PCWSTR, + applicationpackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient3 {} + impl IFabricApplicationManagementClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient3_Vtbl { + unsafe extern "system" fn BeginUpdateApplicationUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateApplicationUpgrade( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateApplicationUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateApplicationUpgrade(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginRestartDeployedCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestartDeployedCodePackage( + ::core::mem::transmute_copy(&restartcodepackagedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestartDeployedCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRestartDeployedCodePackage(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn CopyApplicationPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + applicationpackagepath: ::windows_core::PCWSTR, + applicationpackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.CopyApplicationPackage( + ::core::mem::transmute(&imagestoreconnectionstring), + ::core::mem::transmute(&applicationpackagepath), + ::core::mem::transmute(&applicationpackagepathinimagestore), + ) + .into() + } + unsafe extern "system" fn RemoveApplicationPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + applicationpackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RemoveApplicationPackage( + ::core::mem::transmute(&imagestoreconnectionstring), + ::core::mem::transmute(&applicationpackagepathinimagestore), + ) + .into() + } + Self { + base__: IFabricApplicationManagementClient2_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginUpdateApplicationUpgrade: BeginUpdateApplicationUpgrade::< + Identity, + Impl, + OFFSET, + >, + EndUpdateApplicationUpgrade: EndUpdateApplicationUpgrade::< + Identity, + Impl, + OFFSET, + >, + BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::< + Identity, + Impl, + OFFSET, + >, + EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::< + Identity, + Impl, + OFFSET, + >, + CopyApplicationPackage: CopyApplicationPackage::, + RemoveApplicationPackage: RemoveApplicationPackage::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient4_Impl: + Sized + IFabricApplicationManagementClient3_Impl + { + fn BeginDeployServicePackageToNode( + &self, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + servicemanifestname: &::windows_core::PCWSTR, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeployServicePackageToNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient4 {} + impl IFabricApplicationManagementClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient4_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient4_Vtbl { + unsafe extern "system" fn BeginDeployServicePackageToNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeployServicePackageToNode( + ::core::mem::transmute(&applicationtypename), + ::core::mem::transmute(&applicationtypeversion), + ::core::mem::transmute(&servicemanifestname), + ::core::mem::transmute_copy(&sharingpolicy), + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeployServicePackageToNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeployServicePackageToNode(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricApplicationManagementClient3_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginDeployServicePackageToNode: BeginDeployServicePackageToNode::< + Identity, + Impl, + OFFSET, + >, + EndDeployServicePackageToNode: EndDeployServicePackageToNode::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient4 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient5_Impl: + Sized + IFabricApplicationManagementClient4_Impl + { + fn BeginRollbackApplicationUpgrade( + &self, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRollbackApplicationUpgrade( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient5 {} + impl IFabricApplicationManagementClient5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient5_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient5_Vtbl { + unsafe extern "system" fn BeginRollbackApplicationUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRollbackApplicationUpgrade( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRollbackApplicationUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRollbackApplicationUpgrade(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricApplicationManagementClient4_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginRollbackApplicationUpgrade: BeginRollbackApplicationUpgrade::< + Identity, + Impl, + OFFSET, + >, + EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient5 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient6_Impl: + Sized + IFabricApplicationManagementClient5_Impl + { + fn BeginUpdateApplication( + &self, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateApplication( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient6 {} + impl IFabricApplicationManagementClient6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient6_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient6_Vtbl { + unsafe extern "system" fn BeginUpdateApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateApplication( + ::core::mem::transmute_copy(&applicationupdatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateApplication< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateApplication(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricApplicationManagementClient5_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginUpdateApplication: BeginUpdateApplication::, + EndUpdateApplication: EndUpdateApplication::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient6 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient5 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient7_Impl: + Sized + IFabricApplicationManagementClient6_Impl + { + fn BeginDeleteApplication2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteApplication2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient7 {} + impl IFabricApplicationManagementClient7_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient7_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient7_Vtbl { + unsafe extern "system" fn BeginDeleteApplication2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + deletedescription : *const super::super:: FABRIC_DELETE_APPLICATION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteApplication2( + ::core::mem::transmute_copy(&deletedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteApplication2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteApplication2(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricApplicationManagementClient6_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginDeleteApplication2: BeginDeleteApplication2::, + EndDeleteApplication2: EndDeleteApplication2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient7 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient6 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient8_Impl: + Sized + IFabricApplicationManagementClient7_Impl + { + fn BeginProvisionApplicationType2( + &self, + description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProvisionApplicationType2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient8 {} + impl IFabricApplicationManagementClient8_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient8_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient8_Vtbl { + unsafe extern "system" fn BeginProvisionApplicationType2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProvisionApplicationType2( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProvisionApplicationType2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProvisionApplicationType2(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricApplicationManagementClient7_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginProvisionApplicationType2: BeginProvisionApplicationType2::< + Identity, + Impl, + OFFSET, + >, + EndProvisionApplicationType2: EndProvisionApplicationType2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient8 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient7 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationManagementClient9_Impl: + Sized + IFabricApplicationManagementClient8_Impl + { + fn BeginUnprovisionApplicationType2( + &self, + description : *const super::super:: FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUnprovisionApplicationType2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationManagementClient9 {} + impl IFabricApplicationManagementClient9_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient9_Impl, + const OFFSET: isize, + >() -> IFabricApplicationManagementClient9_Vtbl { + unsafe extern "system" fn BeginUnprovisionApplicationType2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUnprovisionApplicationType2( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUnprovisionApplicationType2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUnprovisionApplicationType2(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricApplicationManagementClient8_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginUnprovisionApplicationType2: BeginUnprovisionApplicationType2::< + Identity, + Impl, + OFFSET, + >, + EndUnprovisionApplicationType2: EndUnprovisionApplicationType2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationManagementClient9 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient7 as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationManagementClient8 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationUpgradeProgressResult_Impl: Sized { + fn get_ApplicationName(&self) -> *mut u16; + fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR; + fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR; + fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE; + fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()>; + fn GetChangedUpgradeDomains( + &self, + previousprogress: ::core::option::Option< + &IFabricApplicationUpgradeProgressResult, + >, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult {} + impl IFabricApplicationUpgradeProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricApplicationUpgradeProgressResult_Vtbl { + unsafe extern "system" fn get_ApplicationName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut u16 { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationName() + } + unsafe extern "system" fn get_ApplicationTypeName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationTypeName() + } + unsafe extern "system" fn get_TargetApplicationTypeVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_TargetApplicationTypeVersion() + } + unsafe extern "system" fn get_UpgradeState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_UpgradeState() + } + unsafe extern "system" fn GetUpgradeDomains< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems : *mut *mut super::super:: FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetUpgradeDomains( + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + unsafe extern "system" fn GetChangedUpgradeDomains< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + previousprogress: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems : *mut *mut super::super:: FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetChangedUpgradeDomains( + ::windows_core::from_raw_borrowed(&previousprogress), + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationName: get_ApplicationName::, + get_ApplicationTypeName: get_ApplicationTypeName::, + get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::< + Identity, + Impl, + OFFSET, + >, + get_UpgradeState: get_UpgradeState::, + GetUpgradeDomains: GetUpgradeDomains::, + GetChangedUpgradeDomains: GetChangedUpgradeDomains::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationUpgradeProgressResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationUpgradeProgressResult2_Impl: + Sized + IFabricApplicationUpgradeProgressResult_Impl + { + fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; + fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} + impl IFabricApplicationUpgradeProgressResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >() -> IFabricApplicationUpgradeProgressResult2_Vtbl { + unsafe extern "system" fn get_RollingUpgradeMode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_RollingUpgradeMode() + } + unsafe extern "system" fn get_NextUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NextUpgradeDomain() + } + Self { + base__: IFabricApplicationUpgradeProgressResult_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + get_RollingUpgradeMode: get_RollingUpgradeMode::, + get_NextUpgradeDomain: get_NextUpgradeDomain::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationUpgradeProgressResult2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationUpgradeProgressResult as::windows_core::ComInterface >::IID + } + } + pub trait IFabricApplicationUpgradeProgressResult3_Impl: + Sized + IFabricApplicationUpgradeProgressResult2_Impl + { + fn get_UpgradeProgress( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} + impl IFabricApplicationUpgradeProgressResult3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult3_Impl, + const OFFSET: isize, + >() -> IFabricApplicationUpgradeProgressResult3_Vtbl { + unsafe extern "system" fn get_UpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricApplicationUpgradeProgressResult3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_UpgradeProgress() + } + Self { + base__: IFabricApplicationUpgradeProgressResult2_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + get_UpgradeProgress: get_UpgradeProgress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricApplicationUpgradeProgressResult3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationUpgradeProgressResult as::windows_core::ComInterface >::IID || iid == & < IFabricApplicationUpgradeProgressResult2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricChaosDescriptionResult_Impl: Sized { + fn get_ChaosDescriptionResult(&self) + -> *mut super::super::FABRIC_CHAOS_DESCRIPTION; + } + impl ::windows_core::RuntimeName for IFabricChaosDescriptionResult {} + impl IFabricChaosDescriptionResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosDescriptionResult_Impl, + const OFFSET: isize, + >() -> IFabricChaosDescriptionResult_Vtbl { + unsafe extern "system" fn get_ChaosDescriptionResult< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ChaosDescriptionResult() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ChaosDescriptionResult: get_ChaosDescriptionResult::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricChaosEventsSegmentResult_Impl: Sized { + fn get_ChaosEventsSegmentResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT; + } + impl ::windows_core::RuntimeName for IFabricChaosEventsSegmentResult {} + impl IFabricChaosEventsSegmentResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosEventsSegmentResult_Impl, + const OFFSET: isize, + >() -> IFabricChaosEventsSegmentResult_Vtbl { + unsafe extern "system" fn get_ChaosEventsSegmentResult< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosEventsSegmentResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ChaosEventsSegmentResult() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricChaosReportResult_Impl: Sized { + fn get_ChaosReportResult(&self) -> *mut super::super::FABRIC_CHAOS_REPORT; + } + impl ::windows_core::RuntimeName for IFabricChaosReportResult {} + impl IFabricChaosReportResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosReportResult_Impl, + const OFFSET: isize, + >() -> IFabricChaosReportResult_Vtbl { + unsafe extern "system" fn get_ChaosReportResult< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosReportResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CHAOS_REPORT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ChaosReportResult() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ChaosReportResult: get_ChaosReportResult::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricChaosScheduleDescriptionResult_Impl: Sized { + fn get_ChaosScheduleDescriptionResult( + &self, + ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION; + } + impl ::windows_core::RuntimeName for IFabricChaosScheduleDescriptionResult {} + impl IFabricChaosScheduleDescriptionResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosScheduleDescriptionResult_Impl, + const OFFSET: isize, + >() -> IFabricChaosScheduleDescriptionResult_Vtbl { + unsafe extern "system" fn get_ChaosScheduleDescriptionResult< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricChaosScheduleDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ChaosScheduleDescriptionResult() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricChaosScheduleDescriptionResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClientConnectionEventHandler_Impl: Sized { + fn OnConnected( + &self, + __midl__ifabricclientconnectioneventhandler0000: ::core::option::Option< + &IFabricGatewayInformationResult, + >, + ) -> ::windows_core::Result<()>; + fn OnDisconnected( + &self, + __midl__ifabricclientconnectioneventhandler0001: ::core::option::Option< + &IFabricGatewayInformationResult, + >, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClientConnectionEventHandler {} + impl IFabricClientConnectionEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientConnectionEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricClientConnectionEventHandler_Vtbl { + unsafe extern "system" fn OnConnected< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientConnectionEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnConnected(::windows_core::from_raw_borrowed( + &__midl__ifabricclientconnectioneventhandler0000, + )) + .into() + } + unsafe extern "system" fn OnDisconnected< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientConnectionEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnDisconnected(::windows_core::from_raw_borrowed( + &__midl__ifabricclientconnectioneventhandler0001, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnConnected: OnConnected::, + OnDisconnected: OnDisconnected::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClientConnectionEventHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClientConnectionEventHandler2_Impl: + Sized + IFabricClientConnectionEventHandler_Impl + { + fn OnClaimsRetrieval( + &self, + metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricClientConnectionEventHandler2 {} + impl IFabricClientConnectionEventHandler2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientConnectionEventHandler2_Impl, + const OFFSET: isize, + >() -> IFabricClientConnectionEventHandler2_Vtbl { + unsafe extern "system" fn OnClaimsRetrieval< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientConnectionEventHandler2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, + token: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.OnClaimsRetrieval(::core::mem::transmute_copy(&metadata)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(token, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricClientConnectionEventHandler_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + OnClaimsRetrieval: OnClaimsRetrieval::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClientConnectionEventHandler2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClientConnectionEventHandler as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClientSettings_Impl: Sized { + fn SetSecurityCredentials( + &self, + securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + ) -> ::windows_core::Result<()>; + fn SetKeepAlive( + &self, + keepaliveintervalinseconds: u32, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClientSettings {} + impl IFabricClientSettings_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings_Impl, + const OFFSET: isize, + >() -> IFabricClientSettings_Vtbl { + unsafe extern "system" fn SetSecurityCredentials< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.SetSecurityCredentials(::core::mem::transmute_copy( + &securitycredentials, + )) + .into() + } + unsafe extern "system" fn SetKeepAlive< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + keepaliveintervalinseconds: u32, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.SetKeepAlive(::core::mem::transmute_copy(&keepaliveintervalinseconds)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + SetSecurityCredentials: SetSecurityCredentials::, + SetKeepAlive: SetKeepAlive::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricClientSettings2_Impl: Sized + IFabricClientSettings_Impl { + fn GetSettings(&self) -> ::windows_core::Result; + fn SetSettings( + &self, + fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClientSettings2 {} + impl IFabricClientSettings2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings2_Impl, + const OFFSET: isize, + >() -> IFabricClientSettings2_Vtbl { + unsafe extern "system" fn GetSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetSettings() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn SetSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettings2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.SetSettings(::core::mem::transmute_copy(&fabricclientsettings)) + .into() + } + Self { + base__: IFabricClientSettings_Vtbl::new::(), + GetSettings: GetSettings::, + SetSettings: SetSettings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricClientSettingsResult_Impl: Sized { + fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS; + } + impl ::windows_core::RuntimeName for IFabricClientSettingsResult {} + impl IFabricClientSettingsResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettingsResult_Impl, + const OFFSET: isize, + >() -> IFabricClientSettingsResult_Vtbl { + unsafe extern "system" fn get_Settings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClientSettingsResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CLIENT_SETTINGS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Settings() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Settings: get_Settings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricClusterHealthResult_Impl: Sized { + fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricClusterHealthResult {} + impl IFabricClusterHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricClusterHealthResult_Vtbl { + unsafe extern "system" fn get_ClusterHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CLUSTER_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ClusterHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ClusterHealth: get_ClusterHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricClusterManagementClient_Impl: Sized { + fn BeginNodeStateRemoved( + &self, + nodename: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndNodeStateRemoved( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRecoverPartitions( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRecoverPartitions( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient {} + impl IFabricClusterManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient_Vtbl { + unsafe extern "system" fn BeginNodeStateRemoved< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginNodeStateRemoved( + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndNodeStateRemoved< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndNodeStateRemoved(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginRecoverPartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRecoverPartitions( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRecoverPartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRecoverPartitions(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginNodeStateRemoved: BeginNodeStateRemoved::, + EndNodeStateRemoved: EndNodeStateRemoved::, + BeginRecoverPartitions: BeginRecoverPartitions::, + EndRecoverPartitions: EndRecoverPartitions::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricClusterManagementClient10_Impl: + Sized + IFabricClusterManagementClient9_Impl + { + fn BeginGetClusterConfiguration2( + &self, + apiversion: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterConfiguration2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient10 {} + impl IFabricClusterManagementClient10_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient10_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient10_Vtbl { + unsafe extern "system" fn BeginGetClusterConfiguration2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + apiversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterConfiguration2( + ::core::mem::transmute(&apiversion), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterConfiguration2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetClusterConfiguration2(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricClusterManagementClient9_Vtbl::new::( + ), + BeginGetClusterConfiguration2: BeginGetClusterConfiguration2::< + Identity, + Impl, + OFFSET, + >, + EndGetClusterConfiguration2: EndGetClusterConfiguration2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient10 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient7 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient8 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient9 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient2_Impl: + Sized + IFabricClusterManagementClient_Impl + { + fn BeginDeactivateNode( + &self, + nodename: &::windows_core::PCWSTR, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeactivateNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginActivateNode( + &self, + nodename: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndActivateNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginProvisionFabric( + &self, + codefilepath: &::windows_core::PCWSTR, + clustermanifestfilepath: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProvisionFabric( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUpgradeFabric( + &self, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpgradeFabric( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetFabricUpgradeProgress( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetFabricUpgradeProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginMoveNextFabricUpgradeDomain( + &self, + progress: ::core::option::Option<&IFabricUpgradeProgressResult2>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMoveNextFabricUpgradeDomain( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginMoveNextFabricUpgradeDomain2( + &self, + nextupgradedomain: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMoveNextFabricUpgradeDomain2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUnprovisionFabric( + &self, + codeversion: &::windows_core::PCWSTR, + configversion: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUnprovisionFabric( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetClusterManifest( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterManifest( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginRecoverPartition( + &self, + partitionid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRecoverPartition( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRecoverServicePartitions( + &self, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRecoverServicePartitions( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRecoverSystemPartitions( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRecoverSystemPartitions( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient2 {} + impl IFabricClusterManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient2_Vtbl { + unsafe extern "system" fn BeginDeactivateNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeactivateNode( + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&intent), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeactivateNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeactivateNode(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginActivateNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginActivateNode( + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndActivateNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndActivateNode(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginProvisionFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codefilepath: ::windows_core::PCWSTR, + clustermanifestfilepath: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProvisionFabric( + ::core::mem::transmute(&codefilepath), + ::core::mem::transmute(&clustermanifestfilepath), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProvisionFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProvisionFabric(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUpgradeFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpgradeFabric( + ::core::mem::transmute_copy(&upgradedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpgradeFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpgradeFabric(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetFabricUpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetFabricUpgradeProgress( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetFabricUpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetFabricUpgradeProgress(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + progress: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMoveNextFabricUpgradeDomain( + ::windows_core::from_raw_borrowed(&progress), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMoveNextFabricUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndMoveNextFabricUpgradeDomain(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + nextupgradedomain: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMoveNextFabricUpgradeDomain2( + ::core::mem::transmute(&nextupgradedomain), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndMoveNextFabricUpgradeDomain2(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginUnprovisionFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codeversion: ::windows_core::PCWSTR, + configversion: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUnprovisionFabric( + ::core::mem::transmute(&codeversion), + ::core::mem::transmute(&configversion), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUnprovisionFabric< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUnprovisionFabric(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetClusterManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterManifest( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetClusterManifest(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginRecoverPartition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRecoverPartition( + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRecoverPartition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRecoverPartition(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginRecoverServicePartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRecoverServicePartitions( + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRecoverServicePartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRecoverServicePartitions(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginRecoverSystemPartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRecoverSystemPartitions( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRecoverSystemPartitions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRecoverSystemPartitions(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricClusterManagementClient_Vtbl::new::( + ), + BeginDeactivateNode: BeginDeactivateNode::, + EndDeactivateNode: EndDeactivateNode::, + BeginActivateNode: BeginActivateNode::, + EndActivateNode: EndActivateNode::, + BeginProvisionFabric: BeginProvisionFabric::, + EndProvisionFabric: EndProvisionFabric::, + BeginUpgradeFabric: BeginUpgradeFabric::, + EndUpgradeFabric: EndUpgradeFabric::, + BeginGetFabricUpgradeProgress: BeginGetFabricUpgradeProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetFabricUpgradeProgress: EndGetFabricUpgradeProgress::< + Identity, + Impl, + OFFSET, + >, + BeginMoveNextFabricUpgradeDomain: BeginMoveNextFabricUpgradeDomain::< + Identity, + Impl, + OFFSET, + >, + EndMoveNextFabricUpgradeDomain: EndMoveNextFabricUpgradeDomain::< + Identity, + Impl, + OFFSET, + >, + BeginMoveNextFabricUpgradeDomain2: BeginMoveNextFabricUpgradeDomain2::< + Identity, + Impl, + OFFSET, + >, + EndMoveNextFabricUpgradeDomain2: EndMoveNextFabricUpgradeDomain2::< + Identity, + Impl, + OFFSET, + >, + BeginUnprovisionFabric: BeginUnprovisionFabric::, + EndUnprovisionFabric: EndUnprovisionFabric::, + BeginGetClusterManifest: BeginGetClusterManifest::, + EndGetClusterManifest: EndGetClusterManifest::, + BeginRecoverPartition: BeginRecoverPartition::, + EndRecoverPartition: EndRecoverPartition::, + BeginRecoverServicePartitions: BeginRecoverServicePartitions::< + Identity, + Impl, + OFFSET, + >, + EndRecoverServicePartitions: EndRecoverServicePartitions::< + Identity, + Impl, + OFFSET, + >, + BeginRecoverSystemPartitions: BeginRecoverSystemPartitions::< + Identity, + Impl, + OFFSET, + >, + EndRecoverSystemPartitions: EndRecoverSystemPartitions::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient3_Impl: + Sized + IFabricClusterManagementClient2_Impl + { + fn BeginUpdateFabricUpgrade( + &self, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateFabricUpgrade( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginStopNode( + &self, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStopNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRestartNode( + &self, + restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestartNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginStartNode( + &self, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn CopyClusterPackage( + &self, + imagestoreconnectionstring: &::windows_core::PCWSTR, + clustermanifestpath: &::windows_core::PCWSTR, + clustermanifestpathinimagestore: &::windows_core::PCWSTR, + codepackagepath: &::windows_core::PCWSTR, + codepackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn RemoveClusterPackage( + &self, + imagestoreconnectionstring: &::windows_core::PCWSTR, + clustermanifestpathinimagestore: &::windows_core::PCWSTR, + codepackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient3 {} + impl IFabricClusterManagementClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient3_Vtbl { + unsafe extern "system" fn BeginUpdateFabricUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateFabricUpgrade( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateFabricUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateFabricUpgrade(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginStopNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStopNode( + ::core::mem::transmute_copy(&stopnodedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStopNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStopNode(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginRestartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + restartnodedescription : *const super::super:: FABRIC_RESTART_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestartNode( + ::core::mem::transmute_copy(&restartnodedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRestartNode(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginStartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartNode( + ::core::mem::transmute_copy(&startnodedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartNode(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn CopyClusterPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpath: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepath: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.CopyClusterPackage( + ::core::mem::transmute(&imagestoreconnectionstring), + ::core::mem::transmute(&clustermanifestpath), + ::core::mem::transmute(&clustermanifestpathinimagestore), + ::core::mem::transmute(&codepackagepath), + ::core::mem::transmute(&codepackagepathinimagestore), + ) + .into() + } + unsafe extern "system" fn RemoveClusterPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RemoveClusterPackage( + ::core::mem::transmute(&imagestoreconnectionstring), + ::core::mem::transmute(&clustermanifestpathinimagestore), + ::core::mem::transmute(&codepackagepathinimagestore), + ) + .into() + } + Self { + base__: IFabricClusterManagementClient2_Vtbl::new::( + ), + BeginUpdateFabricUpgrade: BeginUpdateFabricUpgrade::, + EndUpdateFabricUpgrade: EndUpdateFabricUpgrade::, + BeginStopNode: BeginStopNode::, + EndStopNode: EndStopNode::, + BeginRestartNode: BeginRestartNode::, + EndRestartNode: EndRestartNode::, + BeginStartNode: BeginStartNode::, + EndStartNode: EndStartNode::, + CopyClusterPackage: CopyClusterPackage::, + RemoveClusterPackage: RemoveClusterPackage::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient4_Impl: + Sized + IFabricClusterManagementClient3_Impl + { + fn BeginRollbackFabricUpgrade( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRollbackFabricUpgrade( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient4 {} + impl IFabricClusterManagementClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient4_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient4_Vtbl { + unsafe extern "system" fn BeginRollbackFabricUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRollbackFabricUpgrade( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRollbackFabricUpgrade< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRollbackFabricUpgrade(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricClusterManagementClient3_Vtbl::new::( + ), + BeginRollbackFabricUpgrade: BeginRollbackFabricUpgrade::< + Identity, + Impl, + OFFSET, + >, + EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient4 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient5_Impl: + Sized + IFabricClusterManagementClient4_Impl + { + fn BeginResetPartitionLoad( + &self, + partitionid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndResetPartitionLoad( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient5 {} + impl IFabricClusterManagementClient5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient5_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient5_Vtbl { + unsafe extern "system" fn BeginResetPartitionLoad< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginResetPartitionLoad( + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndResetPartitionLoad< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndResetPartitionLoad(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricClusterManagementClient4_Vtbl::new::( + ), + BeginResetPartitionLoad: BeginResetPartitionLoad::, + EndResetPartitionLoad: EndResetPartitionLoad::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient5 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient6_Impl: + Sized + IFabricClusterManagementClient5_Impl + { + fn BeginToggleVerboseServicePlacementHealthReporting( + &self, + enabled: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndToggleVerboseServicePlacementHealthReporting( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient6 {} + impl IFabricClusterManagementClient6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient6_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient6_Vtbl { + unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + enabled: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginToggleVerboseServicePlacementHealthReporting( + ::core::mem::transmute_copy(&enabled), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndToggleVerboseServicePlacementHealthReporting( + ::windows_core::from_raw_borrowed(&context), + ) + .into() + } + Self { + base__: IFabricClusterManagementClient5_Vtbl::new::( + ), + BeginToggleVerboseServicePlacementHealthReporting: + BeginToggleVerboseServicePlacementHealthReporting::< + Identity, + Impl, + OFFSET, + >, + EndToggleVerboseServicePlacementHealthReporting: + EndToggleVerboseServicePlacementHealthReporting::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient6 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient5 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient7_Impl: + Sized + IFabricClusterManagementClient6_Impl + { + fn BeginUpgradeConfiguration( + &self, + startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpgradeConfiguration( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetClusterConfigurationUpgradeStatus( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterConfigurationUpgradeStatus( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetClusterConfiguration( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterConfiguration( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetUpgradesPendingApproval( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetUpgradesPendingApproval( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginStartApprovedUpgrades( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartApprovedUpgrades( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient7 {} + impl IFabricClusterManagementClient7_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient7_Vtbl { + unsafe extern "system" fn BeginUpgradeConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + startupgradedescription : *const super::super:: FABRIC_START_UPGRADE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpgradeConfiguration( + ::core::mem::transmute_copy(&startupgradedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpgradeConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpgradeConfiguration(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterConfigurationUpgradeStatus( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetClusterConfigurationUpgradeStatus( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetClusterConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterConfiguration( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetClusterConfiguration(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetUpgradesPendingApproval< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetUpgradesPendingApproval( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetUpgradesPendingApproval< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndGetUpgradesPendingApproval(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginStartApprovedUpgrades< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartApprovedUpgrades( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartApprovedUpgrades< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartApprovedUpgrades(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricClusterManagementClient6_Vtbl::new::( + ), + BeginUpgradeConfiguration: BeginUpgradeConfiguration::< + Identity, + Impl, + OFFSET, + >, + EndUpgradeConfiguration: EndUpgradeConfiguration::, + BeginGetClusterConfigurationUpgradeStatus: + BeginGetClusterConfigurationUpgradeStatus::, + EndGetClusterConfigurationUpgradeStatus: + EndGetClusterConfigurationUpgradeStatus::, + BeginGetClusterConfiguration: BeginGetClusterConfiguration::< + Identity, + Impl, + OFFSET, + >, + EndGetClusterConfiguration: EndGetClusterConfiguration::< + Identity, + Impl, + OFFSET, + >, + BeginGetUpgradesPendingApproval: BeginGetUpgradesPendingApproval::< + Identity, + Impl, + OFFSET, + >, + EndGetUpgradesPendingApproval: EndGetUpgradesPendingApproval::< + Identity, + Impl, + OFFSET, + >, + BeginStartApprovedUpgrades: BeginStartApprovedUpgrades::< + Identity, + Impl, + OFFSET, + >, + EndStartApprovedUpgrades: EndStartApprovedUpgrades::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient7 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient6 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient8_Impl: + Sized + IFabricClusterManagementClient7_Impl + { + fn BeginGetClusterManifest2( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterManifest2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient8 {} + impl IFabricClusterManagementClient8_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient8_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient8_Vtbl { + unsafe extern "system" fn BeginGetClusterManifest2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterManifest2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterManifest2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetClusterManifest2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricClusterManagementClient7_Vtbl::new::( + ), + BeginGetClusterManifest2: BeginGetClusterManifest2::, + EndGetClusterManifest2: EndGetClusterManifest2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient8 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient7 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricClusterManagementClient9_Impl: + Sized + IFabricClusterManagementClient8_Impl + { + fn BeginGetUpgradeOrchestrationServiceState( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetUpgradeOrchestrationServiceState( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginSetUpgradeOrchestrationServiceState( + &self, + state: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndSetUpgradeOrchestrationServiceState( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricClusterManagementClient9 {} + impl IFabricClusterManagementClient9_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient9_Impl, + const OFFSET: isize, + >() -> IFabricClusterManagementClient9_Vtbl { + unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetUpgradeOrchestrationServiceState( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetUpgradeOrchestrationServiceState( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + state: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginSetUpgradeOrchestrationServiceState( + ::core::mem::transmute(&state), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricClusterManagementClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndSetUpgradeOrchestrationServiceState( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricClusterManagementClient8_Vtbl::new::( + ), + BeginGetUpgradeOrchestrationServiceState: + BeginGetUpgradeOrchestrationServiceState::, + EndGetUpgradeOrchestrationServiceState: + EndGetUpgradeOrchestrationServiceState::, + BeginSetUpgradeOrchestrationServiceState: + BeginSetUpgradeOrchestrationServiceState::, + EndSetUpgradeOrchestrationServiceState: + EndSetUpgradeOrchestrationServiceState::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricClusterManagementClient9 < > as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient5 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient6 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient7 as::windows_core::ComInterface >::IID || iid == & < IFabricClusterManagementClient8 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricDeployedApplicationHealthResult_Impl: Sized { + fn get_DeployedApplicationHealth( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricDeployedApplicationHealthResult {} + impl IFabricDeployedApplicationHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDeployedApplicationHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricDeployedApplicationHealthResult_Vtbl { + unsafe extern "system" fn get_DeployedApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDeployedApplicationHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedApplicationHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedApplicationHealth: get_DeployedApplicationHealth::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricDeployedApplicationHealthResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricDeployedServicePackageHealthResult_Impl: Sized { + fn get_DeployedServicePackageHealth( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricDeployedServicePackageHealthResult {} + impl IFabricDeployedServicePackageHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDeployedServicePackageHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricDeployedServicePackageHealthResult_Vtbl { + unsafe extern "system" fn get_DeployedServicePackageHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDeployedServicePackageHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedServicePackageHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricDeployedServicePackageHealthResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricFaultManagementClient_Impl: Sized { + fn BeginRestartNode( + &self, + description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestartNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginStartNode( + &self, + description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginStopNode( + &self, + description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStopNode( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginRestartDeployedCodePackage( + &self, + description : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestartDeployedCodePackage( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginMovePrimary( + &self, + description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMovePrimary( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginMoveSecondary( + &self, + description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndMoveSecondary( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricFaultManagementClient {} + impl IFabricFaultManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricFaultManagementClient_Vtbl { + unsafe extern "system" fn BeginRestartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestartNode( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndRestartNode(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginStartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartNode( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndStartNode(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginStopNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStopNode( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStopNode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndStopNode(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginRestartDeployedCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestartDeployedCodePackage( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestartDeployedCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndRestartDeployedCodePackage(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginMovePrimary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMovePrimary( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMovePrimary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndMovePrimary(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginMoveSecondary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginMoveSecondary( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndMoveSecondary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricFaultManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndMoveSecondary(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginRestartNode: BeginRestartNode::, + EndRestartNode: EndRestartNode::, + BeginStartNode: BeginStartNode::, + EndStartNode: EndStartNode::, + BeginStopNode: BeginStopNode::, + EndStopNode: EndStopNode::, + BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::< + Identity, + Impl, + OFFSET, + >, + EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::< + Identity, + Impl, + OFFSET, + >, + BeginMovePrimary: BeginMovePrimary::, + EndMovePrimary: EndMovePrimary::, + BeginMoveSecondary: BeginMoveSecondary::, + EndMoveSecondary: EndMoveSecondary::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGatewayInformationResult_Impl: Sized { + fn get_GatewayInformation(&self) -> *mut super::super::FABRIC_GATEWAY_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGatewayInformationResult {} + impl IFabricGatewayInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGatewayInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGatewayInformationResult_Vtbl { + unsafe extern "system" fn get_GatewayInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGatewayInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_GATEWAY_INFORMATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_GatewayInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_GatewayInformation: get_GatewayInformation::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetApplicationListResult_Impl: Sized { + fn get_ApplicationList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationListResult {} + impl IFabricGetApplicationListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationListResult_Vtbl { + unsafe extern "system" fn get_ApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationList: get_ApplicationList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetApplicationListResult2_Impl: + Sized + IFabricGetApplicationListResult_Impl + { + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationListResult2 {} + impl IFabricGetApplicationListResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationListResult2_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationListResult2_Vtbl { + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationListResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: IFabricGetApplicationListResult_Vtbl::new::( + ), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetApplicationListResult2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricGetApplicationListResult as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetApplicationLoadInformationResult_Impl: Sized { + fn get_ApplicationLoadInformation( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationLoadInformationResult {} + impl IFabricGetApplicationLoadInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationLoadInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationLoadInformationResult_Vtbl { + unsafe extern "system" fn get_ApplicationLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationLoadInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationLoadInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationLoadInformation: get_ApplicationLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetApplicationLoadInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetApplicationNameResult_Impl: Sized { + fn get_ApplicationName( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationNameResult {} + impl IFabricGetApplicationNameResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationNameResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationNameResult_Vtbl { + unsafe extern "system" fn get_ApplicationName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationNameResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationName() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationName: get_ApplicationName::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetApplicationNetworkListResult_Impl: Sized { + fn get_ApplicationNetworkList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationNetworkListResult {} + impl IFabricGetApplicationNetworkListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationNetworkListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationNetworkListResult_Vtbl { + unsafe extern "system" fn get_ApplicationNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationNetworkList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationNetworkList: get_ApplicationNetworkList::< + Identity, + Impl, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetApplicationNetworkListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetApplicationTypeListResult_Impl: Sized { + fn get_ApplicationTypeList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationTypeListResult {} + impl IFabricGetApplicationTypeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationTypeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationTypeListResult_Vtbl { + unsafe extern "system" fn get_ApplicationTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationTypeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationTypeList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationTypeList: get_ApplicationTypeList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetApplicationTypeListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetApplicationTypePagedListResult_Impl: Sized { + fn get_ApplicationTypePagedList( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetApplicationTypePagedListResult {} + impl IFabricGetApplicationTypePagedListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationTypePagedListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetApplicationTypePagedListResult_Vtbl { + unsafe extern "system" fn get_ApplicationTypePagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationTypePagedListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationTypePagedList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetApplicationTypePagedListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ApplicationTypePagedList: get_ApplicationTypePagedList::< + Identity, + Impl, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetApplicationTypePagedListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetClusterHealthChunkResult_Impl: Sized { + fn get_ClusterHealthChunk(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK; + } + impl ::windows_core::RuntimeName for IFabricGetClusterHealthChunkResult {} + impl IFabricGetClusterHealthChunkResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetClusterHealthChunkResult_Impl, + const OFFSET: isize, + >() -> IFabricGetClusterHealthChunkResult_Vtbl { + unsafe extern "system" fn get_ClusterHealthChunk< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetClusterHealthChunkResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ClusterHealthChunk() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ClusterHealthChunk: get_ClusterHealthChunk::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetClusterHealthChunkResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetClusterLoadInformationResult_Impl: Sized { + fn get_ClusterLoadInformation( + &self, + ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetClusterLoadInformationResult {} + impl IFabricGetClusterLoadInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetClusterLoadInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetClusterLoadInformationResult_Vtbl { + unsafe extern "system" fn get_ClusterLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetClusterLoadInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ClusterLoadInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ClusterLoadInformation: get_ClusterLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetClusterLoadInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedApplicationListResult_Impl: Sized { + fn get_DeployedApplicationList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedApplicationListResult {} + impl IFabricGetDeployedApplicationListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedApplicationListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedApplicationListResult_Vtbl { + unsafe extern "system" fn get_DeployedApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedApplicationListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedApplicationList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedApplicationList: get_DeployedApplicationList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedApplicationListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedApplicationPagedListResult_Impl: Sized { + fn get_DeployedApplicationPagedList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} + impl IFabricGetDeployedApplicationPagedListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedApplicationPagedListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedApplicationPagedListResult_Vtbl { + unsafe extern "system" fn get_DeployedApplicationPagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedApplicationPagedListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedApplicationPagedList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedApplicationPagedListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::< + Identity, + Impl, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedApplicationPagedListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedCodePackageListResult_Impl: Sized { + fn get_DeployedCodePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedCodePackageListResult {} + impl IFabricGetDeployedCodePackageListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedCodePackageListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedCodePackageListResult_Vtbl { + unsafe extern "system" fn get_DeployedCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedCodePackageListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedCodePackageList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedCodePackageList: get_DeployedCodePackageList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedCodePackageListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: Sized { + fn get_DeployedNetworkCodePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} + impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedNetworkCodePackageListResult_Vtbl { + unsafe extern "system" fn get_DeployedNetworkCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedNetworkCodePackageList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::< + Identity, + Impl, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedNetworkCodePackageListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedNetworkListResult_Impl: Sized { + fn get_DeployedNetworkList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedNetworkListResult {} + impl IFabricGetDeployedNetworkListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedNetworkListResult_Vtbl { + unsafe extern "system" fn get_DeployedNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedNetworkList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedNetworkList: get_DeployedNetworkList::, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedNetworkListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedReplicaListResult_Impl: Sized { + fn get_DeployedReplicaList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedReplicaListResult {} + impl IFabricGetDeployedReplicaListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedReplicaListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedReplicaListResult_Vtbl { + unsafe extern "system" fn get_DeployedReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedReplicaListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedReplicaList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedReplicaList: get_DeployedReplicaList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedReplicaListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedServicePackageListResult_Impl: Sized { + fn get_DeployedServicePackageList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedServicePackageListResult {} + impl IFabricGetDeployedServicePackageListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServicePackageListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedServicePackageListResult_Vtbl { + unsafe extern "system" fn get_DeployedServicePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServicePackageListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedServicePackageList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedServicePackageList: get_DeployedServicePackageList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedServicePackageListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: Sized { + fn get_ReplicaDetail( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} + impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedServiceReplicaDetailResult_Vtbl { + unsafe extern "system" fn get_ReplicaDetail< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicaDetail() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicaDetail: get_ReplicaDetail::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedServiceReplicaDetailResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetDeployedServiceTypeListResult_Impl: Sized { + fn get_DeployedServiceTypeList( + &self, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} + impl IFabricGetDeployedServiceTypeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServiceTypeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetDeployedServiceTypeListResult_Vtbl { + unsafe extern "system" fn get_DeployedServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetDeployedServiceTypeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_DeployedServiceTypeList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_DeployedServiceTypeList: get_DeployedServiceTypeList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedServiceTypeListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetNetworkApplicationListResult_Impl: Sized { + fn get_NetworkApplicationList( + &self, + ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetNetworkApplicationListResult {} + impl IFabricGetNetworkApplicationListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkApplicationListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetNetworkApplicationListResult_Vtbl { + unsafe extern "system" fn get_NetworkApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkApplicationListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NetworkApplicationList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkApplicationListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NetworkApplicationList: get_NetworkApplicationList::< + Identity, + Impl, + OFFSET, + >, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetNetworkApplicationListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetNetworkListResult_Impl: Sized { + fn get_NetworkList(&self) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetNetworkListResult {} + impl IFabricGetNetworkListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetNetworkListResult_Vtbl { + unsafe extern "system" fn get_NetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NetworkList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NetworkList: get_NetworkList::, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetNetworkNodeListResult_Impl: Sized { + fn get_NetworkNodeList( + &self, + ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST; + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetNetworkNodeListResult {} + impl IFabricGetNetworkNodeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkNodeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetNetworkNodeListResult_Vtbl { + unsafe extern "system" fn get_NetworkNodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkNodeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NetworkNodeList() + } + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNetworkNodeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NetworkNodeList: get_NetworkNodeList::, + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetNodeListResult_Impl: Sized { + fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetNodeListResult {} + impl IFabricGetNodeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetNodeListResult_Vtbl { + unsafe extern "system" fn get_NodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NodeList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NodeList: get_NodeList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetNodeListResult2_Impl: + Sized + IFabricGetNodeListResult_Impl + { + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetNodeListResult2 {} + impl IFabricGetNodeListResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeListResult2_Impl, + const OFFSET: isize, + >() -> IFabricGetNodeListResult2_Vtbl { + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeListResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: IFabricGetNodeListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricGetNodeLoadInformationResult_Impl: Sized { + fn get_NodeLoadInformation( + &self, + ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetNodeLoadInformationResult {} + impl IFabricGetNodeLoadInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeLoadInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetNodeLoadInformationResult_Vtbl { + unsafe extern "system" fn get_NodeLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetNodeLoadInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NodeLoadInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NodeLoadInformation: get_NodeLoadInformation::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetNodeLoadInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetPartitionListResult_Impl: Sized { + fn get_PartitionList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetPartitionListResult {} + impl IFabricGetPartitionListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetPartitionListResult_Vtbl { + unsafe extern "system" fn get_PartitionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PartitionList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_PartitionList: get_PartitionList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetPartitionListResult2_Impl: + Sized + IFabricGetPartitionListResult_Impl + { + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetPartitionListResult2 {} + impl IFabricGetPartitionListResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionListResult2_Impl, + const OFFSET: isize, + >() -> IFabricGetPartitionListResult2_Vtbl { + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionListResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: IFabricGetPartitionListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricGetPartitionLoadInformationResult_Impl: Sized { + fn get_PartitionLoadInformation( + &self, + ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetPartitionLoadInformationResult {} + impl IFabricGetPartitionLoadInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionLoadInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetPartitionLoadInformationResult_Vtbl { + unsafe extern "system" fn get_PartitionLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetPartitionLoadInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PartitionLoadInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_PartitionLoadInformation: get_PartitionLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetPartitionLoadInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetProvisionedCodeVersionListResult_Impl: Sized { + fn get_ProvisionedCodeVersionList( + &self, + ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} + impl IFabricGetProvisionedCodeVersionListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetProvisionedCodeVersionListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetProvisionedCodeVersionListResult_Vtbl { + unsafe extern "system" fn get_ProvisionedCodeVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetProvisionedCodeVersionListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ProvisionedCodeVersionList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetProvisionedCodeVersionListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetProvisionedConfigVersionListResult_Impl: Sized { + fn get_ProvisionedConfigVersionList( + &self, + ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} + impl IFabricGetProvisionedConfigVersionListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetProvisionedConfigVersionListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetProvisionedConfigVersionListResult_Vtbl { + unsafe extern "system" fn get_ProvisionedConfigVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetProvisionedConfigVersionListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ProvisionedConfigVersionList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetProvisionedConfigVersionListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetRepairTaskListResult_Impl: Sized { + fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetRepairTaskListResult {} + impl IFabricGetRepairTaskListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetRepairTaskListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetRepairTaskListResult_Vtbl { + unsafe extern "system" fn get_Tasks< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetRepairTaskListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_REPAIR_TASK_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Tasks() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Tasks: get_Tasks::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetReplicaListResult_Impl: Sized { + fn get_ReplicaList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetReplicaListResult {} + impl IFabricGetReplicaListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetReplicaListResult_Vtbl { + unsafe extern "system" fn get_ReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicaList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicaList: get_ReplicaList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetReplicaListResult2_Impl: + Sized + IFabricGetReplicaListResult_Impl + { + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetReplicaListResult2 {} + impl IFabricGetReplicaListResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaListResult2_Impl, + const OFFSET: isize, + >() -> IFabricGetReplicaListResult2_Vtbl { + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaListResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: IFabricGetReplicaListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricGetReplicaLoadInformationResult_Impl: Sized { + fn get_ReplicaLoadInformation( + &self, + ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetReplicaLoadInformationResult {} + impl IFabricGetReplicaLoadInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaLoadInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetReplicaLoadInformationResult_Vtbl { + unsafe extern "system" fn get_ReplicaLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicaLoadInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicaLoadInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicaLoadInformation: get_ReplicaLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetReplicaLoadInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: Sized { + fn get_Policy(&self) + -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY; + } + impl ::windows_core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} + impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, + const OFFSET: isize, + >() -> IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { + unsafe extern "system" fn get_Policy< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Policy() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Policy: get_Policy::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetRollingUpgradeMonitoringPolicyResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetServiceGroupMemberListResult_Impl: Sized { + fn get_ServiceGroupMemberList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetServiceGroupMemberListResult {} + impl IFabricGetServiceGroupMemberListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceGroupMemberListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceGroupMemberListResult_Vtbl { + unsafe extern "system" fn get_ServiceGroupMemberList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceGroupMemberListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceGroupMemberList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceGroupMemberList: get_ServiceGroupMemberList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetServiceGroupMemberListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: Sized { + fn get_ServiceGroupMemberTypeList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} + impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceGroupMemberTypeListResult_Vtbl { + unsafe extern "system" fn get_ServiceGroupMemberTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceGroupMemberTypeList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetServiceGroupMemberTypeListResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricGetServiceListResult_Impl: Sized { + fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetServiceListResult {} + impl IFabricGetServiceListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceListResult_Vtbl { + unsafe extern "system" fn get_ServiceList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceList: get_ServiceList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetServiceListResult2_Impl: + Sized + IFabricGetServiceListResult_Impl + { + fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; + } + impl ::windows_core::RuntimeName for IFabricGetServiceListResult2 {} + impl IFabricGetServiceListResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceListResult2_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceListResult2_Vtbl { + unsafe extern "system" fn get_PagingStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceListResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PAGING_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PagingStatus() + } + Self { + base__: IFabricGetServiceListResult_Vtbl::new::(), + get_PagingStatus: get_PagingStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricGetServiceNameResult_Impl: Sized { + fn get_ServiceName(&self) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT; + } + impl ::windows_core::RuntimeName for IFabricGetServiceNameResult {} + impl IFabricGetServiceNameResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceNameResult_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceNameResult_Vtbl { + unsafe extern "system" fn get_ServiceName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceNameResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceName() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceName: get_ServiceName::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetServiceTypeListResult_Impl: Sized { + fn get_ServiceTypeList( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricGetServiceTypeListResult {} + impl IFabricGetServiceTypeListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceTypeListResult_Impl, + const OFFSET: isize, + >() -> IFabricGetServiceTypeListResult_Vtbl { + unsafe extern "system" fn get_ServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetServiceTypeListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceTypeList() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceTypeList: get_ServiceTypeList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetUnplacedReplicaInformationResult_Impl: Sized { + fn get_UnplacedReplicaInformation( + &self, + ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION; + } + impl ::windows_core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} + impl IFabricGetUnplacedReplicaInformationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetUnplacedReplicaInformationResult_Impl, + const OFFSET: isize, + >() -> IFabricGetUnplacedReplicaInformationResult_Vtbl { + unsafe extern "system" fn get_UnplacedReplicaInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetUnplacedReplicaInformationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_UnplacedReplicaInformation() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetUnplacedReplicaInformationResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricHealthClient_Impl: Sized { + fn ReportHealth( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::Result<()>; + fn BeginGetClusterHealth( + &self, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetNodeHealth( + &self, + nodename: &::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNodeHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationHealth( + &self, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetServiceHealth( + &self, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetPartitionHealth( + &self, + partitionid: &::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetReplicaHealth( + &self, + partitionid: &::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetReplicaHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedApplicationHealth( + &self, + applicationname: *const u16, + nodename: &::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedApplicationHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedServicePackageHealth( + &self, + applicationname: *const u16, + servicemanifestname: &::windows_core::PCWSTR, + nodename: &::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedServicePackageHealth( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricHealthClient {} + impl IFabricHealthClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >() -> IFabricHealthClient_Vtbl { + unsafe extern "system" fn ReportHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportHealth(::core::mem::transmute_copy(&healthreport)) + .into() + } + unsafe extern "system" fn BeginGetClusterHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterHealth( + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetClusterHealth(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetNodeHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNodeHealth( + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNodeHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNodeHealth(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationHealth( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationHealth(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetServiceHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceHealth( + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceHealth(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetPartitionHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionHealth( + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetPartitionHealth(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetReplicaHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + partitionid: ::windows_core::GUID, + replicaid: i64, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetReplicaHealth( + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&replicaid), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetReplicaHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetReplicaHealth(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedApplicationHealth( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedApplicationHealth( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedServicePackageHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicemanifestname: ::windows_core::PCWSTR, + nodename: ::windows_core::PCWSTR, + healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedServicePackageHealth( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute(&servicemanifestname), + ::core::mem::transmute(&nodename), + ::core::mem::transmute_copy(&healthpolicy), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedServicePackageHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedServicePackageHealth( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + ReportHealth: ReportHealth::, + BeginGetClusterHealth: BeginGetClusterHealth::, + EndGetClusterHealth: EndGetClusterHealth::, + BeginGetNodeHealth: BeginGetNodeHealth::, + EndGetNodeHealth: EndGetNodeHealth::, + BeginGetApplicationHealth: BeginGetApplicationHealth::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationHealth: EndGetApplicationHealth::, + BeginGetServiceHealth: BeginGetServiceHealth::, + EndGetServiceHealth: EndGetServiceHealth::, + BeginGetPartitionHealth: BeginGetPartitionHealth::, + EndGetPartitionHealth: EndGetPartitionHealth::, + BeginGetReplicaHealth: BeginGetReplicaHealth::, + EndGetReplicaHealth: EndGetReplicaHealth::, + BeginGetDeployedApplicationHealth: BeginGetDeployedApplicationHealth::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedApplicationHealth: EndGetDeployedApplicationHealth::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedServicePackageHealth: BeginGetDeployedServicePackageHealth::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedServicePackageHealth: EndGetDeployedServicePackageHealth::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricHealthClient2_Impl: Sized + IFabricHealthClient_Impl { + fn BeginGetClusterHealth2( + &self, + querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetNodeHealth2( + &self, + querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNodeHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetServiceHealth2( + &self, + querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetPartitionHealth2( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetReplicaHealth2( + &self, + querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetReplicaHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedApplicationHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedApplicationHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedServicePackageHealth2( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedServicePackageHealth2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricHealthClient2 {} + impl IFabricHealthClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >() -> IFabricHealthClient2_Vtbl { + unsafe extern "system" fn BeginGetClusterHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetClusterHealth2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetNodeHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNodeHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNodeHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNodeHealth2(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationHealth2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetServiceHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceHealth2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetPartitionHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetPartitionHealth2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetReplicaHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetReplicaHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetReplicaHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetReplicaHealth2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedApplicationHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedApplicationHealth2( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedServicePackageHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedServicePackageHealth2( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedServicePackageHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedServicePackageHealth2( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricHealthClient_Vtbl::new::(), + BeginGetClusterHealth2: BeginGetClusterHealth2::, + EndGetClusterHealth2: EndGetClusterHealth2::, + BeginGetNodeHealth2: BeginGetNodeHealth2::, + EndGetNodeHealth2: EndGetNodeHealth2::, + BeginGetApplicationHealth2: BeginGetApplicationHealth2::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationHealth2: EndGetApplicationHealth2::, + BeginGetServiceHealth2: BeginGetServiceHealth2::, + EndGetServiceHealth2: EndGetServiceHealth2::, + BeginGetPartitionHealth2: BeginGetPartitionHealth2::, + EndGetPartitionHealth2: EndGetPartitionHealth2::, + BeginGetReplicaHealth2: BeginGetReplicaHealth2::, + EndGetReplicaHealth2: EndGetReplicaHealth2::, + BeginGetDeployedApplicationHealth2: BeginGetDeployedApplicationHealth2::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedApplicationHealth2: EndGetDeployedApplicationHealth2::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedServicePackageHealth2: + BeginGetDeployedServicePackageHealth2::, + EndGetDeployedServicePackageHealth2: EndGetDeployedServicePackageHealth2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricHealthClient3_Impl: Sized + IFabricHealthClient2_Impl { + fn BeginGetClusterHealthChunk( + &self, + querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterHealthChunk( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricHealthClient3 {} + impl IFabricHealthClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient3_Impl, + const OFFSET: isize, + >() -> IFabricHealthClient3_Vtbl { + unsafe extern "system" fn BeginGetClusterHealthChunk< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterHealthChunk( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterHealthChunk< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetClusterHealthChunk(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricHealthClient2_Vtbl::new::(), + BeginGetClusterHealthChunk: BeginGetClusterHealthChunk::< + Identity, + Impl, + OFFSET, + >, + EndGetClusterHealthChunk: EndGetClusterHealthChunk::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricHealthClient4_Impl: Sized + IFabricHealthClient3_Impl { + fn ReportHealth2( + &self, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricHealthClient4 {} + impl IFabricHealthClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient4_Impl, + const OFFSET: isize, + >() -> IFabricHealthClient4_Vtbl { + unsafe extern "system" fn ReportHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricHealthClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthreport: *const super::super::FABRIC_HEALTH_REPORT, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportHealth2( + ::core::mem::transmute_copy(&healthreport), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + Self { + base__: IFabricHealthClient3_Vtbl::new::(), + ReportHealth2: ReportHealth2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricInfrastructureServiceClient_Impl: Sized { + fn BeginInvokeInfrastructureCommand( + &self, + servicename: *const u16, + command: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndInvokeInfrastructureCommand( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginInvokeInfrastructureQuery( + &self, + servicename: *const u16, + command: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndInvokeInfrastructureQuery( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricInfrastructureServiceClient {} + impl IFabricInfrastructureServiceClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricInfrastructureServiceClient_Impl, + const OFFSET: isize, + >() -> IFabricInfrastructureServiceClient_Vtbl { + unsafe extern "system" fn BeginInvokeInfrastructureCommand< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricInfrastructureServiceClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + command: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginInvokeInfrastructureCommand( + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute(&command), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndInvokeInfrastructureCommand< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricInfrastructureServiceClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndInvokeInfrastructureCommand( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginInvokeInfrastructureQuery< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricInfrastructureServiceClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicename: *const u16, + command: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginInvokeInfrastructureQuery( + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute(&command), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndInvokeInfrastructureQuery< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricInfrastructureServiceClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndInvokeInfrastructureQuery(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::< + Identity, + Impl, + OFFSET, + >, + EndInvokeInfrastructureCommand: EndInvokeInfrastructureCommand::< + Identity, + Impl, + OFFSET, + >, + BeginInvokeInfrastructureQuery: BeginInvokeInfrastructureQuery::< + Identity, + Impl, + OFFSET, + >, + EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricInfrastructureServiceClient < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricMovePrimaryResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT; + } + impl ::windows_core::RuntimeName for IFabricMovePrimaryResult {} + impl IFabricMovePrimaryResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricMovePrimaryResult_Impl, + const OFFSET: isize, + >() -> IFabricMovePrimaryResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricMovePrimaryResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricMoveSecondaryResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT; + } + impl ::windows_core::RuntimeName for IFabricMoveSecondaryResult {} + impl IFabricMoveSecondaryResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricMoveSecondaryResult_Impl, + const OFFSET: isize, + >() -> IFabricMoveSecondaryResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricMoveSecondaryResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricNameEnumerationResult_Impl: Sized { + fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; + fn GetNames( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut *mut u16, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricNameEnumerationResult {} + impl IFabricNameEnumerationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNameEnumerationResult_Impl, + const OFFSET: isize, + >() -> IFabricNameEnumerationResult_Vtbl { + unsafe extern "system" fn get_EnumerationStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNameEnumerationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_ENUMERATION_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_EnumerationStatus() + } + unsafe extern "system" fn GetNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNameEnumerationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut *mut u16, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetNames( + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_EnumerationStatus: get_EnumerationStatus::, + GetNames: GetNames::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricNetworkManagementClient_Impl: Sized { + fn BeginCreateNetwork( + &self, + networkname: &::windows_core::PCWSTR, + description: *const super::super::FABRIC_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateNetwork( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteNetwork( + &self, + deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteNetwork( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetNetworkList( + &self, + querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNetworkList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetNetworkApplicationList( + &self, + querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNetworkApplicationList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetNetworkNodeList( + &self, + querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNetworkNodeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationNetworkList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationNetworkList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedNetworkList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedNetworkList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedNetworkCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedNetworkCodePackageList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricNetworkManagementClient {} + impl IFabricNetworkManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricNetworkManagementClient_Vtbl { + unsafe extern "system" fn BeginCreateNetwork< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + networkname: ::windows_core::PCWSTR, + description: *const super::super::FABRIC_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateNetwork( + ::core::mem::transmute(&networkname), + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateNetwork< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateNetwork(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginDeleteNetwork< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteNetwork( + ::core::mem::transmute_copy(&deletedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteNetwork< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteNetwork(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNetworkList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNetworkList(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetNetworkApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNetworkApplicationList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNetworkApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNetworkApplicationList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetNetworkNodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNetworkNodeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNetworkNodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetNetworkNodeList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationNetworkList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetApplicationNetworkList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedNetworkList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedNetworkList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetDeployedNetworkList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedNetworkCodePackageList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedNetworkCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNetworkManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedNetworkCodePackageList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginCreateNetwork: BeginCreateNetwork::, + EndCreateNetwork: EndCreateNetwork::, + BeginDeleteNetwork: BeginDeleteNetwork::, + EndDeleteNetwork: EndDeleteNetwork::, + BeginGetNetworkList: BeginGetNetworkList::, + EndGetNetworkList: EndGetNetworkList::, + BeginGetNetworkApplicationList: BeginGetNetworkApplicationList::< + Identity, + Impl, + OFFSET, + >, + EndGetNetworkApplicationList: EndGetNetworkApplicationList::< + Identity, + Impl, + OFFSET, + >, + BeginGetNetworkNodeList: BeginGetNetworkNodeList::, + EndGetNetworkNodeList: EndGetNetworkNodeList::, + BeginGetApplicationNetworkList: BeginGetApplicationNetworkList::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationNetworkList: EndGetApplicationNetworkList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedNetworkList: BeginGetDeployedNetworkList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedNetworkList: EndGetDeployedNetworkList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedNetworkCodePackageList: + BeginGetDeployedNetworkCodePackageList::, + EndGetDeployedNetworkCodePackageList: EndGetDeployedNetworkCodePackageList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricNodeHealthResult_Impl: Sized { + fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricNodeHealthResult {} + impl IFabricNodeHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricNodeHealthResult_Vtbl { + unsafe extern "system" fn get_NodeHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NodeHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NodeHealth: get_NodeHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricNodeTransitionProgressResult_Impl: Sized { + fn get_Progress(&self) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricNodeTransitionProgressResult {} + impl IFabricNodeTransitionProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeTransitionProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricNodeTransitionProgressResult_Vtbl { + unsafe extern "system" fn get_Progress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeTransitionProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Progress() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricNodeTransitionProgressResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricOrchestrationUpgradeStatusResult_Impl: Sized { + fn get_Progress(&self) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} + impl IFabricOrchestrationUpgradeStatusResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOrchestrationUpgradeStatusResult_Impl, + const OFFSET: isize, + >() -> IFabricOrchestrationUpgradeStatusResult_Vtbl { + unsafe extern "system" fn get_Progress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOrchestrationUpgradeStatusResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Progress() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricOrchestrationUpgradeStatusResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricPartitionDataLossProgressResult_Impl: Sized { + fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricPartitionDataLossProgressResult {} + impl IFabricPartitionDataLossProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionDataLossProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricPartitionDataLossProgressResult_Vtbl { + unsafe extern "system" fn get_Progress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionDataLossProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Progress() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricPartitionDataLossProgressResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricPartitionHealthResult_Impl: Sized { + fn get_PartitionHealth(&self) -> *mut super::super::FABRIC_PARTITION_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricPartitionHealthResult {} + impl IFabricPartitionHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricPartitionHealthResult_Vtbl { + unsafe extern "system" fn get_PartitionHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PARTITION_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PartitionHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_PartitionHealth: get_PartitionHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricPartitionQuorumLossProgressResult_Impl: Sized { + fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} + impl IFabricPartitionQuorumLossProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionQuorumLossProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricPartitionQuorumLossProgressResult_Vtbl { + unsafe extern "system" fn get_Progress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionQuorumLossProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Progress() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricPartitionQuorumLossProgressResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricPartitionRestartProgressResult_Impl: Sized { + fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricPartitionRestartProgressResult {} + impl IFabricPartitionRestartProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionRestartProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricPartitionRestartProgressResult_Vtbl { + unsafe extern "system" fn get_Progress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPartitionRestartProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Progress() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Progress: get_Progress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricPartitionRestartProgressResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricPropertyBatchResult_Impl: Sized { + fn GetProperty( + &self, + operationindexinrequest: u32, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricPropertyBatchResult {} + impl IFabricPropertyBatchResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyBatchResult_Impl, + const OFFSET: isize, + >() -> IFabricPropertyBatchResult_Vtbl { + unsafe extern "system" fn GetProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyBatchResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationindexinrequest: u32, + property: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .GetProperty(::core::mem::transmute_copy(&operationindexinrequest)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(property, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetProperty: GetProperty::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricPropertyEnumerationResult_Impl: Sized { + fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; + fn get_PropertyCount(&self) -> u32; + fn GetProperty( + &self, + index: u32, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricPropertyEnumerationResult {} + impl IFabricPropertyEnumerationResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyEnumerationResult_Impl, + const OFFSET: isize, + >() -> IFabricPropertyEnumerationResult_Vtbl { + unsafe extern "system" fn get_EnumerationStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyEnumerationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_ENUMERATION_STATUS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_EnumerationStatus() + } + unsafe extern "system" fn get_PropertyCount< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyEnumerationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> u32 { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_PropertyCount() + } + unsafe extern "system" fn GetProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyEnumerationResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + index: u32, + property: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetProperty(::core::mem::transmute_copy(&index)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(property, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_EnumerationStatus: get_EnumerationStatus::, + get_PropertyCount: get_PropertyCount::, + GetProperty: GetProperty::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricPropertyManagementClient_Impl: Sized { + fn BeginCreateName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateName( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteName( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteName( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginNameExists( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndNameExists( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginEnumerateSubNames( + &self, + name: *const u16, + previousresult: ::core::option::Option<&IFabricNameEnumerationResult>, + recursive: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndEnumerateSubNames( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginPutPropertyBinary( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + datalength: u32, + data: *const u8, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutPropertyBinary( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginPutPropertyInt64( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + data: i64, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutPropertyInt64( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginPutPropertyDouble( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + data: f64, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutPropertyDouble( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginPutPropertyWString( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + data: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutPropertyWString( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginPutPropertyGuid( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + data: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutPropertyGuid( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteProperty( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteProperty( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetPropertyMetadata( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPropertyMetadata( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetProperty( + &self, + name: *const u16, + propertyname: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetProperty( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginSubmitPropertyBatch( + &self, + name: *const u16, + operationcount: u32, + operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndSubmitPropertyBatch( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + failedoperationindexinrequest: *mut u32, + result: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn BeginEnumerateProperties( + &self, + name: *const u16, + includevalues: ::windows::Win32::Foundation::BOOLEAN, + previousresult: ::core::option::Option<&IFabricPropertyEnumerationResult>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndEnumerateProperties( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricPropertyManagementClient {} + impl IFabricPropertyManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricPropertyManagementClient_Vtbl { + unsafe extern "system" fn BeginCreateName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateName( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateName(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginDeleteName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteName( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteName(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginNameExists< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginNameExists( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndNameExists< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + value: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndNameExists(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(value, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginEnumerateSubNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + previousresult: *mut ::core::ffi::c_void, + recursive: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginEnumerateSubNames( + ::core::mem::transmute_copy(&name), + ::windows_core::from_raw_borrowed(&previousresult), + ::core::mem::transmute_copy(&recursive), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndEnumerateSubNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndEnumerateSubNames(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginPutPropertyBinary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + datalength: u32, + data: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutPropertyBinary( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&datalength), + ::core::mem::transmute_copy(&data), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutPropertyBinary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutPropertyBinary(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginPutPropertyInt64< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: i64, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutPropertyInt64( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&data), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutPropertyInt64< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutPropertyInt64(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginPutPropertyDouble< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: f64, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutPropertyDouble( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&data), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutPropertyDouble< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutPropertyDouble(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginPutPropertyWString< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutPropertyWString( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute(&data), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutPropertyWString< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutPropertyWString(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginPutPropertyGuid< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + data: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutPropertyGuid( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&data), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutPropertyGuid< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutPropertyGuid(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginDeleteProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteProperty( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteProperty(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetPropertyMetadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPropertyMetadata( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPropertyMetadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetPropertyMetadata(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetProperty( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute(&propertyname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetProperty< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetProperty(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginSubmitPropertyBatch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + operationcount: u32, + operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginSubmitPropertyBatch( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&operationcount), + ::core::mem::transmute_copy(&operations), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndSubmitPropertyBatch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + failedoperationindexinrequest: *mut u32, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndSubmitPropertyBatch( + ::windows_core::from_raw_borrowed(&context), + ::core::mem::transmute_copy(&failedoperationindexinrequest), + ::core::mem::transmute_copy(&result), + ) + .into() + } + unsafe extern "system" fn BeginEnumerateProperties< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + includevalues: ::windows::Win32::Foundation::BOOLEAN, + previousresult: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginEnumerateProperties( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&includevalues), + ::windows_core::from_raw_borrowed(&previousresult), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndEnumerateProperties< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndEnumerateProperties(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginCreateName: BeginCreateName::, + EndCreateName: EndCreateName::, + BeginDeleteName: BeginDeleteName::, + EndDeleteName: EndDeleteName::, + BeginNameExists: BeginNameExists::, + EndNameExists: EndNameExists::, + BeginEnumerateSubNames: BeginEnumerateSubNames::, + EndEnumerateSubNames: EndEnumerateSubNames::, + BeginPutPropertyBinary: BeginPutPropertyBinary::, + EndPutPropertyBinary: EndPutPropertyBinary::, + BeginPutPropertyInt64: BeginPutPropertyInt64::, + EndPutPropertyInt64: EndPutPropertyInt64::, + BeginPutPropertyDouble: BeginPutPropertyDouble::, + EndPutPropertyDouble: EndPutPropertyDouble::, + BeginPutPropertyWString: BeginPutPropertyWString::, + EndPutPropertyWString: EndPutPropertyWString::, + BeginPutPropertyGuid: BeginPutPropertyGuid::, + EndPutPropertyGuid: EndPutPropertyGuid::, + BeginDeleteProperty: BeginDeleteProperty::, + EndDeleteProperty: EndDeleteProperty::, + BeginGetPropertyMetadata: BeginGetPropertyMetadata::, + EndGetPropertyMetadata: EndGetPropertyMetadata::, + BeginGetProperty: BeginGetProperty::, + EndGetProperty: EndGetProperty::, + BeginSubmitPropertyBatch: BeginSubmitPropertyBatch::, + EndSubmitPropertyBatch: EndSubmitPropertyBatch::, + BeginEnumerateProperties: BeginEnumerateProperties::, + EndEnumerateProperties: EndEnumerateProperties::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricPropertyManagementClient2_Impl: + Sized + IFabricPropertyManagementClient_Impl + { + fn BeginPutCustomPropertyOperation( + &self, + name: *const u16, + propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPutCustomPropertyOperation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricPropertyManagementClient2 {} + impl IFabricPropertyManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricPropertyManagementClient2_Vtbl { + unsafe extern "system" fn BeginPutCustomPropertyOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + propertyoperation : *const super::super:: FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPutCustomPropertyOperation( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&propertyoperation), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPutCustomPropertyOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndPutCustomPropertyOperation(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricPropertyManagementClient_Vtbl::new::( + ), + BeginPutCustomPropertyOperation: BeginPutCustomPropertyOperation::< + Identity, + Impl, + OFFSET, + >, + EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricPropertyManagementClient2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricPropertyManagementClient as::windows_core::ComInterface >::IID + } + } + pub trait IFabricPropertyMetadataResult_Impl: Sized { + fn get_Metadata(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA; + } + impl ::windows_core::RuntimeName for IFabricPropertyMetadataResult {} + impl IFabricPropertyMetadataResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyMetadataResult_Impl, + const OFFSET: isize, + >() -> IFabricPropertyMetadataResult_Vtbl { + unsafe extern "system" fn get_Metadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyMetadataResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Metadata() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Metadata: get_Metadata::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricPropertyValueResult_Impl: Sized { + fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY; + fn GetValueAsBinary( + &self, + bytecount: *mut u32, + bufferedvalue: *mut *mut u8, + ) -> ::windows_core::Result<()>; + fn GetValueAsInt64(&self) -> ::windows_core::Result; + fn GetValueAsDouble(&self) -> ::windows_core::Result; + fn GetValueAsWString(&self) -> ::windows_core::Result<::windows_core::PCWSTR>; + fn GetValueAsGuid(&self) -> ::windows_core::Result<::windows_core::GUID>; + } + impl ::windows_core::RuntimeName for IFabricPropertyValueResult {} + impl IFabricPropertyValueResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >() -> IFabricPropertyValueResult_Vtbl { + unsafe extern "system" fn get_Property< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NAMED_PROPERTY { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Property() + } + unsafe extern "system" fn GetValueAsBinary< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + bytecount: *mut u32, + bufferedvalue: *mut *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetValueAsBinary( + ::core::mem::transmute_copy(&bytecount), + ::core::mem::transmute_copy(&bufferedvalue), + ) + .into() + } + unsafe extern "system" fn GetValueAsInt64< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + value: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetValueAsInt64() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(value, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetValueAsDouble< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + value: *mut f64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetValueAsDouble() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(value, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetValueAsWString< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetValueAsWString() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetValueAsGuid< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPropertyValueResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + value: *mut ::windows_core::GUID, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetValueAsGuid() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(value, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Property: get_Property::, + GetValueAsBinary: GetValueAsBinary::, + GetValueAsInt64: GetValueAsInt64::, + GetValueAsDouble: GetValueAsDouble::, + GetValueAsWString: GetValueAsWString::, + GetValueAsGuid: GetValueAsGuid::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricQueryClient_Impl: Sized { + fn BeginGetNodeList( + &self, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNodeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationTypeList( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationTypeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetServiceTypeList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceTypeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationList( + &self, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetServiceList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetPartitionList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetReplicaList( + &self, + querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetReplicaList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedApplicationList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedApplicationList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedServicePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedServicePackageList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedServiceTypeList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedServiceTypeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedCodePackageList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedCodePackageList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetDeployedReplicaList( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedReplicaList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient {} + impl IFabricQueryClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient_Vtbl { + unsafe extern "system" fn BeginGetNodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNodeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNodeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNodeList(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationTypeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationTypeList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceTypeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetServiceTypeList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetServiceList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceList(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetPartitionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetReplicaList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetReplicaList(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedApplicationList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedApplicationList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedApplicationList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedServicePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedServicePackageList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedServicePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedServicePackageList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedServiceTypeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedServiceTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedServiceTypeList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedCodePackageList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedCodePackageList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedCodePackageList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetDeployedReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedReplicaList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedReplicaList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetDeployedReplicaList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginGetNodeList: BeginGetNodeList::, + EndGetNodeList: EndGetNodeList::, + BeginGetApplicationTypeList: BeginGetApplicationTypeList::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationTypeList: EndGetApplicationTypeList::< + Identity, + Impl, + OFFSET, + >, + BeginGetServiceTypeList: BeginGetServiceTypeList::, + EndGetServiceTypeList: EndGetServiceTypeList::, + BeginGetApplicationList: BeginGetApplicationList::, + EndGetApplicationList: EndGetApplicationList::, + BeginGetServiceList: BeginGetServiceList::, + EndGetServiceList: EndGetServiceList::, + BeginGetPartitionList: BeginGetPartitionList::, + EndGetPartitionList: EndGetPartitionList::, + BeginGetReplicaList: BeginGetReplicaList::, + EndGetReplicaList: EndGetReplicaList::, + BeginGetDeployedApplicationList: BeginGetDeployedApplicationList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedApplicationList: EndGetDeployedApplicationList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedServicePackageList: BeginGetDeployedServicePackageList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedServicePackageList: EndGetDeployedServicePackageList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedServiceTypeList: BeginGetDeployedServiceTypeList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedServiceTypeList: EndGetDeployedServiceTypeList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedCodePackageList: BeginGetDeployedCodePackageList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedCodePackageList: EndGetDeployedCodePackageList::< + Identity, + Impl, + OFFSET, + >, + BeginGetDeployedReplicaList: BeginGetDeployedReplicaList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedReplicaList: EndGetDeployedReplicaList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricQueryClient10_Impl: Sized + IFabricQueryClient9_Impl { + fn BeginGetDeployedApplicationPagedList( + &self, + querydescription : *const super::super:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedApplicationPagedList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient10 {} + impl IFabricQueryClient10_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient10_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient10_Vtbl { + unsafe extern "system" fn BeginGetDeployedApplicationPagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedApplicationPagedList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedApplicationPagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient10_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedApplicationPagedList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient9_Vtbl::new::(), + BeginGetDeployedApplicationPagedList: BeginGetDeployedApplicationPagedList::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedApplicationPagedList: EndGetDeployedApplicationPagedList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient2_Impl: Sized + IFabricQueryClient_Impl { + fn BeginGetDeployedReplicaDetail( + &self, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetDeployedReplicaDetail( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetClusterLoadInformation( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetClusterLoadInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetPartitionLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionLoadInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetProvisionedFabricCodeVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetProvisionedFabricCodeVersionList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetProvisionedFabricConfigVersionList( + &self, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetProvisionedFabricConfigVersionList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient2 {} + impl IFabricQueryClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient2_Vtbl { + unsafe extern "system" fn BeginGetDeployedReplicaDetail< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetDeployedReplicaDetail( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetDeployedReplicaDetail< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetDeployedReplicaDetail(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetClusterLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetClusterLoadInformation( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetClusterLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetClusterLoadInformation(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetPartitionLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionLoadInformation( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionLoadInformation( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetProvisionedFabricCodeVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetProvisionedFabricCodeVersionList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetProvisionedFabricCodeVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetProvisionedFabricCodeVersionList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetProvisionedFabricConfigVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetProvisionedFabricConfigVersionList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetProvisionedFabricConfigVersionList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetProvisionedFabricConfigVersionList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient_Vtbl::new::(), + BeginGetDeployedReplicaDetail: BeginGetDeployedReplicaDetail::< + Identity, + Impl, + OFFSET, + >, + EndGetDeployedReplicaDetail: EndGetDeployedReplicaDetail::< + Identity, + Impl, + OFFSET, + >, + BeginGetClusterLoadInformation: BeginGetClusterLoadInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetClusterLoadInformation: EndGetClusterLoadInformation::< + Identity, + Impl, + OFFSET, + >, + BeginGetPartitionLoadInformation: BeginGetPartitionLoadInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetPartitionLoadInformation: EndGetPartitionLoadInformation::< + Identity, + Impl, + OFFSET, + >, + BeginGetProvisionedFabricCodeVersionList: + BeginGetProvisionedFabricCodeVersionList::, + EndGetProvisionedFabricCodeVersionList: + EndGetProvisionedFabricCodeVersionList::, + BeginGetProvisionedFabricConfigVersionList: + BeginGetProvisionedFabricConfigVersionList::, + EndGetProvisionedFabricConfigVersionList: + EndGetProvisionedFabricConfigVersionList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient3_Impl: Sized + IFabricQueryClient2_Impl { + fn BeginGetNodeLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNodeLoadInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetReplicaLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetReplicaLoadInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient3 {} + impl IFabricQueryClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient3_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient3_Vtbl { + unsafe extern "system" fn BeginGetNodeLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNodeLoadInformation( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNodeLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetNodeLoadInformation(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetReplicaLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetReplicaLoadInformation( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetReplicaLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetReplicaLoadInformation(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient2_Vtbl::new::(), + BeginGetNodeLoadInformation: BeginGetNodeLoadInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetNodeLoadInformation: EndGetNodeLoadInformation::< + Identity, + Impl, + OFFSET, + >, + BeginGetReplicaLoadInformation: BeginGetReplicaLoadInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetReplicaLoadInformation: EndGetReplicaLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient4_Impl: Sized + IFabricQueryClient3_Impl { + fn BeginGetServiceGroupMemberList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceGroupMemberList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetServiceGroupMemberTypeList( + &self, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceGroupMemberTypeList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient4 {} + impl IFabricQueryClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient4_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient4_Vtbl { + unsafe extern "system" fn BeginGetServiceGroupMemberList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceGroupMemberList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceGroupMemberList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceGroupMemberList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetServiceGroupMemberTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceGroupMemberTypeList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceGroupMemberTypeList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceGroupMemberTypeList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient3_Vtbl::new::(), + BeginGetServiceGroupMemberList: BeginGetServiceGroupMemberList::< + Identity, + Impl, + OFFSET, + >, + EndGetServiceGroupMemberList: EndGetServiceGroupMemberList::< + Identity, + Impl, + OFFSET, + >, + BeginGetServiceGroupMemberTypeList: BeginGetServiceGroupMemberTypeList::< + Identity, + Impl, + OFFSET, + >, + EndGetServiceGroupMemberTypeList: EndGetServiceGroupMemberTypeList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient5_Impl: Sized + IFabricQueryClient4_Impl { + fn BeginGetUnplacedReplicaInformation( + &self, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetUnplacedReplicaInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient5 {} + impl IFabricQueryClient5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient5_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient5_Vtbl { + unsafe extern "system" fn BeginGetUnplacedReplicaInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetUnplacedReplicaInformation( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetUnplacedReplicaInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetUnplacedReplicaInformation( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient4_Vtbl::new::(), + BeginGetUnplacedReplicaInformation: BeginGetUnplacedReplicaInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetUnplacedReplicaInformation: EndGetUnplacedReplicaInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient6_Impl: Sized + IFabricQueryClient5_Impl { + fn EndGetNodeList2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn EndGetApplicationList2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn EndGetServiceList2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn EndGetPartitionList2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn EndGetReplicaList2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient6 {} + impl IFabricQueryClient6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient6_Vtbl { + unsafe extern "system" fn EndGetNodeList2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNodeList2(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationList2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationList2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceList2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceList2(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionList2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionList2(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetReplicaList2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetReplicaList2(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient5_Vtbl::new::(), + EndGetNodeList2: EndGetNodeList2::, + EndGetApplicationList2: EndGetApplicationList2::, + EndGetServiceList2: EndGetServiceList2::, + EndGetPartitionList2: EndGetPartitionList2::, + EndGetReplicaList2: EndGetReplicaList2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient7_Impl: Sized + IFabricQueryClient6_Impl { + fn BeginGetApplicationLoadInformation( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationLoadInformation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient7 {} + impl IFabricQueryClient7_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient7_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient7_Vtbl { + unsafe extern "system" fn BeginGetApplicationLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationLoadInformation( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationLoadInformation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient7_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetApplicationLoadInformation( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient6_Vtbl::new::(), + BeginGetApplicationLoadInformation: BeginGetApplicationLoadInformation::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationLoadInformation: EndGetApplicationLoadInformation::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient8_Impl: Sized + IFabricQueryClient7_Impl { + fn BeginGetServiceName( + &self, + querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceName( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetApplicationName( + &self, + querydescription : *const super::super:: FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationName( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient8 {} + impl IFabricQueryClient8_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient8_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient8_Vtbl { + unsafe extern "system" fn BeginGetServiceName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceName( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceName(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetApplicationName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationName( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient8_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetApplicationName(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient7_Vtbl::new::(), + BeginGetServiceName: BeginGetServiceName::, + EndGetServiceName: EndGetServiceName::, + BeginGetApplicationName: BeginGetApplicationName::, + EndGetApplicationName: EndGetApplicationName::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricQueryClient9_Impl: Sized + IFabricQueryClient8_Impl { + fn BeginGetApplicationTypePagedList( + &self, + querydescription : *const super::super:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetApplicationTypePagedList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricQueryClient9 {} + impl IFabricQueryClient9_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient9_Impl, + const OFFSET: isize, + >() -> IFabricQueryClient9_Vtbl { + unsafe extern "system" fn BeginGetApplicationTypePagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription : *const super::super:: PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetApplicationTypePagedList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetApplicationTypePagedList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricQueryClient9_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetApplicationTypePagedList( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricQueryClient8_Vtbl::new::(), + BeginGetApplicationTypePagedList: BeginGetApplicationTypePagedList::< + Identity, + Impl, + OFFSET, + >, + EndGetApplicationTypePagedList: EndGetApplicationTypePagedList::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + || iid == &::IID + } + } + pub trait IFabricRepairManagementClient_Impl: Sized { + fn BeginCreateRepairTask( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateRepairTask( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginCancelRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCancelRepairTask( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginForceApproveRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndForceApproveRepairTask( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginDeleteRepairTask( + &self, + requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteRepairTask( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUpdateRepairExecutionState( + &self, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateRepairExecutionState( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetRepairTaskList( + &self, + querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetRepairTaskList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricRepairManagementClient {} + impl IFabricRepairManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricRepairManagementClient_Vtbl { + unsafe extern "system" fn BeginCreateRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateRepairTask( + ::core::mem::transmute_copy(&repairtask), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndCreateRepairTask(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginCancelRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCancelRepairTask( + ::core::mem::transmute_copy(&requestdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCancelRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndCancelRepairTask(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginForceApproveRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginForceApproveRepairTask( + ::core::mem::transmute_copy(&requestdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndForceApproveRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndForceApproveRepairTask(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginDeleteRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteRepairTask( + ::core::mem::transmute_copy(&requestdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteRepairTask< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteRepairTask(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUpdateRepairExecutionState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + repairtask: *const super::super::FABRIC_REPAIR_TASK, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateRepairExecutionState( + ::core::mem::transmute_copy(&repairtask), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateRepairExecutionState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndUpdateRepairExecutionState(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetRepairTaskList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetRepairTaskList( + ::core::mem::transmute_copy(&querydescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetRepairTaskList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetRepairTaskList(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginCreateRepairTask: BeginCreateRepairTask::, + EndCreateRepairTask: EndCreateRepairTask::, + BeginCancelRepairTask: BeginCancelRepairTask::, + EndCancelRepairTask: EndCancelRepairTask::, + BeginForceApproveRepairTask: BeginForceApproveRepairTask::< + Identity, + Impl, + OFFSET, + >, + EndForceApproveRepairTask: EndForceApproveRepairTask::< + Identity, + Impl, + OFFSET, + >, + BeginDeleteRepairTask: BeginDeleteRepairTask::, + EndDeleteRepairTask: EndDeleteRepairTask::, + BeginUpdateRepairExecutionState: BeginUpdateRepairExecutionState::< + Identity, + Impl, + OFFSET, + >, + EndUpdateRepairExecutionState: EndUpdateRepairExecutionState::< + Identity, + Impl, + OFFSET, + >, + BeginGetRepairTaskList: BeginGetRepairTaskList::, + EndGetRepairTaskList: EndGetRepairTaskList::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricRepairManagementClient2_Impl: + Sized + IFabricRepairManagementClient_Impl + { + fn BeginUpdateRepairTaskHealthPolicy( + &self, + updatedescription : *const super::super:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateRepairTaskHealthPolicy( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricRepairManagementClient2 {} + impl IFabricRepairManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricRepairManagementClient2_Vtbl { + unsafe extern "system" fn BeginUpdateRepairTaskHealthPolicy< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + updatedescription : *const super::super:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateRepairTaskHealthPolicy( + ::core::mem::transmute_copy(&updatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateRepairTaskHealthPolicy< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRepairManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitversion: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndUpdateRepairTaskHealthPolicy( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricRepairManagementClient_Vtbl::new::(), + BeginUpdateRepairTaskHealthPolicy: BeginUpdateRepairTaskHealthPolicy::< + Identity, + Impl, + OFFSET, + >, + EndUpdateRepairTaskHealthPolicy: EndUpdateRepairTaskHealthPolicy::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricReplicaHealthResult_Impl: Sized { + fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricReplicaHealthResult {} + impl IFabricReplicaHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicaHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricReplicaHealthResult_Vtbl { + unsafe extern "system" fn get_ReplicaHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicaHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_REPLICA_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicaHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicaHealth: get_ReplicaHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricResolvedServicePartitionResult_Impl: Sized { + fn get_Partition(&self) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION; + fn GetEndpoint( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>; + fn CompareVersion( + &self, + other: ::core::option::Option<&IFabricResolvedServicePartitionResult>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricResolvedServicePartitionResult {} + impl IFabricResolvedServicePartitionResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricResolvedServicePartitionResult_Impl, + const OFFSET: isize, + >() -> IFabricResolvedServicePartitionResult_Vtbl { + unsafe extern "system" fn get_Partition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricResolvedServicePartitionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Partition() + } + unsafe extern "system" fn GetEndpoint< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricResolvedServicePartitionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + endpoint: *mut *mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetEndpoint() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(endpoint, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn CompareVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricResolvedServicePartitionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + other: *mut ::core::ffi::c_void, + compareresult: *mut i32, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CompareVersion(::windows_core::from_raw_borrowed(&other)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Partition: get_Partition::, + GetEndpoint: GetEndpoint::, + CompareVersion: CompareVersion::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricResolvedServicePartitionResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricRestartDeployedCodePackageResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT; + } + impl ::windows_core::RuntimeName for IFabricRestartDeployedCodePackageResult {} + impl IFabricRestartDeployedCodePackageResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRestartDeployedCodePackageResult_Impl, + const OFFSET: isize, + >() -> IFabricRestartDeployedCodePackageResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRestartDeployedCodePackageResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricRestartDeployedCodePackageResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricRestartNodeResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; + } + impl ::windows_core::RuntimeName for IFabricRestartNodeResult {} + impl IFabricRestartNodeResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRestartNodeResult_Impl, + const OFFSET: isize, + >() -> IFabricRestartNodeResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRestartNodeResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricSecretReferencesResult_Impl: Sized { + fn get_SecretReferences(&self) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST; + } + impl ::windows_core::RuntimeName for IFabricSecretReferencesResult {} + impl IFabricSecretReferencesResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretReferencesResult_Impl, + const OFFSET: isize, + >() -> IFabricSecretReferencesResult_Vtbl { + unsafe extern "system" fn get_SecretReferences< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretReferencesResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_SecretReferences() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_SecretReferences: get_SecretReferences::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricSecretStoreClient_Impl: Sized { + fn BeginGetSecrets( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + includevalue: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetSecrets( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginSetSecrets( + &self, + secrets: *const super::super::FABRIC_SECRET_LIST, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndSetSecrets( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginRemoveSecrets( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRemoveSecrets( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetSecretVersions( + &self, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetSecretVersions( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricSecretStoreClient {} + impl IFabricSecretStoreClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >() -> IFabricSecretStoreClient_Vtbl { + unsafe extern "system" fn BeginGetSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + includevalue: ::windows::Win32::Foundation::BOOLEAN, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetSecrets( + ::core::mem::transmute_copy(&secretreferences), + ::core::mem::transmute_copy(&includevalue), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetSecrets(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginSetSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + secrets: *const super::super::FABRIC_SECRET_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginSetSecrets( + ::core::mem::transmute_copy(&secrets), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndSetSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndSetSecrets(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginRemoveSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRemoveSecrets( + ::core::mem::transmute_copy(&secretreferences), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRemoveSecrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndRemoveSecrets(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetSecretVersions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetSecretVersions( + ::core::mem::transmute_copy(&secretreferences), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetSecretVersions< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretStoreClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetSecretVersions(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginGetSecrets: BeginGetSecrets::, + EndGetSecrets: EndGetSecrets::, + BeginSetSecrets: BeginSetSecrets::, + EndSetSecrets: EndSetSecrets::, + BeginRemoveSecrets: BeginRemoveSecrets::, + EndRemoveSecrets: EndRemoveSecrets::, + BeginGetSecretVersions: BeginGetSecretVersions::, + EndGetSecretVersions: EndGetSecretVersions::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricSecretsResult_Impl: Sized { + fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST; + } + impl ::windows_core::RuntimeName for IFabricSecretsResult {} + impl IFabricSecretsResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretsResult_Impl, + const OFFSET: isize, + >() -> IFabricSecretsResult_Vtbl { + unsafe extern "system" fn get_Secrets< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecretsResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SECRET_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Secrets() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Secrets: get_Secrets::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceDescriptionResult_Impl: Sized { + fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION; + } + impl ::windows_core::RuntimeName for IFabricServiceDescriptionResult {} + impl IFabricServiceDescriptionResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceDescriptionResult_Impl, + const OFFSET: isize, + >() -> IFabricServiceDescriptionResult_Vtbl { + unsafe extern "system" fn get_Description< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Description() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceEndpointsVersion_Impl: Sized { + fn Compare( + &self, + other: ::core::option::Option<&IFabricServiceEndpointsVersion>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricServiceEndpointsVersion {} + impl IFabricServiceEndpointsVersion_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceEndpointsVersion_Impl, + const OFFSET: isize, + >() -> IFabricServiceEndpointsVersion_Vtbl { + unsafe extern "system" fn Compare< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceEndpointsVersion_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + other: *mut ::core::ffi::c_void, + compareresult: *mut i32, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Compare(::windows_core::from_raw_borrowed(&other)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + Compare: Compare::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceGroupDescriptionResult_Impl: Sized { + fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupDescriptionResult {} + impl IFabricServiceGroupDescriptionResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupDescriptionResult_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupDescriptionResult_Vtbl { + unsafe extern "system" fn get_Description< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupDescriptionResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Description() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceGroupDescriptionResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceGroupManagementClient_Impl: Sized { + fn BeginCreateServiceGroup( + &self, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateServiceGroup( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteServiceGroup( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteServiceGroup( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetServiceGroupDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceGroupDescription( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient {} + impl IFabricServiceGroupManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupManagementClient_Vtbl { + unsafe extern "system" fn BeginCreateServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateServiceGroup( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateServiceGroup(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginDeleteServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteServiceGroup( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteServiceGroup(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetServiceGroupDescription< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceGroupDescription( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceGroupDescription< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetServiceGroupDescription(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginCreateServiceGroup: BeginCreateServiceGroup::, + EndCreateServiceGroup: EndCreateServiceGroup::, + BeginDeleteServiceGroup: BeginDeleteServiceGroup::, + EndDeleteServiceGroup: EndDeleteServiceGroup::, + BeginGetServiceGroupDescription: BeginGetServiceGroupDescription::< + Identity, + Impl, + OFFSET, + >, + EndGetServiceGroupDescription: EndGetServiceGroupDescription::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceGroupManagementClient < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceGroupManagementClient2_Impl: + Sized + IFabricServiceGroupManagementClient_Impl + { + fn BeginUpdateServiceGroup( + &self, + name: *const u16, + servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateServiceGroup( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient2 {} + impl IFabricServiceGroupManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupManagementClient2_Vtbl { + unsafe extern "system" fn BeginUpdateServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateServiceGroup( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&servicegroupupdatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateServiceGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateServiceGroup(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricServiceGroupManagementClient_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginUpdateServiceGroup: BeginUpdateServiceGroup::, + EndUpdateServiceGroup: EndUpdateServiceGroup::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceGroupManagementClient2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceGroupManagementClient3_Impl: + Sized + IFabricServiceGroupManagementClient2_Impl + { + fn BeginCreateServiceGroupFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: &::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateServiceGroupFromTemplate( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient3 {} + impl IFabricServiceGroupManagementClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient3_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupManagementClient3_Vtbl { + unsafe extern "system" fn BeginCreateServiceGroupFromTemplate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicename: *const u16, + servicetypename: ::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateServiceGroupFromTemplate( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute(&servicetypename), + ::core::mem::transmute_copy(&initializationdatasize), + ::core::mem::transmute_copy(&initializationdata), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateServiceGroupFromTemplate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateServiceGroupFromTemplate(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricServiceGroupManagementClient2_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginCreateServiceGroupFromTemplate: BeginCreateServiceGroupFromTemplate::< + Identity, + Impl, + OFFSET, + >, + EndCreateServiceGroupFromTemplate: EndCreateServiceGroupFromTemplate::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceGroupManagementClient3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceGroupManagementClient4_Impl: + Sized + IFabricServiceGroupManagementClient3_Impl + { + fn BeginCreateServiceGroupFromTemplate2( + &self, + servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateServiceGroupFromTemplate2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient4 {} + impl IFabricServiceGroupManagementClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient4_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupManagementClient4_Vtbl { + unsafe extern "system" fn BeginCreateServiceGroupFromTemplate2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateServiceGroupFromTemplate2( + ::core::mem::transmute_copy(&servicegroupfromtemplatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateServiceGroupFromTemplate2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateServiceGroupFromTemplate2(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricServiceGroupManagementClient3_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + BeginCreateServiceGroupFromTemplate2: BeginCreateServiceGroupFromTemplate2::< + Identity, + Impl, + OFFSET, + >, + EndCreateServiceGroupFromTemplate2: EndCreateServiceGroupFromTemplate2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceGroupManagementClient4 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceGroupManagementClient3 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceHealthResult_Impl: Sized { + fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH; + } + impl ::windows_core::RuntimeName for IFabricServiceHealthResult {} + impl IFabricServiceHealthResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceHealthResult_Impl, + const OFFSET: isize, + >() -> IFabricServiceHealthResult_Vtbl { + unsafe extern "system" fn get_ServiceHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceHealthResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_HEALTH { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceHealth() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ServiceHealth: get_ServiceHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceManagementClient_Impl: Sized { + fn BeginCreateService( + &self, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateService( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginCreateServiceFromTemplate( + &self, + applicationname: *const u16, + servicename: *const u16, + servicetypename: &::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateServiceFromTemplate( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeleteService( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteService( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetServiceDescription( + &self, + name: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceDescription( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn RegisterServicePartitionResolutionChangeHandler( + &self, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: ::core::option::Option< + &IFabricServicePartitionResolutionChangeHandler, + >, + ) -> ::windows_core::Result; + fn UnregisterServicePartitionResolutionChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()>; + fn BeginResolveServicePartition( + &self, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: ::core::option::Option<&IFabricResolvedServicePartitionResult>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndResolveServicePartition( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient {} + impl IFabricServiceManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient_Vtbl { + unsafe extern "system" fn BeginCreateService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateService( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateService(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginCreateServiceFromTemplate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationname: *const u16, + servicename: *const u16, + servicetypename: ::windows_core::PCWSTR, + initializationdatasize: u32, + initializationdata: *const u8, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateServiceFromTemplate( + ::core::mem::transmute_copy(&applicationname), + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute(&servicetypename), + ::core::mem::transmute_copy(&initializationdatasize), + ::core::mem::transmute_copy(&initializationdata), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateServiceFromTemplate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateServiceFromTemplate(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginDeleteService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteService( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteService(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetServiceDescription< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceDescription( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceDescription< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetServiceDescription(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn RegisterServicePartitionResolutionChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + keytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + callbackhandle: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RegisterServicePartitionResolutionChangeHandler( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&keytype), + ::core::mem::transmute_copy(&partitionkey), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UnregisterServicePartitionResolutionChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callbackhandle: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UnregisterServicePartitionResolutionChangeHandler( + ::core::mem::transmute_copy(&callbackhandle), + ) + .into() + } + unsafe extern "system" fn BeginResolveServicePartition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, + partitionkey: *const ::core::ffi::c_void, + previousresult: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginResolveServicePartition( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&partitionkeytype), + ::core::mem::transmute_copy(&partitionkey), + ::windows_core::from_raw_borrowed(&previousresult), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndResolveServicePartition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndResolveServicePartition(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginCreateService: BeginCreateService::, + EndCreateService: EndCreateService::, + BeginCreateServiceFromTemplate: BeginCreateServiceFromTemplate::< + Identity, + Impl, + OFFSET, + >, + EndCreateServiceFromTemplate: EndCreateServiceFromTemplate::< + Identity, + Impl, + OFFSET, + >, + BeginDeleteService: BeginDeleteService::, + EndDeleteService: EndDeleteService::, + BeginGetServiceDescription: BeginGetServiceDescription::< + Identity, + Impl, + OFFSET, + >, + EndGetServiceDescription: EndGetServiceDescription::, + RegisterServicePartitionResolutionChangeHandler: + RegisterServicePartitionResolutionChangeHandler::, + UnregisterServicePartitionResolutionChangeHandler: + UnregisterServicePartitionResolutionChangeHandler::< + Identity, + Impl, + OFFSET, + >, + BeginResolveServicePartition: BeginResolveServicePartition::< + Identity, + Impl, + OFFSET, + >, + EndResolveServicePartition: EndResolveServicePartition::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceManagementClient2_Impl: + Sized + IFabricServiceManagementClient_Impl + { + fn BeginGetServiceManifest( + &self, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + servicemanifestname: &::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetServiceManifest( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginUpdateService( + &self, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateService( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient2 {} + impl IFabricServiceManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient2_Vtbl { + unsafe extern "system" fn BeginGetServiceManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetServiceManifest( + ::core::mem::transmute(&applicationtypename), + ::core::mem::transmute(&applicationtypeversion), + ::core::mem::transmute(&servicemanifestname), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetServiceManifest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EndGetServiceManifest(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginUpdateService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + serviceupdatedescription : *const super::super:: FABRIC_SERVICE_UPDATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateService( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&serviceupdatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateService< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateService(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricServiceManagementClient_Vtbl::new::( + ), + BeginGetServiceManifest: BeginGetServiceManifest::, + EndGetServiceManifest: EndGetServiceManifest::, + BeginUpdateService: BeginUpdateService::, + EndUpdateService: EndUpdateService::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceManagementClient2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceManagementClient3_Impl: + Sized + IFabricServiceManagementClient2_Impl + { + fn BeginRemoveReplica( + &self, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRemoveReplica( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginRestartReplica( + &self, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestartReplica( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient3 {} + impl IFabricServiceManagementClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient3_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient3_Vtbl { + unsafe extern "system" fn BeginRemoveReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRemoveReplica( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRemoveReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRemoveReplica(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginRestartReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestartReplica( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestartReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRestartReplica(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricServiceManagementClient2_Vtbl::new::( + ), + BeginRemoveReplica: BeginRemoveReplica::, + EndRemoveReplica: EndRemoveReplica::, + BeginRestartReplica: BeginRestartReplica::, + EndRestartReplica: EndRestartReplica::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceManagementClient3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceManagementClient4_Impl: + Sized + IFabricServiceManagementClient3_Impl + { + fn BeginRegisterServiceNotificationFilter( + &self, + description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRegisterServiceNotificationFilter( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginUnregisterServiceNotificationFilter( + &self, + filterid: i64, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUnregisterServiceNotificationFilter( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient4 {} + impl IFabricServiceManagementClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient4_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient4_Vtbl { + unsafe extern "system" fn BeginRegisterServiceNotificationFilter< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description : *const super::super:: FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRegisterServiceNotificationFilter( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRegisterServiceNotificationFilter< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + filterid: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndRegisterServiceNotificationFilter( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(filterid, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginUnregisterServiceNotificationFilter< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + filterid: i64, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUnregisterServiceNotificationFilter( + ::core::mem::transmute_copy(&filterid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUnregisterServiceNotificationFilter< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUnregisterServiceNotificationFilter( + ::windows_core::from_raw_borrowed(&context), + ) + .into() + } + Self { + base__: IFabricServiceManagementClient3_Vtbl::new::( + ), + BeginRegisterServiceNotificationFilter: + BeginRegisterServiceNotificationFilter::, + EndRegisterServiceNotificationFilter: EndRegisterServiceNotificationFilter::< + Identity, + Impl, + OFFSET, + >, + BeginUnregisterServiceNotificationFilter: + BeginUnregisterServiceNotificationFilter::, + EndUnregisterServiceNotificationFilter: + EndUnregisterServiceNotificationFilter::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceManagementClient4 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient3 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceManagementClient5_Impl: + Sized + IFabricServiceManagementClient4_Impl + { + fn BeginDeleteService2( + &self, + deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeleteService2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient5 {} + impl IFabricServiceManagementClient5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient5_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient5_Vtbl { + unsafe extern "system" fn BeginDeleteService2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeleteService2( + ::core::mem::transmute_copy(&deletedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeleteService2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeleteService2(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricServiceManagementClient4_Vtbl::new::( + ), + BeginDeleteService2: BeginDeleteService2::, + EndDeleteService2: EndDeleteService2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceManagementClient5 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient4 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceManagementClient6_Impl: + Sized + IFabricServiceManagementClient5_Impl + { + fn BeginCreateServiceFromTemplate2( + &self, + servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCreateServiceFromTemplate2( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceManagementClient6 {} + impl IFabricServiceManagementClient6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient6_Impl, + const OFFSET: isize, + >() -> IFabricServiceManagementClient6_Vtbl { + unsafe extern "system" fn BeginCreateServiceFromTemplate2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCreateServiceFromTemplate2( + ::core::mem::transmute_copy(&servicefromtemplatedescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCreateServiceFromTemplate2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceManagementClient6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCreateServiceFromTemplate2(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + Self { + base__: IFabricServiceManagementClient5_Vtbl::new::( + ), + BeginCreateServiceFromTemplate2: BeginCreateServiceFromTemplate2::< + Identity, + Impl, + OFFSET, + >, + EndCreateServiceFromTemplate2: EndCreateServiceFromTemplate2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceManagementClient6 < > as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient2 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient3 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient4 as::windows_core::ComInterface >::IID || iid == & < IFabricServiceManagementClient5 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServiceNotification_Impl: Sized { + fn get_Notification(&self) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION; + fn GetVersion(&self) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricServiceNotification {} + impl IFabricServiceNotification_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceNotification_Impl, + const OFFSET: isize, + >() -> IFabricServiceNotification_Vtbl { + unsafe extern "system" fn get_Notification< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceNotification_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Notification() + } + unsafe extern "system" fn GetVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceNotification_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetVersion() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Notification: get_Notification::, + GetVersion: GetVersion::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceNotificationEventHandler_Impl: Sized { + fn OnNotification( + &self, + __midl__ifabricservicenotificationeventhandler0000: ::core::option::Option< + &IFabricServiceNotification, + >, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricServiceNotificationEventHandler {} + impl IFabricServiceNotificationEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceNotificationEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricServiceNotificationEventHandler_Vtbl { + unsafe extern "system" fn OnNotification< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceNotificationEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + __midl__ifabricservicenotificationeventhandler0000 : * mut::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnNotification(::windows_core::from_raw_borrowed( + &__midl__ifabricservicenotificationeventhandler0000, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnNotification: OnNotification::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServiceNotificationEventHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricServicePartitionResolutionChangeHandler_Impl: Sized { + fn OnChange( + &self, + source: ::core::option::Option<&IFabricServiceManagementClient>, + handlerid: i64, + partition: ::core::option::Option<&IFabricResolvedServicePartitionResult>, + error: ::windows_core::HRESULT, + ); + } + impl ::windows_core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} + impl IFabricServicePartitionResolutionChangeHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServicePartitionResolutionChangeHandler_Impl, + const OFFSET: isize, + >() -> IFabricServicePartitionResolutionChangeHandler_Vtbl { + unsafe extern "system" fn OnChange< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServicePartitionResolutionChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + handlerid: i64, + partition: *mut ::core::ffi::c_void, + error: ::windows_core::HRESULT, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnChange( + ::windows_core::from_raw_borrowed(&source), + ::core::mem::transmute_copy(&handlerid), + ::windows_core::from_raw_borrowed(&partition), + ::core::mem::transmute_copy(&error), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnChange: OnChange::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServicePartitionResolutionChangeHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStartNodeResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; + } + impl ::windows_core::RuntimeName for IFabricStartNodeResult {} + impl IFabricStartNodeResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStartNodeResult_Impl, + const OFFSET: isize, + >() -> IFabricStartNodeResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStartNodeResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStopNodeResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; + } + impl ::windows_core::RuntimeName for IFabricStopNodeResult {} + impl IFabricStopNodeResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStopNodeResult_Impl, + const OFFSET: isize, + >() -> IFabricStopNodeResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStopNodeResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTestCommandStatusResult_Impl: Sized { + fn get_Result(&self) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST; + } + impl ::windows_core::RuntimeName for IFabricTestCommandStatusResult {} + impl IFabricTestCommandStatusResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestCommandStatusResult_Impl, + const OFFSET: isize, + >() -> IFabricTestCommandStatusResult_Vtbl { + unsafe extern "system" fn get_Result< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestCommandStatusResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Result() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Result: get_Result::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTestManagementClient_Impl: Sized { + fn BeginStartPartitionDataLoss( + &self, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartPartitionDataLoss( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetPartitionDataLossProgress( + &self, + operationid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionDataLossProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginStartPartitionQuorumLoss( + &self, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartPartitionQuorumLoss( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetPartitionQuorumLossProgress( + &self, + operationid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionQuorumLossProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginStartPartitionRestart( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartPartitionRestart( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetPartitionRestartProgress( + &self, + operationid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetPartitionRestartProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetTestCommandStatusList( + &self, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetTestCommandStatusList( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginCancelTestCommand( + &self, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCancelTestCommand( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricTestManagementClient {} + impl IFabricTestManagementClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >() -> IFabricTestManagementClient_Vtbl { + unsafe extern "system" fn BeginStartPartitionDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartPartitionDataLoss( + ::core::mem::transmute_copy(&invokedatalossdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartPartitionDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartPartitionDataLoss(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetPartitionDataLossProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionDataLossProgress( + ::core::mem::transmute(&operationid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionDataLossProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionDataLossProgress( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginStartPartitionQuorumLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartPartitionQuorumLoss( + ::core::mem::transmute_copy(&invokequorumlossdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartPartitionQuorumLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartPartitionQuorumLoss(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn BeginGetPartitionQuorumLossProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionQuorumLossProgress( + ::core::mem::transmute(&operationid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionQuorumLossProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionQuorumLossProgress( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginStartPartitionRestart< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartPartitionRestart( + ::core::mem::transmute_copy(&restartpartitiondescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartPartitionRestart< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartPartitionRestart(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetPartitionRestartProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetPartitionRestartProgress( + ::core::mem::transmute(&operationid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetPartitionRestartProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetPartitionRestartProgress( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetTestCommandStatusList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetTestCommandStatusList( + ::core::mem::transmute_copy(&operationid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetTestCommandStatusList< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetTestCommandStatusList(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginCancelTestCommand< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCancelTestCommand( + ::core::mem::transmute_copy(&invokedatalossdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCancelTestCommand< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndCancelTestCommand(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginStartPartitionDataLoss: BeginStartPartitionDataLoss::< + Identity, + Impl, + OFFSET, + >, + EndStartPartitionDataLoss: EndStartPartitionDataLoss::< + Identity, + Impl, + OFFSET, + >, + BeginGetPartitionDataLossProgress: BeginGetPartitionDataLossProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetPartitionDataLossProgress: EndGetPartitionDataLossProgress::< + Identity, + Impl, + OFFSET, + >, + BeginStartPartitionQuorumLoss: BeginStartPartitionQuorumLoss::< + Identity, + Impl, + OFFSET, + >, + EndStartPartitionQuorumLoss: EndStartPartitionQuorumLoss::< + Identity, + Impl, + OFFSET, + >, + BeginGetPartitionQuorumLossProgress: BeginGetPartitionQuorumLossProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetPartitionQuorumLossProgress: EndGetPartitionQuorumLossProgress::< + Identity, + Impl, + OFFSET, + >, + BeginStartPartitionRestart: BeginStartPartitionRestart::< + Identity, + Impl, + OFFSET, + >, + EndStartPartitionRestart: EndStartPartitionRestart::, + BeginGetPartitionRestartProgress: BeginGetPartitionRestartProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetPartitionRestartProgress: EndGetPartitionRestartProgress::< + Identity, + Impl, + OFFSET, + >, + BeginGetTestCommandStatusList: BeginGetTestCommandStatusList::< + Identity, + Impl, + OFFSET, + >, + EndGetTestCommandStatusList: EndGetTestCommandStatusList::< + Identity, + Impl, + OFFSET, + >, + BeginCancelTestCommand: BeginCancelTestCommand::, + EndCancelTestCommand: EndCancelTestCommand::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTestManagementClient2_Impl: + Sized + IFabricTestManagementClient_Impl + { + fn BeginStartChaos( + &self, + restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartChaos( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginStopChaos( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStopChaos( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetChaosReport( + &self, + getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetChaosReport( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricTestManagementClient2 {} + impl IFabricTestManagementClient2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >() -> IFabricTestManagementClient2_Vtbl { + unsafe extern "system" fn BeginStartChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + restartpartitiondescription : *const super::super:: FABRIC_START_CHAOS_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartChaos( + ::core::mem::transmute_copy(&restartpartitiondescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartChaos(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginStopChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStopChaos( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStopChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStopChaos(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetChaosReport< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + getchaosreportdescription : *const super::super:: FABRIC_GET_CHAOS_REPORT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetChaosReport( + ::core::mem::transmute_copy(&getchaosreportdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetChaosReport< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetChaosReport(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricTestManagementClient_Vtbl::new::(), + BeginStartChaos: BeginStartChaos::, + EndStartChaos: EndStartChaos::, + BeginStopChaos: BeginStopChaos::, + EndStopChaos: EndStopChaos::, + BeginGetChaosReport: BeginGetChaosReport::, + EndGetChaosReport: EndGetChaosReport::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricTestManagementClient3_Impl: + Sized + IFabricTestManagementClient2_Impl + { + fn BeginStartNodeTransition( + &self, + description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndStartNodeTransition( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetNodeTransitionProgress( + &self, + operationid: &::windows_core::GUID, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNodeTransitionProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricTestManagementClient3 {} + impl IFabricTestManagementClient3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient3_Impl, + const OFFSET: isize, + >() -> IFabricTestManagementClient3_Vtbl { + unsafe extern "system" fn BeginStartNodeTransition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginStartNodeTransition( + ::core::mem::transmute_copy(&description), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndStartNodeTransition< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndStartNodeTransition(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetNodeTransitionProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationid: ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNodeTransitionProgress( + ::core::mem::transmute(&operationid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNodeTransitionProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNodeTransitionProgress(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricTestManagementClient2_Vtbl::new::(), + BeginStartNodeTransition: BeginStartNodeTransition::, + EndStartNodeTransition: EndStartNodeTransition::, + BeginGetNodeTransitionProgress: BeginGetNodeTransitionProgress::< + Identity, + Impl, + OFFSET, + >, + EndGetNodeTransitionProgress: EndGetNodeTransitionProgress::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricTestManagementClient4_Impl: + Sized + IFabricTestManagementClient3_Impl + { + fn BeginGetChaos( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetChaos( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginGetChaosSchedule( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetChaosSchedule( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginSetChaosSchedule( + &self, + setchaosscheduledescription : *const super::super:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndSetChaosSchedule( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginGetChaosEvents( + &self, + chaoseventsdescription : *const super::super:: FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetChaosEvents( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricTestManagementClient4 {} + impl IFabricTestManagementClient4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >() -> IFabricTestManagementClient4_Vtbl { + unsafe extern "system" fn BeginGetChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetChaos( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetChaos< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetChaos(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginGetChaosSchedule< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetChaosSchedule( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetChaosSchedule< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetChaosSchedule(::windows_core::from_raw_borrowed(&context)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginSetChaosSchedule< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + setchaosscheduledescription : *const super::super:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginSetChaosSchedule( + ::core::mem::transmute_copy(&setchaosscheduledescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndSetChaosSchedule< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndSetChaosSchedule(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginGetChaosEvents< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + chaoseventsdescription : *const super::super:: FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetChaosEvents( + ::core::mem::transmute_copy(&chaoseventsdescription), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetChaosEvents< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTestManagementClient4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetChaosEvents(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricTestManagementClient3_Vtbl::new::(), + BeginGetChaos: BeginGetChaos::, + EndGetChaos: EndGetChaos::, + BeginGetChaosSchedule: BeginGetChaosSchedule::, + EndGetChaosSchedule: EndGetChaosSchedule::, + BeginSetChaosSchedule: BeginSetChaosSchedule::, + EndSetChaosSchedule: EndSetChaosSchedule::, + BeginGetChaosEvents: BeginGetChaosEvents::, + EndGetChaosEvents: EndGetChaosEvents::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: Sized { + fn get_State( + &self, + ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE; + } + impl ::windows_core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} + impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, + const OFFSET: isize, + >() -> IFabricUpgradeOrchestrationServiceStateResult_Vtbl { + unsafe extern "system" fn get_State< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_State() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_State: get_State::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricUpgradeOrchestrationServiceStateResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricUpgradeProgressResult_Impl: Sized { + fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR; + fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR; + fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE; + fn GetUpgradeDomains( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()>; + fn GetChangedUpgradeDomains( + &self, + previousprogress: ::core::option::Option<&IFabricUpgradeProgressResult>, + itemcount: *mut u32, + buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult {} + impl IFabricUpgradeProgressResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >() -> IFabricUpgradeProgressResult_Vtbl { + unsafe extern "system" fn get_TargetCodeVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_TargetCodeVersion() + } + unsafe extern "system" fn get_TargetConfigVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_TargetConfigVersion() + } + unsafe extern "system" fn get_UpgradeState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_UPGRADE_STATE { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_UpgradeState() + } + unsafe extern "system" fn GetUpgradeDomains< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems : *mut *mut super::super:: FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetUpgradeDomains( + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + unsafe extern "system" fn GetChangedUpgradeDomains< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + previousprogress: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems : *mut *mut super::super:: FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetChangedUpgradeDomains( + ::windows_core::from_raw_borrowed(&previousprogress), + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_TargetCodeVersion: get_TargetCodeVersion::, + get_TargetConfigVersion: get_TargetConfigVersion::, + get_UpgradeState: get_UpgradeState::, + GetUpgradeDomains: GetUpgradeDomains::, + GetChangedUpgradeDomains: GetChangedUpgradeDomains::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricUpgradeProgressResult2_Impl: + Sized + IFabricUpgradeProgressResult_Impl + { + fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; + fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult2 {} + impl IFabricUpgradeProgressResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult2_Impl, + const OFFSET: isize, + >() -> IFabricUpgradeProgressResult2_Vtbl { + unsafe extern "system" fn get_RollingUpgradeMode< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_RollingUpgradeMode() + } + unsafe extern "system" fn get_NextUpgradeDomain< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NextUpgradeDomain() + } + Self { + base__: IFabricUpgradeProgressResult_Vtbl::new::(), + get_RollingUpgradeMode: get_RollingUpgradeMode::, + get_NextUpgradeDomain: get_NextUpgradeDomain::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricUpgradeProgressResult3_Impl: + Sized + IFabricUpgradeProgressResult2_Impl + { + fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_UPGRADE_PROGRESS; + } + impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult3 {} + impl IFabricUpgradeProgressResult3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult3_Impl, + const OFFSET: isize, + >() -> IFabricUpgradeProgressResult3_Vtbl { + unsafe extern "system" fn get_UpgradeProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricUpgradeProgressResult3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_UPGRADE_PROGRESS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_UpgradeProgress() + } + Self { + base__: IFabricUpgradeProgressResult2_Vtbl::new::(), + get_UpgradeProgress: get_UpgradeProgress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + } + pub mod FabricRuntime { + #[inline] + pub unsafe fn FabricBeginCreateRuntime( + riid: *const ::windows_core::GUID, + exithandler: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricBeginCreateRuntime( + riid: *const ::windows_core::GUID, + exithandler: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricBeginCreateRuntime( + riid, + exithandler.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricBeginGetActivationContext( + riid: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricBeginGetActivationContext( + riid: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricBeginGetActivationContext( + riid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricBeginGetCodePackageActivator( + riid: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricBeginGetCodePackageActivator( + riid: *const ::windows_core::GUID, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricBeginGetCodePackageActivator( + riid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricBeginGetNodeContext( + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricBeginGetNodeContext( + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricBeginGetNodeContext( + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateKeyValueStoreReplica( + riid: *const ::windows_core::GUID, + storename: P0, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: P1, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateKeyValueStoreReplica( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: *mut ::core::ffi::c_void, + keyvaluestore: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateKeyValueStoreReplica( + riid, + storename.into_param().abi(), + ::core::mem::transmute(partitionid), + replicaid, + replicatorsettings, + localstorekind, + localstoresettings, + storeeventhandler.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateKeyValueStoreReplica2( + riid: *const ::windows_core::GUID, + storename: P0, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: P1, + secondaryeventhandler: P2, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateKeyValueStoreReplica2( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: *mut ::core::ffi::c_void, + secondaryeventhandler: *mut ::core::ffi::c_void, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + keyvaluestore: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateKeyValueStoreReplica2( + riid, + storename.into_param().abi(), + ::core::mem::transmute(partitionid), + replicaid, + replicatorsettings, + localstorekind, + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), + notificationmode, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateKeyValueStoreReplica3( + riid: *const ::windows_core::GUID, + storename: P0, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: P1, + secondaryeventhandler: P2, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateKeyValueStoreReplica3( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, + replicaid: i64, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: *mut ::core::ffi::c_void, + secondaryeventhandler: *mut ::core::ffi::c_void, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + keyvaluestore: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateKeyValueStoreReplica3( + riid, + storename.into_param().abi(), + ::core::mem::transmute(partitionid), + replicaid, + replicatorsettings, + localstorekind, + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), + notificationmode, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateKeyValueStoreReplica4( + riid: *const ::windows_core::GUID, + storename: P0, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicename: *const u16, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: P1, + secondaryeventhandler: P2, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateKeyValueStoreReplica4( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicename: *const u16, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: *mut ::core::ffi::c_void, + secondaryeventhandler: *mut ::core::ffi::c_void, + notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + keyvaluestore: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateKeyValueStoreReplica4( + riid, + storename.into_param().abi(), + ::core::mem::transmute(partitionid), + replicaid, + servicename, + replicatorsettings, + localstorekind, + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), + notificationmode, + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateKeyValueStoreReplica5( + riid: *const ::windows_core::GUID, + storename: P0, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicename: *const u16, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + kvssettings: *const super::super::FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: P1, + secondaryeventhandler: P2, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateKeyValueStoreReplica5( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicename: *const u16, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + kvssettings: *const super::super::FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS, + localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, + localstoresettings: *const ::core::ffi::c_void, + storeeventhandler: *mut ::core::ffi::c_void, + secondaryeventhandler: *mut ::core::ffi::c_void, + keyvaluestore: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateKeyValueStoreReplica5( + riid, + storename.into_param().abi(), + ::core::mem::transmute(partitionid), + replicaid, + servicename, + replicatorsettings, + kvssettings, + localstorekind, + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricCreateRuntime( + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricCreateRuntime( + riid: *const ::windows_core::GUID, + fabricruntime: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricCreateRuntime(riid, &mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricEndCreateRuntime( + context: P0, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricEndCreateRuntime( + context: *mut ::core::ffi::c_void, + fabricruntime: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricEndCreateRuntime(context.into_param().abi(), &mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricEndGetActivationContext( + context: P0, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricEndGetActivationContext( + context: *mut ::core::ffi::c_void, + activationcontext: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricEndGetActivationContext(context.into_param().abi(), &mut result__) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricEndGetCodePackageActivator( + context: P0, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricEndGetCodePackageActivator( + context: *mut ::core::ffi::c_void, + activator: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricEndGetCodePackageActivator(context.into_param().abi(), &mut result__) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricEndGetNodeContext( + context: P0, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> + where + P0: ::windows_core::IntoParam, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricEndGetNodeContext( + context: *mut ::core::ffi::c_void, + nodecontext: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricEndGetNodeContext(context.into_param().abi(), &mut result__) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricGetActivationContext( + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricGetActivationContext( + riid: *const ::windows_core::GUID, + activationcontext: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricGetActivationContext(riid, &mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricGetCodePackageActivator( + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricGetCodePackageActivator( + riid: *const ::windows_core::GUID, + activator: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricGetCodePackageActivator(riid, &mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricGetNodeContext() -> ::windows_core::Result<*mut ::core::ffi::c_void> + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricGetNodeContext( + nodecontext: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricGetNodeContext(&mut result__).from_abi(result__) + } + #[inline] + pub unsafe fn FabricLoadEseLocalStoreSettings( + codepackageactivationcontext: P0, + configurationpackagename: P1, + sectionname: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricLoadEseLocalStoreSettings( + codepackageactivationcontext: *mut ::core::ffi::c_void, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + settings: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricLoadEseLocalStoreSettings( + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricLoadReplicatorSettings( + codepackageactivationcontext: P0, + configurationpackagename: P1, + sectionname: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricLoadReplicatorSettings( + codepackageactivationcontext: *mut ::core::ffi::c_void, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + replicatorsettings: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricLoadReplicatorSettings( + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn FabricLoadSecurityCredentials( + codepackageactivationcontext: P0, + configurationpackagename: P1, + sectionname: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + #[link(name = "fabricruntime")] + extern "system" { + pub fn FabricLoadSecurityCredentials( + codepackageactivationcontext: *mut ::core::ffi::c_void, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + securitycredentials: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + FabricLoadSecurityCredentials( + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[repr(transparent)] + pub struct IFabricAtomicGroupStateProvider(::windows_core::IUnknown); + impl IFabricAtomicGroupStateProvider { + pub unsafe fn BeginAtomicGroupCommit( + &self, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + atomicgroupid, + commitsequencenumber, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndAtomicGroupCommit( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginAtomicGroupRollback( + &self, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + atomicgroupid, + rollbackequencenumber, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndAtomicGroupRollback( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUndoProgress( + &self, + fromcommitsequencenumber: i64, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUndoProgress)( + ::windows_core::Interface::as_raw(self), + fromcommitsequencenumber, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUndoProgress(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUndoProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricAtomicGroupStateProvider, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricAtomicGroupStateProvider { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricAtomicGroupStateProvider {} + impl ::core::fmt::Debug for IFabricAtomicGroupStateProvider { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricAtomicGroupStateProvider") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricAtomicGroupStateProvider { + type Vtable = IFabricAtomicGroupStateProvider_Vtbl; + } + impl ::core::clone::Clone for IFabricAtomicGroupStateProvider { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricAtomicGroupStateProvider { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2b670953_6148_4f7d_a920_b390de43d913); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricAtomicGroupStateProvider_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginAtomicGroupCommit: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndAtomicGroupCommit: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginAtomicGroupRollback: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndAtomicGroupRollback: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUndoProgress: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + fromcommitsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUndoProgress: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricAtomicGroupStateReplicator(::windows_core::IUnknown); + impl IFabricAtomicGroupStateReplicator { + pub unsafe fn CreateAtomicGroup(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateAtomicGroup)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginReplicateAtomicGroupOperation( + &self, + atomicgroupid: i64, + operationdata: P0, + callback: P1, + operationsequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupOperation)( + ::windows_core::Interface::as_raw(self), + atomicgroupid, + operationdata.into_param().abi(), + callback.into_param().abi(), + operationsequencenumber, + ::core::mem::transmute(context), + ) + .ok() + } + pub unsafe fn EndReplicateAtomicGroupOperation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginReplicateAtomicGroupCommit( + &self, + atomicgroupid: i64, + callback: P0, + commitsequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + atomicgroupid, + callback.into_param().abi(), + commitsequencenumber, + ::core::mem::transmute(context), + ) + .ok() + } + pub unsafe fn EndReplicateAtomicGroupCommit( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginReplicateAtomicGroupRollback( + &self, + atomicgroupid: i64, + callback: P0, + rollbacksequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + atomicgroupid, + callback.into_param().abi(), + rollbacksequencenumber, + ::core::mem::transmute(context), + ) + .ok() + } + pub unsafe fn EndReplicateAtomicGroupRollback( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricAtomicGroupStateReplicator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricAtomicGroupStateReplicator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricAtomicGroupStateReplicator {} + impl ::core::fmt::Debug for IFabricAtomicGroupStateReplicator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricAtomicGroupStateReplicator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricAtomicGroupStateReplicator { + type Vtable = IFabricAtomicGroupStateReplicator_Vtbl; + } + impl ::core::clone::Clone for IFabricAtomicGroupStateReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricAtomicGroupStateReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x80d2155c_4fc2_4fde_9696_c2f39b471c3d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricAtomicGroupStateReplicator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub CreateAtomicGroup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: *mut i64, + ) + -> ::windows_core::HRESULT, + pub BeginReplicateAtomicGroupOperation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + operationdata: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + operationsequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndReplicateAtomicGroupOperation: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operationsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT, + pub BeginReplicateAtomicGroupCommit: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + callback: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndReplicateAtomicGroupCommit: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT, + pub BeginReplicateAtomicGroupRollback: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + callback: *mut ::core::ffi::c_void, + rollbacksequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndReplicateAtomicGroupRollback: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + rollbacksequencenumber: *mut i64, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackage(::windows_core::IUnknown); + impl IFabricCodePackage { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_Path)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!(IFabricCodePackage, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricCodePackage { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackage {} + impl ::core::fmt::Debug for IFabricCodePackage { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackage").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackage { + type Vtable = IFabricCodePackage_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x20792b45_4d13_41a4_af13_346e529f00c5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackage_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Description: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION, + pub get_Path: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR, + } + #[repr(transparent)] + pub struct IFabricCodePackage2(::windows_core::IUnknown); + impl IFabricCodePackage2 { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .get_Description)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_Path)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_SetupEntryPointRunAsPolicy( + &self, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_SetupEntryPointRunAsPolicy)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_EntryPointRunAsPolicy( + &self, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_EntryPointRunAsPolicy)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackage2, + ::windows_core::IUnknown, + IFabricCodePackage + ); + impl ::core::cmp::PartialEq for IFabricCodePackage2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackage2 {} + impl ::core::fmt::Debug for IFabricCodePackage2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackage2").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackage2 { + type Vtable = IFabricCodePackage2_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackage2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackage2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackage2_Vtbl { + pub base__: IFabricCodePackage_Vtbl, + pub get_SetupEntryPointRunAsPolicy: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION, + pub get_EntryPointRunAsPolicy: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ContextId)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_CodePackageName)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_WorkDirectory)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_LogDirectory)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_TempDirectory)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self).get_ServiceTypes)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self).get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self).get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext { + type Vtable = IFabricCodePackageActivationContext_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x68a971e2_f15f_4d95_a79c_8a257909659e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ContextId :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_CodePackageName :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_CodePackageVersion :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_WorkDirectory :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_LogDirectory :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_TempDirectory :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_ServiceTypes :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_TYPE_DESCRIPTION_LIST , pub get_ServiceGroupTypes :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST , pub get_ApplicationPrincipals :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION , pub get_ServiceEndpointResources :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST , pub GetServiceEndpointResource :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , serviceendpointresourcename : ::windows_core::PCWSTR , bufferedvalue : *mut *mut super::super:: FABRIC_ENDPOINT_RESOURCE_DESCRIPTION , ) -> ::windows_core::HRESULT , pub GetCodePackageNames :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , names : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub GetConfigurationPackageNames :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , names : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub GetDataPackageNames :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , names : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub GetCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , codepackagename : ::windows_core::PCWSTR , codepackage : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub GetConfigurationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , configpackagename : ::windows_core::PCWSTR , configpackage : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub GetDataPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , datapackagename : ::windows_core::PCWSTR , datapackage : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub RegisterCodePackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callback : * mut::core::ffi::c_void , callbackhandle : *mut i64 , ) -> ::windows_core::HRESULT , pub UnregisterCodePackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callbackhandle : i64 , ) -> ::windows_core::HRESULT , pub RegisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callback : * mut::core::ffi::c_void , callbackhandle : *mut i64 , ) -> ::windows_core::HRESULT , pub UnregisterConfigurationPackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callbackhandle : i64 , ) -> ::windows_core::HRESULT , pub RegisterDataPackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callback : * mut::core::ffi::c_void , callbackhandle : *mut i64 , ) -> ::windows_core::HRESULT , pub UnregisterDataPackageChangeHandler :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , callbackhandle : i64 , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext2(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext2 { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_ContextId)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_CodePackageName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_WorkDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_LogDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_TempDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceTypes)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext2, + ::windows_core::IUnknown, + IFabricCodePackageActivationContext + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext2 {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext2 { + type Vtable = IFabricCodePackageActivationContext2_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext2_Vtbl { + pub base__: IFabricCodePackageActivationContext_Vtbl, + pub get_ApplicationName: + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, + pub get_ApplicationTypeName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + pub GetServiceManifestName: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicemanifestname: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub GetServiceManifestVersion: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicemanifestversion: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext3(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext3 { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ContextId)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_CodePackageName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_WorkDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_LogDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_TempDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ServiceTypes)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext3, + ::windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2 + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext3 {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext3 { + type Vtable = IFabricCodePackageActivationContext3_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6efee900_f491_4b03_bc5b_3a70de103593); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext3_Vtbl { + pub base__: IFabricCodePackageActivationContext2_Vtbl, + pub ReportApplicationHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) + -> ::windows_core::HRESULT, + pub ReportDeployedApplicationHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT, + pub ReportDeployedServicePackageHealth: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext4(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext4 { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ContextId)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_CodePackageName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_WorkDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_LogDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_TempDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ServiceTypes)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext4, + ::windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3 + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext4 {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext4 { + type Vtable = IFabricCodePackageActivationContext4_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x99efebb6_a7b4_4d45_b45e_f191a66eef03); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext4_Vtbl { + pub base__: IFabricCodePackageActivationContext3_Vtbl, + pub ReportApplicationHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + pub ReportDeployedApplicationHealth2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT, + pub ReportDeployedServicePackageHealth2: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext5(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext5 { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ContextId)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_CodePackageName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_WorkDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_LogDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_TempDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ServiceTypes)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn get_ServiceListenAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ServiceListenAddress)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_ServicePublishAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ServicePublishAddress)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext5, + ::windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3, + IFabricCodePackageActivationContext4 + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext5 {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext5") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext5 { + type Vtable = IFabricCodePackageActivationContext5_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe45387e_8711_4949_ac36_31dc95035513); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext5_Vtbl { + pub base__: IFabricCodePackageActivationContext4_Vtbl, + pub get_ServiceListenAddress: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + pub get_ServicePublishAddress: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::PCWSTR, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivationContext6(::windows_core::IUnknown); + impl IFabricCodePackageActivationContext6 { + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_ContextId)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_CodePackageName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_CodePackageVersion)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_WorkDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_LogDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_TempDirectory)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_ServiceTypes)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCodePackage( + &self, + codepackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetConfigurationPackage( + &self, + configpackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetDataPackage( + &self, + datapackagename: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn RegisterCodePackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterConfigurationPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn RegisterDataPackageChangeHandler( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + pub unsafe fn get_ApplicationName(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ApplicationName)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .get_ApplicationTypeName)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportDeployedServicePackageHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn get_ServiceListenAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceListenAddress)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn get_ServicePublishAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) + .base__ + .get_ServicePublishAddress)( + ::windows_core::Interface::as_raw(self) + ) + } + pub unsafe fn GetDirectory( + &self, + logicaldirectoryname: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDirectory)( + ::windows_core::Interface::as_raw(self), + logicaldirectoryname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivationContext6, + ::windows_core::IUnknown, + IFabricCodePackageActivationContext, + IFabricCodePackageActivationContext2, + IFabricCodePackageActivationContext3, + IFabricCodePackageActivationContext4, + IFabricCodePackageActivationContext5 + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivationContext6 {} + impl ::core::fmt::Debug for IFabricCodePackageActivationContext6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivationContext6") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext6 { + type Vtable = IFabricCodePackageActivationContext6_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivationContext6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfa5fda9b_472c_45a0_9b60_a374691227a4); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivationContext6_Vtbl { + pub base__: IFabricCodePackageActivationContext5_Vtbl, + pub GetDirectory: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + logicaldirectoryname: ::windows_core::PCWSTR, + directorypath: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackageActivator(::windows_core::IUnknown); + impl IFabricCodePackageActivator { + pub unsafe fn BeginActivateCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + environment: *const super::super::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginActivateCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, + environment, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndActivateCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndActivateCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginDeactivateCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeactivateCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndDeactivateCodePackage( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndDeactivateCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn AbortCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).AbortCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, + ) + .ok() + } + pub unsafe fn RegisterCodePackageEventHandler( + &self, + eventhandler: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterCodePackageEventHandler)( + ::windows_core::Interface::as_raw(self), + eventhandler.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UnregisterCodePackageEventHandler( + &self, + callbackhandle: u64, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterCodePackageEventHandler)( + ::windows_core::Interface::as_raw(self), + callbackhandle, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageActivator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricCodePackageActivator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageActivator {} + impl ::core::fmt::Debug for IFabricCodePackageActivator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageActivator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageActivator { + type Vtable = IFabricCodePackageActivator_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageActivator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x70be1b10_b259_46fc_b813_0b75720e7183); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageActivator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginActivateCodePackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + environment: *const super::super::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndActivateCodePackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginDeactivateCodePackage: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndDeactivateCodePackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub AbortCodePackage: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + ) + -> ::windows_core::HRESULT, + pub RegisterCodePackageEventHandler: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + eventhandler: *mut ::core::ffi::c_void, + callbackhandle: *mut u64, + ) -> ::windows_core::HRESULT, + pub UnregisterCodePackageEventHandler: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callbackhandle: u64, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricCodePackageChangeHandler(::windows_core::IUnknown); + impl IFabricCodePackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, codepackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + codepackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageRemoved(&self, source: P0, codepackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + codepackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageModified( + &self, + source: P0, + previouscodepackage: P1, + codepackage: P2, + ) where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previouscodepackage.into_param().abi(), + codepackage.into_param().abi(), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageChangeHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricCodePackageChangeHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageChangeHandler {} + impl ::core::fmt::Debug for IFabricCodePackageChangeHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageChangeHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageChangeHandler { + type Vtable = IFabricCodePackageChangeHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb90d36cd_acb5_427a_b318_3b045981d0cc); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageChangeHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previouscodepackage: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ), + } + #[repr(transparent)] + pub struct IFabricCodePackageEventHandler(::windows_core::IUnknown); + impl IFabricCodePackageEventHandler { + pub unsafe fn OnCodePackageEvent( + &self, + source: P0, + eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ) where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnCodePackageEvent)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + eventdesc, + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricCodePackageEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricCodePackageEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricCodePackageEventHandler {} + impl ::core::fmt::Debug for IFabricCodePackageEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricCodePackageEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricCodePackageEventHandler { + type Vtable = IFabricCodePackageEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricCodePackageEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricCodePackageEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x899e0ca8_16df_458e_8915_d0307b4ab101); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricCodePackageEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnCodePackageEvent: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ), + } + #[repr(transparent)] + pub struct IFabricConfigurationPackage(::windows_core::IUnknown); + impl IFabricConfigurationPackage { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_Path)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_Settings( + &self, + ) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { + (::windows_core::Interface::vtable(self).get_Settings)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetSection( + &self, + sectionname: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetSection)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValue( + &self, + sectionname: P0, + parametername: P1, + isencrypted: *mut u8, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).GetValue)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parametername.into_param().abi(), + isencrypted, + bufferedvalue, + ) + .ok() + } + pub unsafe fn DecryptValue( + &self, + encryptedvalue: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).DecryptValue)( + ::windows_core::Interface::as_raw(self), + encryptedvalue.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricConfigurationPackage, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricConfigurationPackage { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricConfigurationPackage {} + impl ::core::fmt::Debug for IFabricConfigurationPackage { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricConfigurationPackage") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricConfigurationPackage { + type Vtable = IFabricConfigurationPackage_Vtbl; + } + impl ::core::clone::Clone for IFabricConfigurationPackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricConfigurationPackage_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Description :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION , pub get_Path :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> ::windows_core::PCWSTR , pub get_Settings :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_CONFIGURATION_SETTINGS , pub GetSection :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , sectionname : ::windows_core::PCWSTR , bufferedvalue : *mut *mut super::super:: FABRIC_CONFIGURATION_SECTION , ) -> ::windows_core::HRESULT , pub GetValue :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , sectionname : ::windows_core::PCWSTR , parametername : ::windows_core::PCWSTR , isencrypted : *mut u8 , bufferedvalue : *mut ::windows_core::PCWSTR , ) -> ::windows_core::HRESULT , pub DecryptValue :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , encryptedvalue : ::windows_core::PCWSTR , decryptedvalue : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } + #[repr(transparent)] + pub struct IFabricConfigurationPackage2(::windows_core::IUnknown); + impl IFabricConfigurationPackage2 { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + (::windows_core::Interface::vtable(self) + .base__ + .get_Description)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_Path)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_Settings( + &self, + ) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { + (::windows_core::Interface::vtable(self).base__.get_Settings)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetSection( + &self, + sectionname: P0, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetSection)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValue( + &self, + sectionname: P0, + parametername: P1, + isencrypted: *mut u8, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.GetValue)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parametername.into_param().abi(), + isencrypted, + bufferedvalue, + ) + .ok() + } + pub unsafe fn DecryptValue( + &self, + encryptedvalue: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.DecryptValue)( + ::windows_core::Interface::as_raw(self), + encryptedvalue.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetValues( + &self, + sectionname: P0, + parameterprefix: P1, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValues)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parameterprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricConfigurationPackage2, + ::windows_core::IUnknown, + IFabricConfigurationPackage + ); + impl ::core::cmp::PartialEq for IFabricConfigurationPackage2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricConfigurationPackage2 {} + impl ::core::fmt::Debug for IFabricConfigurationPackage2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricConfigurationPackage2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricConfigurationPackage2 { + type Vtable = IFabricConfigurationPackage2_Vtbl; + } + impl ::core::clone::Clone for IFabricConfigurationPackage2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackage2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd3161f31_708a_4f83_91ff_f2af15f74a2f); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricConfigurationPackage2_Vtbl { + pub base__: IFabricConfigurationPackage_Vtbl, + pub GetValues: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + sectionname: ::windows_core::PCWSTR, + parameterprefix: ::windows_core::PCWSTR, + bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricConfigurationPackageChangeHandler(::windows_core::IUnknown); + impl IFabricConfigurationPackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, configpackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + configpackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageRemoved(&self, source: P0, configpackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + configpackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageModified( + &self, + source: P0, + previousconfigpackage: P1, + configpackage: P2, + ) where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previousconfigpackage.into_param().abi(), + configpackage.into_param().abi(), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricConfigurationPackageChangeHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricConfigurationPackageChangeHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricConfigurationPackageChangeHandler {} + impl ::core::fmt::Debug for IFabricConfigurationPackageChangeHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricConfigurationPackageChangeHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricConfigurationPackageChangeHandler { + type Vtable = IFabricConfigurationPackageChangeHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricConfigurationPackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricConfigurationPackageChangeHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previousconfigpackage: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ), + } + #[repr(transparent)] + pub struct IFabricDataPackage(::windows_core::IUnknown); + impl IFabricDataPackage { + pub unsafe fn get_Description( + &self, + ) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION { + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_Path)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!(IFabricDataPackage, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricDataPackage { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricDataPackage {} + impl ::core::fmt::Debug for IFabricDataPackage { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricDataPackage").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricDataPackage { + type Vtable = IFabricDataPackage_Vtbl; + } + impl ::core::clone::Clone for IFabricDataPackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricDataPackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaa67de09_3657_435f_a2f6_b3a17a0a4371); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricDataPackage_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Description: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION, + pub get_Path: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR, + } + #[repr(transparent)] + pub struct IFabricDataPackageChangeHandler(::windows_core::IUnknown); + impl IFabricDataPackageChangeHandler { + pub unsafe fn OnPackageAdded(&self, source: P0, datapackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + datapackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageRemoved(&self, source: P0, datapackage: P1) + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + datapackage.into_param().abi(), + ) + } + pub unsafe fn OnPackageModified( + &self, + source: P0, + previousdatapackage: P1, + datapackage: P2, + ) where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previousdatapackage.into_param().abi(), + datapackage.into_param().abi(), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricDataPackageChangeHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricDataPackageChangeHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricDataPackageChangeHandler {} + impl ::core::fmt::Debug for IFabricDataPackageChangeHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricDataPackageChangeHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricDataPackageChangeHandler { + type Vtable = IFabricDataPackageChangeHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricDataPackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricDataPackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8d0a726f_bd17_4b32_807b_be2a8024b2e0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricDataPackageChangeHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnPackageAdded: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ), + pub OnPackageRemoved: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ), + pub OnPackageModified: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previousdatapackage: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ), + } + #[repr(transparent)] + pub struct IFabricEseLocalStoreSettingsResult(::windows_core::IUnknown); + impl IFabricEseLocalStoreSettingsResult { + pub unsafe fn get_Settings( + &self, + ) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS { + (::windows_core::Interface::vtable(self).get_Settings)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricEseLocalStoreSettingsResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricEseLocalStoreSettingsResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricEseLocalStoreSettingsResult {} + impl ::core::fmt::Debug for IFabricEseLocalStoreSettingsResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricEseLocalStoreSettingsResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricEseLocalStoreSettingsResult { + type Vtable = IFabricEseLocalStoreSettingsResult_Vtbl; + } + impl ::core::clone::Clone for IFabricEseLocalStoreSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricEseLocalStoreSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricEseLocalStoreSettingsResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Settings: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreEnumerator(::windows_core::IUnknown); + impl IFabricKeyValueStoreEnumerator { + pub unsafe fn EnumerateByKey( + &self, + keyprefix: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + keyprefix: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreEnumerator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreEnumerator {} + impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreEnumerator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreEnumerator { + type Vtable = IFabricKeyValueStoreEnumerator_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6722b848_15bb_4528_bf54_c7bbe27b6f9a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreEnumerator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub EnumerateByKey: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateMetadataByKey: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreEnumerator2(::windows_core::IUnknown); + impl IFabricKeyValueStoreEnumerator2 { + pub unsafe fn EnumerateByKey( + &self, + keyprefix: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + keyprefix: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey2( + &self, + keyprefix: P0, + strictprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey2( + &self, + keyprefix: P0, + strictprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreEnumerator2, + ::windows_core::IUnknown, + IFabricKeyValueStoreEnumerator + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreEnumerator2 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreEnumerator2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreEnumerator2 { + type Vtable = IFabricKeyValueStoreEnumerator2_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x63dfd264_4f2b_4be6_8234_1fa200165fe9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreEnumerator_Vtbl, + pub EnumerateByKey2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateMetadataByKey2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemEnumerator(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemEnumerator { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option { + (::windows_core::Interface::vtable(self).get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemEnumerator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemEnumerator {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemEnumerator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemEnumerator { + type Vtable = IFabricKeyValueStoreItemEnumerator_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemEnumerator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub get_Current: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::core::option::Option< + IFabricKeyValueStoreItemResult, + >, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemEnumerator2(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemEnumerator2 { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option { + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemEnumerator2, + ::windows_core::IUnknown, + IFabricKeyValueStoreItemEnumerator + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemEnumerator2 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemEnumerator2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemEnumerator2 { + type Vtable = IFabricKeyValueStoreItemEnumerator2_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreItemEnumerator_Vtbl, + pub TryMoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemMetadataEnumerator(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemMetadataEnumerator { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option + { + (::windows_core::Interface::vtable(self).get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataEnumerator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataEnumerator {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemMetadataEnumerator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataEnumerator { + type Vtable = IFabricKeyValueStoreItemMetadataEnumerator_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0bc06aee_fffa_4450_9099_116a5f0e0b53); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub get_Current: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::core::option::Option< + IFabricKeyValueStoreItemMetadataResult, + >, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemMetadataEnumerator2(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemMetadataEnumerator2 { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option + { + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataEnumerator2, + ::windows_core::IUnknown, + IFabricKeyValueStoreItemMetadataEnumerator + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataEnumerator2 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemMetadataEnumerator2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataEnumerator2 { + type Vtable = IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8803d53e_dd73_40fc_a662_1bfe999419ea); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, + pub TryMoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemMetadataResult(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemMetadataResult { + pub unsafe fn get_Metadata( + &self, + ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + (::windows_core::Interface::vtable(self).get_Metadata)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemMetadataResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataResult {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemMetadataResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataResult { + type Vtable = IFabricKeyValueStoreItemMetadataResult_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x17c483a1_69e6_4bdc_a058_54fd4a1839fd); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemMetadataResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_Metadata :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_KEY_VALUE_STORE_ITEM_METADATA , } + #[repr(transparent)] + pub struct IFabricKeyValueStoreItemResult(::windows_core::IUnknown); + impl IFabricKeyValueStoreItemResult { + pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { + (::windows_core::Interface::vtable(self).get_Item)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreItemResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreItemResult {} + impl ::core::fmt::Debug for IFabricKeyValueStoreItemResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreItemResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemResult { + type Vtable = IFabricKeyValueStoreItemResult_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreItemResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreItemResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Item: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreNotification(::windows_core::IUnknown); + impl IFabricKeyValueStoreNotification { + pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { + (::windows_core::Interface::vtable(self).base__.get_Item)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN { + (::windows_core::Interface::vtable(self).IsDelete)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotification, + ::windows_core::IUnknown, + IFabricKeyValueStoreItemResult + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotification { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreNotification {} + impl ::core::fmt::Debug for IFabricKeyValueStoreNotification { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreNotification") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotification { + type Vtable = IFabricKeyValueStoreNotification_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreNotification { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotification { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcb660aa6_c51e_4f05_9526_93982b550e8f); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreNotification_Vtbl { + pub base__: IFabricKeyValueStoreItemResult_Vtbl, + pub IsDelete: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows::Win32::Foundation::BOOLEAN, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreNotificationEnumerator(::windows_core::IUnknown); + impl IFabricKeyValueStoreNotificationEnumerator { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option { + (::windows_core::Interface::vtable(self).get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn Reset(&self) { + (::windows_core::Interface::vtable(self).Reset)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotificationEnumerator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreNotificationEnumerator {} + impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreNotificationEnumerator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotificationEnumerator { + type Vtable = IFabricKeyValueStoreNotificationEnumerator_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotificationEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xef25bc08_be76_43c7_adad_20f01fba3399); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub MoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub get_Current: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::core::option::Option< + IFabricKeyValueStoreNotification, + >, + pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreNotificationEnumerator2(::windows_core::IUnknown); + impl IFabricKeyValueStoreNotificationEnumerator2 { + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + pub unsafe fn get_Current( + &self, + ) -> ::core::option::Option { + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn Reset(&self) { + (::windows_core::Interface::vtable(self).base__.Reset)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreNotificationEnumerator2, + ::windows_core::IUnknown, + IFabricKeyValueStoreNotificationEnumerator + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreNotificationEnumerator2 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreNotificationEnumerator2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotificationEnumerator2 { + type Vtable = IFabricKeyValueStoreNotificationEnumerator2_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotificationEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x55eec7c6_ae81_407a_b84c_22771d314ac7); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreNotificationEnumerator2_Vtbl { + pub base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl, + pub TryMoveNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).base__.Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), + currentepoch, + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateTransaction)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica { + type Vtable = IFabricKeyValueStoreReplica_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x97da35c4_38ed_4a2a_8f37_fbeb56382235); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica_Vtbl { + pub base__: IFabricStatefulServiceReplica_Vtbl, + pub GetCurrentEpoch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) + -> ::windows_core::HRESULT, + pub UpdateReplicatorSettings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) + -> ::windows_core::HRESULT, + pub CreateTransaction: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub Add: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + ) -> ::windows_core::HRESULT, + pub Remove: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + checksequencenumber: i64, + ) -> ::windows_core::HRESULT, + pub Update: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + ) -> ::windows_core::HRESULT, + pub Get: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub GetMetadata: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub Contains: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut u8, + ) -> ::windows_core::HRESULT, + pub Enumerate: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateByKey: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateMetadata: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateMetadataByKey: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica2(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica2 { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).base__.base__.Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), currentepoch + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .CreateTransaction)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica2, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica2 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica2 { + type Vtable = IFabricKeyValueStoreReplica2_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfef805b2_5aca_4caa_9c51_fb3bd577a792); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica2_Vtbl { + pub base__: IFabricKeyValueStoreReplica_Vtbl, + pub Backup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, + pub Restore: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, + pub CreateTransaction2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + transaction: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica3(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica3 { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Abort)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), currentepoch + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .CreateTransaction)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.base__.Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.base__.Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.base__.Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.base__.Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginBackup( + &self, + backupdirectory: P0, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: P1, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + backupoption, + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica3, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2 + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica3 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica3 { + type Vtable = IFabricKeyValueStoreReplica3_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica3_Vtbl { + pub base__: IFabricKeyValueStoreReplica2_Vtbl, + pub BeginBackup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndBackup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica4(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica4 { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Abort)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), currentepoch + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .CreateTransaction)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).base__.base__.Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginBackup( + &self, + backupdirectory: P0, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: P1, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + backupoption, + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestore( + &self, + backupdirectory: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica4, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3 + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica4 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica4 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica4") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica4 { + type Vtable = IFabricKeyValueStoreReplica4_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xff16d2f1_41a9_4c64_804a_a20bf28c04f3); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica4_Vtbl { + pub base__: IFabricKeyValueStoreReplica3_Vtbl, + pub BeginRestore: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRestore: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica5(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica5 { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Abort)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), currentepoch + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .CreateTransaction)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginBackup( + &self, + backupdirectory: P0, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: P1, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + backupoption, + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestore( + &self, + backupdirectory: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginRestore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn TryAdd( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryAdd)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryRemove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryRemove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryUpdate( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryUpdate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryGet( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryGet)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryGetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryGetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica5, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3, + IFabricKeyValueStoreReplica4 + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica5 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica5 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica5") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica5 { + type Vtable = IFabricKeyValueStoreReplica5_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x34f2da40_6227_448a_be72_c517b0d69432); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica5_Vtbl { + pub base__: IFabricKeyValueStoreReplica4_Vtbl, + pub TryAdd: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + added: *mut u8, + ) -> ::windows_core::HRESULT, + pub TryRemove: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + checksequencenumber: i64, + exists: *mut u8, + ) + -> ::windows_core::HRESULT, + pub TryUpdate: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + exists: *mut u8, + ) + -> ::windows_core::HRESULT, + pub TryGet: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub TryGetMetadata: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateByKey2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EnumerateMetadataByKey2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricKeyValueStoreReplica6(::windows_core::IUnknown); + impl IFabricKeyValueStoreReplica6 { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .base__ + .Abort)(::windows_core::Interface::as_raw(self)) + } + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), currentepoch + ) + .ok() + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn CreateTransaction( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .CreateTransaction)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn Add( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + ) + .ok() + } + pub unsafe fn Remove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Update( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + ) + .ok() + } + pub unsafe fn Get( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Contains( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Enumerate( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadata( + &self, + transaction: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey( + &self, + transaction: P0, + keyprefix: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .base__ + .EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .base__ + .CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginBackup( + &self, + backupdirectory: P0, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: P1, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + backupoption, + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRestore( + &self, + backupdirectory: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .BeginRestore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn TryAdd( + &self, + transaction: P0, + key: P1, + value: &[u8], + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryAdd)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryRemove( + &self, + transaction: P0, + key: P1, + checksequencenumber: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryRemove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + checksequencenumber, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryUpdate( + &self, + transaction: P0, + key: P1, + value: &[u8], + checksequencenumber: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryUpdate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + value.len() as _, + ::core::mem::transmute(value.as_ptr()), + checksequencenumber, + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryGet( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryGet)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn TryGetMetadata( + &self, + transaction: P0, + key: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .TryGetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EnumerateMetadataByKey2( + &self, + transaction: P0, + keyprefix: P1, + strictprefix: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateMetadataByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRestore2( + &self, + backupdirectory: P0, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestore2)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + settings, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricKeyValueStoreReplica6, + ::windows_core::IUnknown, + IFabricStatefulServiceReplica, + IFabricKeyValueStoreReplica, + IFabricKeyValueStoreReplica2, + IFabricKeyValueStoreReplica3, + IFabricKeyValueStoreReplica4, + IFabricKeyValueStoreReplica5 + ); + impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica6 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricKeyValueStoreReplica6 {} + impl ::core::fmt::Debug for IFabricKeyValueStoreReplica6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricKeyValueStoreReplica6") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica6 { + type Vtable = IFabricKeyValueStoreReplica6_Vtbl; + } + impl ::core::clone::Clone for IFabricKeyValueStoreReplica6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x56e77be1_e81f_4e42_8522_162c2d608184); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricKeyValueStoreReplica6_Vtbl { + pub base__: IFabricKeyValueStoreReplica5_Vtbl, + pub BeginRestore2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricNodeContextResult(::windows_core::IUnknown); + impl IFabricNodeContextResult { + pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { + (::windows_core::Interface::vtable(self).get_NodeContext)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNodeContextResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricNodeContextResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNodeContextResult {} + impl ::core::fmt::Debug for IFabricNodeContextResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNodeContextResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNodeContextResult { + type Vtable = IFabricNodeContextResult_Vtbl; + } + impl ::core::clone::Clone for IFabricNodeContextResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNodeContextResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNodeContextResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_NodeContext: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_NODE_CONTEXT, + } + #[repr(transparent)] + pub struct IFabricNodeContextResult2(::windows_core::IUnknown); + impl IFabricNodeContextResult2 { + pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { + (::windows_core::Interface::vtable(self) + .base__ + .get_NodeContext)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn GetDirectory( + &self, + logicaldirectoryname: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDirectory)( + ::windows_core::Interface::as_raw(self), + logicaldirectoryname.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricNodeContextResult2, + ::windows_core::IUnknown, + IFabricNodeContextResult + ); + impl ::core::cmp::PartialEq for IFabricNodeContextResult2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricNodeContextResult2 {} + impl ::core::fmt::Debug for IFabricNodeContextResult2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricNodeContextResult2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricNodeContextResult2 { + type Vtable = IFabricNodeContextResult2_Vtbl; + } + impl ::core::clone::Clone for IFabricNodeContextResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricNodeContextResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x472bf2e1_d617_4b5c_a91d_fabed9ff3550); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricNodeContextResult2_Vtbl { + pub base__: IFabricNodeContextResult_Vtbl, + pub GetDirectory: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + logicaldirectoryname: ::windows_core::PCWSTR, + directorypath: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricOperation(::windows_core::IUnknown); + impl IFabricOperation { + pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA { + (::windows_core::Interface::vtable(self).get_Metadata)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetData( + &self, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetData)( + ::windows_core::Interface::as_raw(self), + count, + buffers, + ) + .ok() + } + pub unsafe fn Acknowledge(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).Acknowledge)( + ::windows_core::Interface::as_raw(self), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!(IFabricOperation, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricOperation { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOperation {} + impl ::core::fmt::Debug for IFabricOperation { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOperation").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOperation { + type Vtable = IFabricOperation_Vtbl; + } + impl ::core::clone::Clone for IFabricOperation { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOperation { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOperation_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Metadata: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_OPERATION_METADATA, + pub GetData: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::HRESULT, + pub Acknowledge: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricOperationData(::windows_core::IUnknown); + impl IFabricOperationData { + pub unsafe fn GetData( + &self, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetData)( + ::windows_core::Interface::as_raw(self), + count, + buffers, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricOperationData, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricOperationData { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOperationData {} + impl ::core::fmt::Debug for IFabricOperationData { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOperationData") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOperationData { + type Vtable = IFabricOperationData_Vtbl; + } + impl ::core::clone::Clone for IFabricOperationData { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOperationData { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbab8ad87_37b7_482a_985d_baf38a785dcd); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOperationData_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetData: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricOperationDataStream(::windows_core::IUnknown); + impl IFabricOperationDataStream { + pub unsafe fn BeginGetNext( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNext)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetNext( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNext)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricOperationDataStream, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricOperationDataStream { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOperationDataStream {} + impl ::core::fmt::Debug for IFabricOperationDataStream { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOperationDataStream") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOperationDataStream { + type Vtable = IFabricOperationDataStream_Vtbl; + } + impl ::core::clone::Clone for IFabricOperationDataStream { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOperationDataStream { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc4e9084c_be92_49c9_8c18_d44d088c2e32); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOperationDataStream_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginGetNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetNext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operationdata: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricOperationStream(::windows_core::IUnknown); + impl IFabricOperationStream { + pub unsafe fn BeginGetOperation( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetOperation)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetOperation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricOperationStream, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricOperationStream { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOperationStream {} + impl ::core::fmt::Debug for IFabricOperationStream { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOperationStream") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOperationStream { + type Vtable = IFabricOperationStream_Vtbl; + } + impl ::core::clone::Clone for IFabricOperationStream { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOperationStream { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa98fb97a_d6b0_408a_a878_a9edb09c2587); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOperationStream_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginGetOperation: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndGetOperation: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operation: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricOperationStream2(::windows_core::IUnknown); + impl IFabricOperationStream2 { + pub unsafe fn BeginGetOperation( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginGetOperation)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndGetOperation( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricOperationStream2, + ::windows_core::IUnknown, + IFabricOperationStream + ); + impl ::core::cmp::PartialEq for IFabricOperationStream2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricOperationStream2 {} + impl ::core::fmt::Debug for IFabricOperationStream2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricOperationStream2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricOperationStream2 { + type Vtable = IFabricOperationStream2_Vtbl; + } + impl ::core::clone::Clone for IFabricOperationStream2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricOperationStream2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0930199b_590a_4065_bec9_5f93b6aae086); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricOperationStream2_Vtbl { + pub base__: IFabricOperationStream_Vtbl, + pub ReportFault: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricPrimaryReplicator(::windows_core::IUnknown); + impl IFabricPrimaryReplicator { + pub unsafe fn BeginOpen( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + epoch: *const super::super::FABRIC_EPOCH, + role: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + epoch, + role, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateEpoch( + &self, + epoch: *const super::super::FABRIC_EPOCH, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + epoch, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).base__.EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).base__.Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetCurrentProgress(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetCurrentProgress)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetCatchUpCapability(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetCatchUpCapability)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UpdateCatchUpReplicaSetConfiguration( + &self, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateCatchUpReplicaSetConfiguration)( + ::windows_core::Interface::as_raw(self), + currentconfiguration, + previousconfiguration, + ) + .ok() + } + pub unsafe fn BeginWaitForCatchUpQuorum( + &self, + catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginWaitForCatchUpQuorum)( + ::windows_core::Interface::as_raw(self), + catchupmode, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndWaitForCatchUpQuorum( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndWaitForCatchUpQuorum)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn UpdateCurrentReplicaSetConfiguration( + &self, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateCurrentReplicaSetConfiguration)( + ::windows_core::Interface::as_raw(self), + currentconfiguration, + ) + .ok() + } + pub unsafe fn BeginBuildReplica( + &self, + replica: *const super::super::FABRIC_REPLICA_INFORMATION, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginBuildReplica)( + ::windows_core::Interface::as_raw(self), + replica, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndBuildReplica(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndBuildReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveReplica(&self, replicaid: i64) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).RemoveReplica)( + ::windows_core::Interface::as_raw(self), + replicaid, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricPrimaryReplicator, + ::windows_core::IUnknown, + IFabricReplicator + ); + impl ::core::cmp::PartialEq for IFabricPrimaryReplicator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricPrimaryReplicator {} + impl ::core::fmt::Debug for IFabricPrimaryReplicator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricPrimaryReplicator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricPrimaryReplicator { + type Vtable = IFabricPrimaryReplicator_Vtbl; + } + impl ::core::clone::Clone for IFabricPrimaryReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricPrimaryReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x564e50dd_c3a4_4600_a60e_6658874307ae); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricPrimaryReplicator_Vtbl { + pub base__: IFabricReplicator_Vtbl, + pub BeginOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) + -> ::windows_core::HRESULT, + pub UpdateCatchUpReplicaSetConfiguration: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::HRESULT, + pub BeginWaitForCatchUpQuorum: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndWaitForCatchUpQuorum: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub UpdateCurrentReplicaSetConfiguration: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::HRESULT, + pub BeginBuildReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + replica: *const super::super::FABRIC_REPLICA_INFORMATION, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndBuildReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub RemoveReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + replicaid: i64, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricProcessExitHandler(::windows_core::IUnknown); + impl IFabricProcessExitHandler { + pub unsafe fn FabricProcessExited(&self) { + (::windows_core::Interface::vtable(self).FabricProcessExited)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricProcessExitHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricProcessExitHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricProcessExitHandler {} + impl ::core::fmt::Debug for IFabricProcessExitHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricProcessExitHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricProcessExitHandler { + type Vtable = IFabricProcessExitHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricProcessExitHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricProcessExitHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc58d50a2_01f0_4267_bbe7_223b565c1346); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricProcessExitHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub FabricProcessExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricReplicator(::windows_core::IUnknown); + impl IFabricReplicator { + pub unsafe fn BeginOpen( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + epoch: *const super::super::FABRIC_EPOCH, + role: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + epoch, + role, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginUpdateEpoch( + &self, + epoch: *const super::super::FABRIC_EPOCH, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + epoch, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn GetCurrentProgress(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCurrentProgress)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCatchUpCapability(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCatchUpCapability)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!(IFabricReplicator, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricReplicator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricReplicator {} + impl ::core::fmt::Debug for IFabricReplicator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricReplicator").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricReplicator { + type Vtable = IFabricReplicator_Vtbl; + } + impl ::core::clone::Clone for IFabricReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x067f144a_e5be_4f5e_a181_8b5593e20242); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricReplicator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + replicationaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginChangeRole: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + role: super::super::FABRIC_REPLICA_ROLE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndChangeRole: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginUpdateEpoch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpdateEpoch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + pub GetCurrentProgress: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + lastsequencenumber: *mut i64, + ) + -> ::windows_core::HRESULT, + pub GetCatchUpCapability: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + fromsequencenumber: *mut i64, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricReplicatorCatchupSpecificQuorum(::windows_core::IUnknown); + impl IFabricReplicatorCatchupSpecificQuorum {} + ::windows_core::imp::interface_hierarchy!( + IFabricReplicatorCatchupSpecificQuorum, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricReplicatorCatchupSpecificQuorum { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricReplicatorCatchupSpecificQuorum {} + impl ::core::fmt::Debug for IFabricReplicatorCatchupSpecificQuorum { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricReplicatorCatchupSpecificQuorum") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricReplicatorCatchupSpecificQuorum { + type Vtable = IFabricReplicatorCatchupSpecificQuorum_Vtbl; + } + impl ::core::clone::Clone for IFabricReplicatorCatchupSpecificQuorum { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricReplicatorCatchupSpecificQuorum { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaa3116fe_277d_482d_bd16_5366fa405757); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricReplicatorCatchupSpecificQuorum_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + } + #[repr(transparent)] + pub struct IFabricReplicatorSettingsResult(::windows_core::IUnknown); + impl IFabricReplicatorSettingsResult { + pub unsafe fn get_ReplicatorSettings( + &self, + ) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS { + (::windows_core::Interface::vtable(self).get_ReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricReplicatorSettingsResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricReplicatorSettingsResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricReplicatorSettingsResult {} + impl ::core::fmt::Debug for IFabricReplicatorSettingsResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricReplicatorSettingsResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricReplicatorSettingsResult { + type Vtable = IFabricReplicatorSettingsResult_Vtbl; + } + impl ::core::clone::Clone for IFabricReplicatorSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricReplicatorSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x718954f3_dc1e_4060_9806_0cbf36f71051); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricReplicatorSettingsResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ReplicatorSettings: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_REPLICATOR_SETTINGS, + } + #[repr(transparent)] + pub struct IFabricRuntime(::windows_core::IUnknown); + impl IFabricRuntime { + pub unsafe fn BeginRegisterStatelessServiceFactory( + &self, + servicetypename: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRegisterStatelessServiceFactory( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn RegisterStatelessServiceFactory( + &self, + servicetypename: P0, + factory: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).RegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginRegisterStatefulServiceFactory( + &self, + servicetypename: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRegisterStatefulServiceFactory( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn RegisterStatefulServiceFactory( + &self, + servicetypename: P0, + factory: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).RegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), + ) + .ok() + } + pub unsafe fn CreateServiceGroupFactoryBuilder( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateServiceGroupFactoryBuilder)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginRegisterServiceGroupFactory( + &self, + groupservicetype: P0, + factory: P1, + timeoutmilliseconds: u32, + callback: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + groupservicetype.into_param().abi(), + factory.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRegisterServiceGroupFactory( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndRegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn RegisterServiceGroupFactory( + &self, + groupservicetype: P0, + factory: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).RegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + groupservicetype.into_param().abi(), + factory.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!(IFabricRuntime, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricRuntime { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricRuntime {} + impl ::core::fmt::Debug for IFabricRuntime { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricRuntime").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricRuntime { + type Vtable = IFabricRuntime_Vtbl; + } + impl ::core::clone::Clone for IFabricRuntime { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricRuntime { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8e_74cd_11df_ac3e_0024811e3892); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricRuntime_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginRegisterStatelessServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRegisterStatelessServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub RegisterStatelessServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginRegisterStatefulServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRegisterStatefulServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub RegisterStatefulServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub CreateServiceGroupFactoryBuilder: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + builder: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginRegisterServiceGroupFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + groupservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub EndRegisterServiceGroupFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub RegisterServiceGroupFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + groupservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricSecondaryEventHandler(::windows_core::IUnknown); + impl IFabricSecondaryEventHandler { + pub unsafe fn OnCopyComplete( + &self, + enumerator: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnCopyComplete)( + ::windows_core::Interface::as_raw(self), + enumerator.into_param().abi(), + ) + .ok() + } + pub unsafe fn OnReplicationOperation( + &self, + enumerator: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnReplicationOperation)( + ::windows_core::Interface::as_raw(self), + enumerator.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricSecondaryEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricSecondaryEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricSecondaryEventHandler {} + impl ::core::fmt::Debug for IFabricSecondaryEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricSecondaryEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricSecondaryEventHandler { + type Vtable = IFabricSecondaryEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricSecondaryEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricSecondaryEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7d124a7d_258e_49f2_a9b0_e800406103fb); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricSecondaryEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnCopyComplete: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + enumerator: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub OnReplicationOperation: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + enumerator: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricSecurityCredentialsResult(::windows_core::IUnknown); + impl IFabricSecurityCredentialsResult { + pub unsafe fn get_SecurityCredentials( + &self, + ) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS { + (::windows_core::Interface::vtable(self).get_SecurityCredentials)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricSecurityCredentialsResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricSecurityCredentialsResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricSecurityCredentialsResult {} + impl ::core::fmt::Debug for IFabricSecurityCredentialsResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricSecurityCredentialsResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricSecurityCredentialsResult { + type Vtable = IFabricSecurityCredentialsResult_Vtbl; + } + impl ::core::clone::Clone for IFabricSecurityCredentialsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricSecurityCredentialsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x049a111d_6a30_48e9_8f69_470760d3efb9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricSecurityCredentialsResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_SecurityCredentials: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::super::FABRIC_SECURITY_CREDENTIALS, + } + #[repr(transparent)] + pub struct IFabricServiceGroupFactory(::windows_core::IUnknown); + impl IFabricServiceGroupFactory {} + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupFactory, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupFactory { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupFactory {} + impl ::core::fmt::Debug for IFabricServiceGroupFactory { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupFactory") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupFactory { + type Vtable = IFabricServiceGroupFactory_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3860d61d_1e51_4a65_b109_d93c11311657); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupFactory_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + } + #[repr(transparent)] + pub struct IFabricServiceGroupFactoryBuilder(::windows_core::IUnknown); + impl IFabricServiceGroupFactoryBuilder { + pub unsafe fn AddStatelessServiceFactory( + &self, + memberservicetype: P0, + factory: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).AddStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), + factory.into_param().abi(), + ) + .ok() + } + pub unsafe fn AddStatefulServiceFactory( + &self, + memberservicetype: P0, + factory: P1, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).AddStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), + factory.into_param().abi(), + ) + .ok() + } + pub unsafe fn RemoveServiceFactory( + &self, + memberservicetype: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).RemoveServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), + ) + .ok() + } + pub unsafe fn ToServiceGroupFactory( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).ToServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupFactoryBuilder, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupFactoryBuilder { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupFactoryBuilder {} + impl ::core::fmt::Debug for IFabricServiceGroupFactoryBuilder { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupFactoryBuilder") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupFactoryBuilder { + type Vtable = IFabricServiceGroupFactoryBuilder_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupFactoryBuilder { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupFactoryBuilder { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupFactoryBuilder_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub AddStatelessServiceFactory: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub AddStatefulServiceFactory: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub RemoveServiceFactory: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + ) + -> ::windows_core::HRESULT, + pub ToServiceGroupFactory: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + factory: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricServiceGroupPartition(::windows_core::IUnknown); + impl IFabricServiceGroupPartition { + pub unsafe fn ResolveMember( + &self, + name: *const u16, + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).ResolveMember)( + ::windows_core::Interface::as_raw(self), + name, + riid, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupPartition, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricServiceGroupPartition { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricServiceGroupPartition {} + impl ::core::fmt::Debug for IFabricServiceGroupPartition { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricServiceGroupPartition") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricServiceGroupPartition { + type Vtable = IFabricServiceGroupPartition_Vtbl; + } + impl ::core::clone::Clone for IFabricServiceGroupPartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricServiceGroupPartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2b24299a_7489_467f_8e7f_4507bff73b86); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricServiceGroupPartition_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub ResolveMember: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + name: *const u16, + riid: *const ::windows_core::GUID, + member: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStateProvider(::windows_core::IUnknown); + impl IFabricStateProvider { + pub unsafe fn BeginUpdateEpoch( + &self, + epoch: *const super::super::FABRIC_EPOCH, + previousepochlastsequencenumber: i64, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + epoch, + previousepochlastsequencenumber, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn GetLastCommittedSequenceNumber(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetLastCommittedSequenceNumber)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCopyContext( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyContext)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCopyState( + &self, + uptosequencenumber: i64, + copycontextstream: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyState)( + ::windows_core::Interface::as_raw(self), + uptosequencenumber, + copycontextstream.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStateProvider, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStateProvider { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStateProvider {} + impl ::core::fmt::Debug for IFabricStateProvider { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStateProvider") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStateProvider { + type Vtable = IFabricStateProvider_Vtbl; + } + impl ::core::clone::Clone for IFabricStateProvider { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStateProvider { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ebfec79_bd27_43f3_8be8_da38ee723951); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStateProvider_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginUpdateEpoch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + previousepochlastsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndUpdateEpoch: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub GetLastCommittedSequenceNumber: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + ) -> ::windows_core::HRESULT, + pub BeginOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) + -> ::windows_core::HRESULT, + pub GetCopyContext: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + copycontextstream: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub GetCopyState: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + uptosequencenumber: i64, + copycontextstream: *mut ::core::ffi::c_void, + copystatestream: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStateReplicator(::windows_core::IUnknown); + impl IFabricStateReplicator { + pub unsafe fn BeginReplicate( + &self, + operationdata: P0, + callback: P1, + sequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).BeginReplicate)( + ::windows_core::Interface::as_raw(self), + operationdata.into_param().abi(), + callback.into_param().abi(), + sequencenumber, + ::core::mem::transmute(context), + ) + .ok() + } + pub unsafe fn EndReplicate(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetReplicationStream( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReplicationStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCopyStream( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStateReplicator, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStateReplicator { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStateReplicator {} + impl ::core::fmt::Debug for IFabricStateReplicator { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStateReplicator") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStateReplicator { + type Vtable = IFabricStateReplicator_Vtbl; + } + impl ::core::clone::Clone for IFabricStateReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStateReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x89e9a978_c771_44f2_92e8_3bf271cabe9c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStateReplicator_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginReplicate: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + operationdata: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndReplicate: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + ) + -> ::windows_core::HRESULT, + pub GetReplicationStream: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + stream: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub GetCopyStream: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + stream: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub UpdateReplicatorSettings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStateReplicator2(::windows_core::IUnknown); + impl IFabricStateReplicator2 { + pub unsafe fn BeginReplicate( + &self, + operationdata: P0, + callback: P1, + sequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .BeginReplicate)( + ::windows_core::Interface::as_raw(self), + operationdata.into_param().abi(), + callback.into_param().abi(), + sequencenumber, + ::core::mem::transmute(context), + ) + .ok() + } + pub unsafe fn EndReplicate(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndReplicate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetReplicationStream( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetReplicationStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetCopyStream( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetCopyStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, + ) + .ok() + } + pub unsafe fn GetReplicatorSettings( + &self, + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStateReplicator2, + ::windows_core::IUnknown, + IFabricStateReplicator + ); + impl ::core::cmp::PartialEq for IFabricStateReplicator2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStateReplicator2 {} + impl ::core::fmt::Debug for IFabricStateReplicator2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStateReplicator2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStateReplicator2 { + type Vtable = IFabricStateReplicator2_Vtbl; + } + impl ::core::clone::Clone for IFabricStateReplicator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStateReplicator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4a28d542_658f_46f9_9bf4_79b7cae25c5d); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStateReplicator2_Vtbl { + pub base__: IFabricStateReplicator_Vtbl, + pub GetReplicatorSettings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + replicatorsettings: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServiceFactory(::windows_core::IUnknown); + impl IFabricStatefulServiceFactory { + pub unsafe fn CreateReplica( + &self, + servicetypename: P0, + servicename: *const u16, + initializationdata: &[u8], + partitionid: ::windows_core::GUID, + replicaid: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateReplica)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + servicename, + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + ::core::mem::transmute(partitionid), + replicaid, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServiceFactory, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatefulServiceFactory { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServiceFactory {} + impl ::core::fmt::Debug for IFabricStatefulServiceFactory { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServiceFactory") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServiceFactory { + type Vtable = IFabricStatefulServiceFactory_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServiceFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServiceFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x77ff0c6b_6780_48ec_b4b0_61989327b0f2); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServiceFactory_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub CreateReplica: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicereplica: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServicePartition(::windows_core::IUnknown); + impl IFabricStatefulServicePartition { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetReadStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReadStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetWriteStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetWriteStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn CreateReplicator( + &self, + stateprovider: P0, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut ::core::option::Option, + statereplicator: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).CreateReplicator)( + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, + ::core::mem::transmute(replicator), + ::core::mem::transmute(statereplicator), + ) + .ok() + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatefulServicePartition { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServicePartition {} + impl ::core::fmt::Debug for IFabricStatefulServicePartition { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServicePartition") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition { + type Vtable = IFabricStatefulServicePartition_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServicePartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5beccc37_8655_4f20_bd43_f50691d7cd16); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServicePartition_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetPartitionInfo: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, + ) + -> ::windows_core::HRESULT, + pub GetReadStatus: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) + -> ::windows_core::HRESULT, + pub GetWriteStatus: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) + -> ::windows_core::HRESULT, + pub CreateReplicator: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + stateprovider: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut *mut ::core::ffi::c_void, + statereplicator: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub ReportLoad: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) + -> ::windows_core::HRESULT, + pub ReportFault: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServicePartition1(::windows_core::IUnknown); + impl IFabricStatefulServicePartition1 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetReadStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetReadStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn GetWriteStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetWriteStatus)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn CreateReplicator( + &self, + stateprovider: P0, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut ::core::option::Option, + statereplicator: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .CreateReplicator)( + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, + ::core::mem::transmute(replicator), + ::core::mem::transmute(statereplicator), + ) + .ok() + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportFault)( + ::windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportMoveCost)( + ::windows_core::Interface::as_raw(self), + movecost, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition1, + ::windows_core::IUnknown, + IFabricStatefulServicePartition + ); + impl ::core::cmp::PartialEq for IFabricStatefulServicePartition1 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServicePartition1 {} + impl ::core::fmt::Debug for IFabricStatefulServicePartition1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServicePartition1") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition1 { + type Vtable = IFabricStatefulServicePartition1_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServicePartition1 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition1 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServicePartition1_Vtbl { + pub base__: IFabricStatefulServicePartition_Vtbl, + pub ReportMoveCost: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + movecost: super::super::FABRIC_MOVE_COST, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServicePartition2(::windows_core::IUnknown); + impl IFabricStatefulServicePartition2 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetReadStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetReadStatus)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetWriteStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetWriteStatus)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn CreateReplicator( + &self, + stateprovider: P0, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut ::core::option::Option, + statereplicator: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .CreateReplicator)( + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, + ::core::mem::transmute(replicator), + ::core::mem::transmute(statereplicator), + ) + .ok() + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost + ) + .ok() + } + pub unsafe fn ReportReplicaHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportReplicaHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition2, + ::windows_core::IUnknown, + IFabricStatefulServicePartition, + IFabricStatefulServicePartition1 + ); + impl ::core::cmp::PartialEq for IFabricStatefulServicePartition2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServicePartition2 {} + impl ::core::fmt::Debug for IFabricStatefulServicePartition2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServicePartition2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition2 { + type Vtable = IFabricStatefulServicePartition2_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServicePartition2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdf27b476_fa25_459f_a7d3_87d3eec9c73c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServicePartition2_Vtbl { + pub base__: IFabricStatefulServicePartition1_Vtbl, + pub ReportReplicaHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) + -> ::windows_core::HRESULT, + pub ReportPartitionHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServicePartition3(::windows_core::IUnknown); + impl IFabricStatefulServicePartition3 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetReadStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetReadStatus)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn GetWriteStatus( + &self, + ) -> ::windows_core::Result + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetWriteStatus)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn CreateReplicator( + &self, + stateprovider: P0, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut ::core::option::Option, + statereplicator: *mut ::core::option::Option, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .CreateReplicator)( + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, + ::core::mem::transmute(replicator), + ::core::mem::transmute(statereplicator), + ) + .ok() + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost + ) + .ok() + } + pub unsafe fn ReportReplicaHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportReplicaHealth)( + ::windows_core::Interface::as_raw(self), healthinfo + ) + .ok() + } + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), healthinfo + ) + .ok() + } + pub unsafe fn ReportReplicaHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportPartitionHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition3, + ::windows_core::IUnknown, + IFabricStatefulServicePartition, + IFabricStatefulServicePartition1, + IFabricStatefulServicePartition2 + ); + impl ::core::cmp::PartialEq for IFabricStatefulServicePartition3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServicePartition3 {} + impl ::core::fmt::Debug for IFabricStatefulServicePartition3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServicePartition3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition3 { + type Vtable = IFabricStatefulServicePartition3_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServicePartition3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x51f1269d_b061_4c1c_96cf_6508cece813b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServicePartition3_Vtbl { + pub base__: IFabricStatefulServicePartition2_Vtbl, + pub ReportReplicaHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + pub ReportPartitionHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatefulServiceReplica(::windows_core::IUnknown); + impl IFabricStatefulServiceReplica { + pub unsafe fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + openmode, + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + newrole, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndChangeRole( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatefulServiceReplica, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatefulServiceReplica { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatefulServiceReplica {} + impl ::core::fmt::Debug for IFabricStatefulServiceReplica { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatefulServiceReplica") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatefulServiceReplica { + type Vtable = IFabricStatefulServiceReplica_Vtbl; + } + impl ::core::clone::Clone for IFabricStatefulServiceReplica { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatefulServiceReplica { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatefulServiceReplica_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + replicator: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginChangeRole: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndChangeRole: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricStatelessServiceFactory(::windows_core::IUnknown); + impl IFabricStatelessServiceFactory { + pub unsafe fn CreateInstance( + &self, + servicetypename: P0, + servicename: *const u16, + initializationdata: &[u8], + partitionid: ::windows_core::GUID, + instanceid: i64, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateInstance)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + servicename, + initializationdata.len() as _, + ::core::mem::transmute(initializationdata.as_ptr()), + ::core::mem::transmute(partitionid), + instanceid, + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServiceFactory, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatelessServiceFactory { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServiceFactory {} + impl ::core::fmt::Debug for IFabricStatelessServiceFactory { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServiceFactory") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServiceFactory { + type Vtable = IFabricStatelessServiceFactory_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServiceFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServiceFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8f_74cd_11df_ac3e_0024811e3892); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServiceFactory_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub CreateInstance: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: ::windows_core::GUID, + instanceid: i64, + serviceinstance: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatelessServiceInstance(::windows_core::IUnknown); + impl IFabricStatelessServiceInstance { + pub unsafe fn BeginOpen( + &self, + partition: P0, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServiceInstance, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatelessServiceInstance { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServiceInstance {} + impl ::core::fmt::Debug for IFabricStatelessServiceInstance { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServiceInstance") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServiceInstance { + type Vtable = IFabricStatelessServiceInstance_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServiceInstance { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServiceInstance { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af90_74cd_11df_ac3e_0024811e3892); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServiceInstance_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + partition: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricStatelessServicePartition(::windows_core::IUnknown); + impl IFabricStatelessServicePartition { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStatelessServicePartition { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServicePartition {} + impl ::core::fmt::Debug for IFabricStatelessServicePartition { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServicePartition") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition { + type Vtable = IFabricStatelessServicePartition_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServicePartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af91_74cd_11df_ac3e_0024811e3892); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServicePartition_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetPartitionInfo: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, + ) + -> ::windows_core::HRESULT, + pub ReportLoad: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) + -> ::windows_core::HRESULT, + pub ReportFault: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatelessServicePartition1(::windows_core::IUnknown); + impl IFabricStatelessServicePartition1 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportFault)( + ::windows_core::Interface::as_raw(self), + faulttype, + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportMoveCost)( + ::windows_core::Interface::as_raw(self), + movecost, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition1, + ::windows_core::IUnknown, + IFabricStatelessServicePartition + ); + impl ::core::cmp::PartialEq for IFabricStatelessServicePartition1 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServicePartition1 {} + impl ::core::fmt::Debug for IFabricStatelessServicePartition1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServicePartition1") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition1 { + type Vtable = IFabricStatelessServicePartition1_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServicePartition1 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition1 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServicePartition1_Vtbl { + pub base__: IFabricStatelessServicePartition_Vtbl, + pub ReportMoveCost: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + movecost: super::super::FABRIC_MOVE_COST, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatelessServicePartition2(::windows_core::IUnknown); + impl IFabricStatelessServicePartition2 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost + ) + .ok() + } + pub unsafe fn ReportInstanceHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportInstanceHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition2, + ::windows_core::IUnknown, + IFabricStatelessServicePartition, + IFabricStatelessServicePartition1 + ); + impl ::core::cmp::PartialEq for IFabricStatelessServicePartition2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServicePartition2 {} + impl ::core::fmt::Debug for IFabricStatelessServicePartition2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServicePartition2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition2 { + type Vtable = IFabricStatelessServicePartition2_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServicePartition2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServicePartition2_Vtbl { + pub base__: IFabricStatelessServicePartition1_Vtbl, + pub ReportInstanceHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) + -> ::windows_core::HRESULT, + pub ReportPartitionHealth: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStatelessServicePartition3(::windows_core::IUnknown); + impl IFabricStatelessServicePartition3 { + pub unsafe fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), &mut result__ + ) + .from_abi(result__) + } + pub unsafe fn ReportLoad( + &self, + metrics: &[super::super::FABRIC_LOAD_METRIC], + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportLoad)( + ::windows_core::Interface::as_raw(self), + metrics.len() as _, + ::core::mem::transmute(metrics.as_ptr()), + ) + .ok() + } + pub unsafe fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .base__ + .ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype + ) + .ok() + } + pub unsafe fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost + ) + .ok() + } + pub unsafe fn ReportInstanceHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportInstanceHealth)( + ::windows_core::Interface::as_raw(self), healthinfo + ) + .ok() + } + pub unsafe fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), healthinfo + ) + .ok() + } + pub unsafe fn ReportInstanceHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportInstanceHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + pub unsafe fn ReportPartitionHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition3, + ::windows_core::IUnknown, + IFabricStatelessServicePartition, + IFabricStatelessServicePartition1, + IFabricStatelessServicePartition2 + ); + impl ::core::cmp::PartialEq for IFabricStatelessServicePartition3 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStatelessServicePartition3 {} + impl ::core::fmt::Debug for IFabricStatelessServicePartition3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStatelessServicePartition3") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition3 { + type Vtable = IFabricStatelessServicePartition3_Vtbl; + } + impl ::core::clone::Clone for IFabricStatelessServicePartition3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStatelessServicePartition3_Vtbl { + pub base__: IFabricStatelessServicePartition2_Vtbl, + pub ReportInstanceHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + pub ReportPartitionHealth2: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStoreEventHandler(::windows_core::IUnknown); + impl IFabricStoreEventHandler { + pub unsafe fn OnDataLoss(&self) { + (::windows_core::Interface::vtable(self).OnDataLoss)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStoreEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStoreEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStoreEventHandler {} + impl ::core::fmt::Debug for IFabricStoreEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStoreEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStoreEventHandler { + type Vtable = IFabricStoreEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricStoreEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStoreEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x220e6da4_985b_4dee_8fe9_77521b838795); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStoreEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnDataLoss: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricStoreEventHandler2(::windows_core::IUnknown); + impl IFabricStoreEventHandler2 { + pub unsafe fn OnDataLoss(&self) { + (::windows_core::Interface::vtable(self).base__.OnDataLoss)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn BeginOnDataLoss( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStoreEventHandler2, + ::windows_core::IUnknown, + IFabricStoreEventHandler + ); + impl ::core::cmp::PartialEq for IFabricStoreEventHandler2 { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStoreEventHandler2 {} + impl ::core::fmt::Debug for IFabricStoreEventHandler2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStoreEventHandler2") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStoreEventHandler2 { + type Vtable = IFabricStoreEventHandler2_Vtbl; + } + impl ::core::clone::Clone for IFabricStoreEventHandler2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStoreEventHandler2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcce4523f_614b_4d6a_98a3_1e197c0213ea); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStoreEventHandler2_Vtbl { + pub base__: IFabricStoreEventHandler_Vtbl, + pub BeginOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOnDataLoss: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStorePostBackupHandler(::windows_core::IUnknown); + impl IFabricStorePostBackupHandler { + pub unsafe fn BeginPostBackup( + &self, + info: *const super::super::FABRIC_STORE_BACKUP_INFO, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPostBackup)( + ::windows_core::Interface::as_raw(self), + info, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndPostBackup(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndPostBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStorePostBackupHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStorePostBackupHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStorePostBackupHandler {} + impl ::core::fmt::Debug for IFabricStorePostBackupHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStorePostBackupHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStorePostBackupHandler { + type Vtable = IFabricStorePostBackupHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricStorePostBackupHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStorePostBackupHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2af2e8a6_41df_4e32_9d2a_d73a711e652a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStorePostBackupHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginPostBackup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + info: *const super::super::FABRIC_STORE_BACKUP_INFO, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndPostBackup: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + status: *mut u8, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricTransaction(::windows_core::IUnknown); + impl IFabricTransaction { + pub unsafe fn get_Id(&self) -> *mut ::windows_core::GUID { + (::windows_core::Interface::vtable(self).base__.get_Id)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_IsolationLevel( + &self, + ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { + (::windows_core::Interface::vtable(self) + .base__ + .get_IsolationLevel)(::windows_core::Interface::as_raw( + self, + )) + } + pub unsafe fn BeginCommit( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCommit)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndCommit(&self, context: P0) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Rollback(&self) { + (::windows_core::Interface::vtable(self).Rollback)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransaction, + ::windows_core::IUnknown, + IFabricTransactionBase + ); + impl ::core::cmp::PartialEq for IFabricTransaction { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransaction {} + impl ::core::fmt::Debug for IFabricTransaction { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransaction").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransaction { + type Vtable = IFabricTransaction_Vtbl; + } + impl ::core::clone::Clone for IFabricTransaction { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransaction { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransaction_Vtbl { + pub base__: IFabricTransactionBase_Vtbl, + pub BeginCommit: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndCommit: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + ) + -> ::windows_core::HRESULT, + pub Rollback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricTransactionBase(::windows_core::IUnknown); + impl IFabricTransactionBase { + pub unsafe fn get_Id(&self) -> *mut ::windows_core::GUID { + (::windows_core::Interface::vtable(self).get_Id)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn get_IsolationLevel( + &self, + ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { + (::windows_core::Interface::vtable(self).get_IsolationLevel)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransactionBase, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransactionBase { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransactionBase {} + impl ::core::fmt::Debug for IFabricTransactionBase { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransactionBase") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransactionBase { + type Vtable = IFabricTransactionBase_Vtbl; + } + impl ::core::clone::Clone for IFabricTransactionBase { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransactionBase { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x32d656a1_7ad5_47b8_bd66_a2e302626b7e); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransactionBase_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_Id: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> *mut ::windows_core::GUID, + pub get_IsolationLevel: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL, + } + pub const FabricRuntime: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); + pub type FnFabricMain = ::core::option::Option< + unsafe extern "system" fn( + runtime: ::core::option::Option, + activationcontext: ::core::option::Option, + ) -> ::windows_core::HRESULT, + >; + pub trait IFabricAtomicGroupStateProvider_Impl: Sized { + fn BeginAtomicGroupCommit( + &self, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndAtomicGroupCommit( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginAtomicGroupRollback( + &self, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndAtomicGroupRollback( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUndoProgress( + &self, + fromcommitsequencenumber: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUndoProgress( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricAtomicGroupStateProvider {} + impl IFabricAtomicGroupStateProvider_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >() -> IFabricAtomicGroupStateProvider_Vtbl { + unsafe extern "system" fn BeginAtomicGroupCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + commitsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginAtomicGroupCommit( + ::core::mem::transmute_copy(&atomicgroupid), + ::core::mem::transmute_copy(&commitsequencenumber), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndAtomicGroupCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndAtomicGroupCommit(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginAtomicGroupRollback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + rollbackequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginAtomicGroupRollback( + ::core::mem::transmute_copy(&atomicgroupid), + ::core::mem::transmute_copy(&rollbackequencenumber), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndAtomicGroupRollback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndAtomicGroupRollback(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUndoProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + fromcommitsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUndoProgress( + ::core::mem::transmute_copy(&fromcommitsequencenumber), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUndoProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUndoProgress(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginAtomicGroupCommit: BeginAtomicGroupCommit::, + EndAtomicGroupCommit: EndAtomicGroupCommit::, + BeginAtomicGroupRollback: BeginAtomicGroupRollback::, + EndAtomicGroupRollback: EndAtomicGroupRollback::, + BeginUndoProgress: BeginUndoProgress::, + EndUndoProgress: EndUndoProgress::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricAtomicGroupStateReplicator_Impl: Sized { + fn CreateAtomicGroup(&self) -> ::windows_core::Result; + fn BeginReplicateAtomicGroupOperation( + &self, + atomicgroupid: i64, + operationdata: ::core::option::Option<&IFabricOperationData>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + operationsequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn EndReplicateAtomicGroupOperation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginReplicateAtomicGroupCommit( + &self, + atomicgroupid: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + commitsequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn EndReplicateAtomicGroupCommit( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginReplicateAtomicGroupRollback( + &self, + atomicgroupid: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + rollbacksequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn EndReplicateAtomicGroupRollback( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricAtomicGroupStateReplicator {} + impl IFabricAtomicGroupStateReplicator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >() -> IFabricAtomicGroupStateReplicator_Vtbl { + unsafe extern "system" fn CreateAtomicGroup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateAtomicGroup() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(atomicgroupid, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + operationdata: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + operationsequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.BeginReplicateAtomicGroupOperation( + ::core::mem::transmute_copy(&atomicgroupid), + ::windows_core::from_raw_borrowed(&operationdata), + ::windows_core::from_raw_borrowed(&callback), + ::core::mem::transmute_copy(&operationsequencenumber), + ::core::mem::transmute_copy(&context), + ) + .into() + } + unsafe extern "system" fn EndReplicateAtomicGroupOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operationsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndReplicateAtomicGroupOperation( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + operationsequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + callback: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.BeginReplicateAtomicGroupCommit( + ::core::mem::transmute_copy(&atomicgroupid), + ::windows_core::from_raw_borrowed(&callback), + ::core::mem::transmute_copy(&commitsequencenumber), + ::core::mem::transmute_copy(&context), + ) + .into() + } + unsafe extern "system" fn EndReplicateAtomicGroupCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndReplicateAtomicGroupCommit(::windows_core::from_raw_borrowed( + &context, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + commitsequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginReplicateAtomicGroupRollback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + atomicgroupid: i64, + callback: *mut ::core::ffi::c_void, + rollbacksequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.BeginReplicateAtomicGroupRollback( + ::core::mem::transmute_copy(&atomicgroupid), + ::windows_core::from_raw_borrowed(&callback), + ::core::mem::transmute_copy(&rollbacksequencenumber), + ::core::mem::transmute_copy(&context), + ) + .into() + } + unsafe extern "system" fn EndReplicateAtomicGroupRollback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAtomicGroupStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + rollbacksequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndReplicateAtomicGroupRollback( + ::windows_core::from_raw_borrowed(&context), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + rollbacksequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + CreateAtomicGroup: CreateAtomicGroup::, + BeginReplicateAtomicGroupOperation: BeginReplicateAtomicGroupOperation::< + Identity, + Impl, + OFFSET, + >, + EndReplicateAtomicGroupOperation: EndReplicateAtomicGroupOperation::< + Identity, + Impl, + OFFSET, + >, + BeginReplicateAtomicGroupCommit: BeginReplicateAtomicGroupCommit::< + Identity, + Impl, + OFFSET, + >, + EndReplicateAtomicGroupCommit: EndReplicateAtomicGroupCommit::< + Identity, + Impl, + OFFSET, + >, + BeginReplicateAtomicGroupRollback: BeginReplicateAtomicGroupRollback::< + Identity, + Impl, + OFFSET, + >, + EndReplicateAtomicGroupRollback: EndReplicateAtomicGroupRollback::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricCodePackage_Impl: Sized { + fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricCodePackage {} + impl IFabricCodePackage_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage_Impl, + const OFFSET: isize, + >() -> IFabricCodePackage_Vtbl { + unsafe extern "system" fn get_Description< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Description() + } + unsafe extern "system" fn get_Path< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Path() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + get_Path: get_Path::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricCodePackage2_Impl: Sized + IFabricCodePackage_Impl { + fn get_SetupEntryPointRunAsPolicy( + &self, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; + fn get_EntryPointRunAsPolicy( + &self, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; + } + impl ::windows_core::RuntimeName for IFabricCodePackage2 {} + impl IFabricCodePackage2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage2_Impl, + const OFFSET: isize, + >() -> IFabricCodePackage2_Vtbl { + unsafe extern "system" fn get_SetupEntryPointRunAsPolicy< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_SetupEntryPointRunAsPolicy() + } + unsafe extern "system" fn get_EntryPointRunAsPolicy< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackage2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_EntryPointRunAsPolicy() + } + Self { + base__: IFabricCodePackage_Vtbl::new::(), + get_SetupEntryPointRunAsPolicy: get_SetupEntryPointRunAsPolicy::< + Identity, + Impl, + OFFSET, + >, + get_EntryPointRunAsPolicy: get_EntryPointRunAsPolicy::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricCodePackageActivationContext_Impl: Sized { + fn get_ContextId(&self) -> ::windows_core::PCWSTR; + fn get_CodePackageName(&self) -> ::windows_core::PCWSTR; + fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR; + fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR; + fn get_LogDirectory(&self) -> ::windows_core::PCWSTR; + fn get_TempDirectory(&self) -> ::windows_core::PCWSTR; + fn get_ServiceTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST; + fn get_ServiceGroupTypes( + &self, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST; + fn get_ApplicationPrincipals( + &self, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION; + fn get_ServiceEndpointResources( + &self, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST; + fn GetServiceEndpointResource( + &self, + serviceendpointresourcename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; + fn GetCodePackageNames( + &self, + ) -> ::windows_core::Result; + fn GetConfigurationPackageNames( + &self, + ) -> ::windows_core::Result; + fn GetDataPackageNames( + &self, + ) -> ::windows_core::Result; + fn GetCodePackage( + &self, + codepackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn GetConfigurationPackage( + &self, + configpackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn GetDataPackage( + &self, + datapackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn RegisterCodePackageChangeHandler( + &self, + callback: ::core::option::Option<&IFabricCodePackageChangeHandler>, + ) -> ::windows_core::Result; + fn UnregisterCodePackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()>; + fn RegisterConfigurationPackageChangeHandler( + &self, + callback: ::core::option::Option<&IFabricConfigurationPackageChangeHandler>, + ) -> ::windows_core::Result; + fn UnregisterConfigurationPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()>; + fn RegisterDataPackageChangeHandler( + &self, + callback: ::core::option::Option<&IFabricDataPackageChangeHandler>, + ) -> ::windows_core::Result; + fn UnregisterDataPackageChangeHandler( + &self, + callbackhandle: i64, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext {} + impl IFabricCodePackageActivationContext_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext_Vtbl { + unsafe extern "system" fn get_ContextId< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ContextId() + } + unsafe extern "system" fn get_CodePackageName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_CodePackageName() + } + unsafe extern "system" fn get_CodePackageVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_CodePackageVersion() + } + unsafe extern "system" fn get_WorkDirectory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_WorkDirectory() + } + unsafe extern "system" fn get_LogDirectory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_LogDirectory() + } + unsafe extern "system" fn get_TempDirectory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_TempDirectory() + } + unsafe extern "system" fn get_ServiceTypes< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceTypes() + } + unsafe extern "system" fn get_ServiceGroupTypes< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceGroupTypes() + } + unsafe extern "system" fn get_ApplicationPrincipals< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationPrincipals() + } + unsafe extern "system" fn get_ServiceEndpointResources< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceEndpointResources() + } + unsafe extern "system" fn GetServiceEndpointResource< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + serviceendpointresourcename: ::windows_core::PCWSTR, + bufferedvalue: *mut *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetServiceEndpointResource(::core::mem::transmute( + &serviceendpointresourcename, + )) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCodePackageNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + names: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCodePackageNames() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(names, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetConfigurationPackageNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + names: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetConfigurationPackageNames() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(names, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetDataPackageNames< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + names: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetDataPackageNames() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(names, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codepackagename: ::windows_core::PCWSTR, + codepackage: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCodePackage(::core::mem::transmute(&codepackagename)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(codepackage, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetConfigurationPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + configpackagename: ::windows_core::PCWSTR, + configpackage: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .GetConfigurationPackage(::core::mem::transmute(&configpackagename)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(configpackage, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetDataPackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + datapackagename: ::windows_core::PCWSTR, + datapackage: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetDataPackage(::core::mem::transmute(&datapackagename)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(datapackage, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn RegisterCodePackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + callbackhandle: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RegisterCodePackageChangeHandler( + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UnregisterCodePackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callbackhandle: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UnregisterCodePackageChangeHandler(::core::mem::transmute_copy( + &callbackhandle, + )) + .into() + } + unsafe extern "system" fn RegisterConfigurationPackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + callbackhandle: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RegisterConfigurationPackageChangeHandler( + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UnregisterConfigurationPackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callbackhandle: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UnregisterConfigurationPackageChangeHandler( + ::core::mem::transmute_copy(&callbackhandle), + ) + .into() + } + unsafe extern "system" fn RegisterDataPackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + callbackhandle: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RegisterDataPackageChangeHandler( + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UnregisterDataPackageChangeHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callbackhandle: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UnregisterDataPackageChangeHandler(::core::mem::transmute_copy( + &callbackhandle, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ContextId: get_ContextId::, + get_CodePackageName: get_CodePackageName::, + get_CodePackageVersion: get_CodePackageVersion::, + get_WorkDirectory: get_WorkDirectory::, + get_LogDirectory: get_LogDirectory::, + get_TempDirectory: get_TempDirectory::, + get_ServiceTypes: get_ServiceTypes::, + get_ServiceGroupTypes: get_ServiceGroupTypes::, + get_ApplicationPrincipals: get_ApplicationPrincipals::< + Identity, + Impl, + OFFSET, + >, + get_ServiceEndpointResources: get_ServiceEndpointResources::< + Identity, + Impl, + OFFSET, + >, + GetServiceEndpointResource: GetServiceEndpointResource::< + Identity, + Impl, + OFFSET, + >, + GetCodePackageNames: GetCodePackageNames::, + GetConfigurationPackageNames: GetConfigurationPackageNames::< + Identity, + Impl, + OFFSET, + >, + GetDataPackageNames: GetDataPackageNames::, + GetCodePackage: GetCodePackage::, + GetConfigurationPackage: GetConfigurationPackage::, + GetDataPackage: GetDataPackage::, + RegisterCodePackageChangeHandler: RegisterCodePackageChangeHandler::< + Identity, + Impl, + OFFSET, + >, + UnregisterCodePackageChangeHandler: UnregisterCodePackageChangeHandler::< + Identity, + Impl, + OFFSET, + >, + RegisterConfigurationPackageChangeHandler: + RegisterConfigurationPackageChangeHandler::, + UnregisterConfigurationPackageChangeHandler: + UnregisterConfigurationPackageChangeHandler::, + RegisterDataPackageChangeHandler: RegisterDataPackageChangeHandler::< + Identity, + Impl, + OFFSET, + >, + UnregisterDataPackageChangeHandler: UnregisterDataPackageChangeHandler::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivationContext2_Impl: + Sized + IFabricCodePackageActivationContext_Impl + { + fn get_ApplicationName(&self) -> *mut u16; + fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR; + fn GetServiceManifestName( + &self, + ) -> ::windows_core::Result; + fn GetServiceManifestVersion( + &self, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext2 {} + impl IFabricCodePackageActivationContext2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext2_Vtbl { + unsafe extern "system" fn get_ApplicationName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut u16 { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationName() + } + unsafe extern "system" fn get_ApplicationTypeName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ApplicationTypeName() + } + unsafe extern "system" fn GetServiceManifestName< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicemanifestname: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetServiceManifestName() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + servicemanifestname, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetServiceManifestVersion< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicemanifestversion: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetServiceManifestVersion() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + servicemanifestversion, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricCodePackageActivationContext_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + get_ApplicationName: get_ApplicationName::, + get_ApplicationTypeName: get_ApplicationTypeName::, + GetServiceManifestName: GetServiceManifestName::, + GetServiceManifestVersion: GetServiceManifestVersion::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivationContext3_Impl: + Sized + IFabricCodePackageActivationContext2_Impl + { + fn ReportApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + fn ReportDeployedApplicationHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + fn ReportDeployedServicePackageHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext3 {} + impl IFabricCodePackageActivationContext3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext3_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext3_Vtbl { + unsafe extern "system" fn ReportApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportApplicationHealth(::core::mem::transmute_copy(&healthinfo)) + .into() + } + unsafe extern "system" fn ReportDeployedApplicationHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportDeployedApplicationHealth(::core::mem::transmute_copy( + &healthinfo, + )) + .into() + } + unsafe extern "system" fn ReportDeployedServicePackageHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportDeployedServicePackageHealth(::core::mem::transmute_copy( + &healthinfo, + )) + .into() + } + Self { + base__: IFabricCodePackageActivationContext2_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + ReportApplicationHealth: ReportApplicationHealth::, + ReportDeployedApplicationHealth: ReportDeployedApplicationHealth::< + Identity, + Impl, + OFFSET, + >, + ReportDeployedServicePackageHealth: ReportDeployedServicePackageHealth::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivationContext4_Impl: + Sized + IFabricCodePackageActivationContext3_Impl + { + fn ReportApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + fn ReportDeployedApplicationHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + fn ReportDeployedServicePackageHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext4 {} + impl IFabricCodePackageActivationContext4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext4_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext4_Vtbl { + unsafe extern "system" fn ReportApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportApplicationHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + unsafe extern "system" fn ReportDeployedApplicationHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportDeployedApplicationHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + unsafe extern "system" fn ReportDeployedServicePackageHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportDeployedServicePackageHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + Self { + base__: IFabricCodePackageActivationContext3_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + ReportApplicationHealth2: ReportApplicationHealth2::, + ReportDeployedApplicationHealth2: ReportDeployedApplicationHealth2::< + Identity, + Impl, + OFFSET, + >, + ReportDeployedServicePackageHealth2: ReportDeployedServicePackageHealth2::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext4 < > as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext2 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext3 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivationContext5_Impl: + Sized + IFabricCodePackageActivationContext4_Impl + { + fn get_ServiceListenAddress(&self) -> ::windows_core::PCWSTR; + fn get_ServicePublishAddress(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext5 {} + impl IFabricCodePackageActivationContext5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext5_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext5_Vtbl { + unsafe extern "system" fn get_ServiceListenAddress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServiceListenAddress() + } + unsafe extern "system" fn get_ServicePublishAddress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ServicePublishAddress() + } + Self { + base__: IFabricCodePackageActivationContext4_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + get_ServiceListenAddress: get_ServiceListenAddress::, + get_ServicePublishAddress: get_ServicePublishAddress::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext5 < > as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext2 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext3 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext4 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivationContext6_Impl: + Sized + IFabricCodePackageActivationContext5_Impl + { + fn GetDirectory( + &self, + logicaldirectoryname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext6 {} + impl IFabricCodePackageActivationContext6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext6_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivationContext6_Vtbl { + unsafe extern "system" fn GetDirectory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivationContext6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + logicaldirectoryname: ::windows_core::PCWSTR, + directorypath: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricCodePackageActivationContext5_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + GetDirectory: GetDirectory::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricCodePackageActivationContext6 < > as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext2 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext3 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext4 as::windows_core::ComInterface >::IID || iid == & < IFabricCodePackageActivationContext5 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricCodePackageActivator_Impl: Sized { + fn BeginActivateCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + environment: *const super::super::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndActivateCodePackage( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginDeactivateCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndDeactivateCodePackage( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn AbortCodePackage( + &self, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + ) -> ::windows_core::Result<()>; + fn RegisterCodePackageEventHandler( + &self, + eventhandler: ::core::option::Option<&IFabricCodePackageEventHandler>, + ) -> ::windows_core::Result; + fn UnregisterCodePackageEventHandler( + &self, + callbackhandle: u64, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricCodePackageActivator {} + impl IFabricCodePackageActivator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageActivator_Vtbl { + unsafe extern "system" fn BeginActivateCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + environment: *const super::super::FABRIC_STRING_MAP, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginActivateCodePackage( + ::core::mem::transmute_copy(&codepackagenames), + ::core::mem::transmute_copy(&environment), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndActivateCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndActivateCodePackage(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginDeactivateCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginDeactivateCodePackage( + ::core::mem::transmute_copy(&codepackagenames), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndDeactivateCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndDeactivateCodePackage(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn AbortCodePackage< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + codepackagenames: *const super::super::FABRIC_STRING_LIST, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.AbortCodePackage(::core::mem::transmute_copy(&codepackagenames)) + .into() + } + unsafe extern "system" fn RegisterCodePackageEventHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + eventhandler: *mut ::core::ffi::c_void, + callbackhandle: *mut u64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RegisterCodePackageEventHandler( + ::windows_core::from_raw_borrowed(&eventhandler), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UnregisterCodePackageEventHandler< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageActivator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callbackhandle: u64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UnregisterCodePackageEventHandler(::core::mem::transmute_copy( + &callbackhandle, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginActivateCodePackage: BeginActivateCodePackage::, + EndActivateCodePackage: EndActivateCodePackage::, + BeginDeactivateCodePackage: BeginDeactivateCodePackage::< + Identity, + Impl, + OFFSET, + >, + EndDeactivateCodePackage: EndDeactivateCodePackage::, + AbortCodePackage: AbortCodePackage::, + RegisterCodePackageEventHandler: RegisterCodePackageEventHandler::< + Identity, + Impl, + OFFSET, + >, + UnregisterCodePackageEventHandler: UnregisterCodePackageEventHandler::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricCodePackageChangeHandler_Impl: Sized { + fn OnPackageAdded( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + codepackage: ::core::option::Option<&IFabricCodePackage>, + ); + fn OnPackageRemoved( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + codepackage: ::core::option::Option<&IFabricCodePackage>, + ); + fn OnPackageModified( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previouscodepackage: ::core::option::Option<&IFabricCodePackage>, + codepackage: ::core::option::Option<&IFabricCodePackage>, + ); + } + impl ::windows_core::RuntimeName for IFabricCodePackageChangeHandler {} + impl IFabricCodePackageChangeHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageChangeHandler_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageChangeHandler_Vtbl { + unsafe extern "system" fn OnPackageAdded< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageAdded( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&codepackage), + ) + } + unsafe extern "system" fn OnPackageRemoved< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageRemoved( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&codepackage), + ) + } + unsafe extern "system" fn OnPackageModified< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previouscodepackage: *mut ::core::ffi::c_void, + codepackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageModified( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previouscodepackage), + ::windows_core::from_raw_borrowed(&codepackage), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnPackageAdded: OnPackageAdded::, + OnPackageRemoved: OnPackageRemoved::, + OnPackageModified: OnPackageModified::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricCodePackageEventHandler_Impl: Sized { + fn OnCodePackageEvent( + &self, + source: ::core::option::Option<&IFabricCodePackageActivator>, + eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ); + } + impl ::windows_core::RuntimeName for IFabricCodePackageEventHandler {} + impl IFabricCodePackageEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricCodePackageEventHandler_Vtbl { + unsafe extern "system" fn OnCodePackageEvent< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricCodePackageEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnCodePackageEvent( + ::windows_core::from_raw_borrowed(&source), + ::core::mem::transmute_copy(&eventdesc), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnCodePackageEvent: OnCodePackageEvent::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricConfigurationPackage_Impl: Sized { + fn get_Description( + &self, + ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> ::windows_core::PCWSTR; + fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS; + fn GetSection( + &self, + sectionname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION>; + fn GetValue( + &self, + sectionname: &::windows_core::PCWSTR, + parametername: &::windows_core::PCWSTR, + isencrypted: *mut u8, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn DecryptValue( + &self, + encryptedvalue: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricConfigurationPackage {} + impl IFabricConfigurationPackage_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >() -> IFabricConfigurationPackage_Vtbl { + unsafe extern "system" fn get_Description< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Description() + } + unsafe extern "system" fn get_Path< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Path() + } + unsafe extern "system" fn get_Settings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Settings() + } + unsafe extern "system" fn GetSection< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + sectionname: ::windows_core::PCWSTR, + bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_SECTION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetSection(::core::mem::transmute(§ionname)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetValue< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + sectionname: ::windows_core::PCWSTR, + parametername: ::windows_core::PCWSTR, + isencrypted: *mut u8, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetValue( + ::core::mem::transmute(§ionname), + ::core::mem::transmute(¶metername), + ::core::mem::transmute_copy(&isencrypted), + ::core::mem::transmute_copy(&bufferedvalue), + ) + .into() + } + unsafe extern "system" fn DecryptValue< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + encryptedvalue: ::windows_core::PCWSTR, + decryptedvalue: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.DecryptValue(::core::mem::transmute(&encryptedvalue)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(decryptedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + get_Path: get_Path::, + get_Settings: get_Settings::, + GetSection: GetSection::, + GetValue: GetValue::, + DecryptValue: DecryptValue::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricConfigurationPackage2_Impl: + Sized + IFabricConfigurationPackage_Impl + { + fn GetValues( + &self, + sectionname: &::windows_core::PCWSTR, + parameterprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>; + } + impl ::windows_core::RuntimeName for IFabricConfigurationPackage2 {} + impl IFabricConfigurationPackage2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage2_Impl, + const OFFSET: isize, + >() -> IFabricConfigurationPackage2_Vtbl { + unsafe extern "system" fn GetValues< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackage2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + sectionname: ::windows_core::PCWSTR, + parameterprefix: ::windows_core::PCWSTR, + bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetValues( + ::core::mem::transmute(§ionname), + ::core::mem::transmute(¶meterprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricConfigurationPackage_Vtbl::new::(), + GetValues: GetValues::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricConfigurationPackageChangeHandler_Impl: Sized { + fn OnPackageAdded( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, + ); + fn OnPackageRemoved( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, + ); + fn OnPackageModified( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previousconfigpackage: ::core::option::Option<&IFabricConfigurationPackage>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, + ); + } + impl ::windows_core::RuntimeName for IFabricConfigurationPackageChangeHandler {} + impl IFabricConfigurationPackageChangeHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackageChangeHandler_Impl, + const OFFSET: isize, + >() -> IFabricConfigurationPackageChangeHandler_Vtbl { + unsafe extern "system" fn OnPackageAdded< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageAdded( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&configpackage), + ) + } + unsafe extern "system" fn OnPackageRemoved< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageRemoved( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&configpackage), + ) + } + unsafe extern "system" fn OnPackageModified< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricConfigurationPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previousconfigpackage: *mut ::core::ffi::c_void, + configpackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageModified( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previousconfigpackage), + ::windows_core::from_raw_borrowed(&configpackage), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnPackageAdded: OnPackageAdded::, + OnPackageRemoved: OnPackageRemoved::, + OnPackageModified: OnPackageModified::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricConfigurationPackageChangeHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricDataPackage_Impl: Sized { + fn get_Description(&self) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION; + fn get_Path(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricDataPackage {} + impl IFabricDataPackage_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackage_Impl, + const OFFSET: isize, + >() -> IFabricDataPackage_Vtbl { + unsafe extern "system" fn get_Description< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Description() + } + unsafe extern "system" fn get_Path< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Path() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Description: get_Description::, + get_Path: get_Path::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricDataPackageChangeHandler_Impl: Sized { + fn OnPackageAdded( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + datapackage: ::core::option::Option<&IFabricDataPackage>, + ); + fn OnPackageRemoved( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + datapackage: ::core::option::Option<&IFabricDataPackage>, + ); + fn OnPackageModified( + &self, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previousdatapackage: ::core::option::Option<&IFabricDataPackage>, + datapackage: ::core::option::Option<&IFabricDataPackage>, + ); + } + impl ::windows_core::RuntimeName for IFabricDataPackageChangeHandler {} + impl IFabricDataPackageChangeHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackageChangeHandler_Impl, + const OFFSET: isize, + >() -> IFabricDataPackageChangeHandler_Vtbl { + unsafe extern "system" fn OnPackageAdded< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageAdded( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&datapackage), + ) + } + unsafe extern "system" fn OnPackageRemoved< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageRemoved( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&datapackage), + ) + } + unsafe extern "system" fn OnPackageModified< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricDataPackageChangeHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + source: *mut ::core::ffi::c_void, + previousdatapackage: *mut ::core::ffi::c_void, + datapackage: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnPackageModified( + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previousdatapackage), + ::windows_core::from_raw_borrowed(&datapackage), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnPackageAdded: OnPackageAdded::, + OnPackageRemoved: OnPackageRemoved::, + OnPackageModified: OnPackageModified::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricEseLocalStoreSettingsResult_Impl: Sized { + fn get_Settings(&self) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS; + } + impl ::windows_core::RuntimeName for IFabricEseLocalStoreSettingsResult {} + impl IFabricEseLocalStoreSettingsResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricEseLocalStoreSettingsResult_Impl, + const OFFSET: isize, + >() -> IFabricEseLocalStoreSettingsResult_Vtbl { + unsafe extern "system" fn get_Settings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricEseLocalStoreSettingsResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Settings() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Settings: get_Settings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricEseLocalStoreSettingsResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreEnumerator_Impl: Sized { + fn EnumerateByKey( + &self, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn EnumerateMetadataByKey( + &self, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreEnumerator {} + impl IFabricKeyValueStoreEnumerator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreEnumerator_Vtbl { + unsafe extern "system" fn EnumerateByKey< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateByKey(::core::mem::transmute(&keyprefix)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateMetadataByKey< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateMetadataByKey(::core::mem::transmute(&keyprefix)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + EnumerateByKey: EnumerateByKey::, + EnumerateMetadataByKey: EnumerateMetadataByKey::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricKeyValueStoreEnumerator2_Impl: + Sized + IFabricKeyValueStoreEnumerator_Impl + { + fn EnumerateByKey2( + &self, + keyprefix: &::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + ) -> ::windows_core::Result; + fn EnumerateMetadataByKey2( + &self, + keyprefix: &::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} + impl IFabricKeyValueStoreEnumerator2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator2_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreEnumerator2_Vtbl { + unsafe extern "system" fn EnumerateByKey2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateByKey2( + ::core::mem::transmute(&keyprefix), + ::core::mem::transmute_copy(&strictprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateMetadataByKey2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreEnumerator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateMetadataByKey2( + ::core::mem::transmute(&keyprefix), + ::core::mem::transmute_copy(&strictprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreEnumerator_Vtbl::new::( + ), + EnumerateByKey2: EnumerateByKey2::, + EnumerateMetadataByKey2: EnumerateMetadataByKey2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreEnumerator as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemEnumerator_Impl: Sized { + fn MoveNext(&self) -> ::windows_core::Result<()>; + fn get_Current(&self) -> ::core::option::Option; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} + impl IFabricKeyValueStoreItemEnumerator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemEnumerator_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemEnumerator_Vtbl { + unsafe extern "system" fn MoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.MoveNext().into() + } + unsafe extern "system" fn get_Current< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::core::option::Option + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Current() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + MoveNext: MoveNext::, + get_Current: get_Current::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemEnumerator < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemEnumerator2_Impl: + Sized + IFabricKeyValueStoreItemEnumerator_Impl + { + fn TryMoveNext(&self) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} + impl IFabricKeyValueStoreItemEnumerator2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemEnumerator2_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemEnumerator2_Vtbl { + unsafe extern "system" fn TryMoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemEnumerator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryMoveNext() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(success, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreItemEnumerator_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + TryMoveNext: TryMoveNext::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreItemEnumerator as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemMetadataEnumerator_Impl: Sized { + fn MoveNext(&self) -> ::windows_core::Result<()>; + fn get_Current( + &self, + ) -> ::core::option::Option; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} + impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { + unsafe extern "system" fn MoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.MoveNext().into() + } + unsafe extern "system" fn get_Current< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::core::option::Option + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Current() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + MoveNext: MoveNext::, + get_Current: get_Current::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemMetadataEnumerator < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemMetadataEnumerator2_Impl: + Sized + IFabricKeyValueStoreItemMetadataEnumerator_Impl + { + fn TryMoveNext(&self) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} + impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { + unsafe extern "system" fn TryMoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryMoveNext() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(success, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + TryMoveNext: TryMoveNext::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemMetadataEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreItemMetadataEnumerator as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemMetadataResult_Impl: Sized { + fn get_Metadata(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} + impl IFabricKeyValueStoreItemMetadataResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataResult_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemMetadataResult_Vtbl { + unsafe extern "system" fn get_Metadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemMetadataResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Metadata() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Metadata: get_Metadata::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemMetadataResult < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreItemResult_Impl: Sized { + fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemResult {} + impl IFabricKeyValueStoreItemResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemResult_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreItemResult_Vtbl { + unsafe extern "system" fn get_Item< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreItemResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Item() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Item: get_Item::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricKeyValueStoreNotification_Impl: + Sized + IFabricKeyValueStoreItemResult_Impl + { + fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotification {} + impl IFabricKeyValueStoreNotification_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotification_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreNotification_Vtbl { + unsafe extern "system" fn IsDelete< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotification_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows::Win32::Foundation::BOOLEAN { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.IsDelete() + } + Self { + base__: IFabricKeyValueStoreItemResult_Vtbl::new::( + ), + IsDelete: IsDelete::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreNotification < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreItemResult as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreNotificationEnumerator_Impl: Sized { + fn MoveNext(&self) -> ::windows_core::Result<()>; + fn get_Current(&self) -> ::core::option::Option; + fn Reset(&self); + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} + impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreNotificationEnumerator_Vtbl { + unsafe extern "system" fn MoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.MoveNext().into() + } + unsafe extern "system" fn get_Current< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::core::option::Option + { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Current() + } + unsafe extern "system" fn Reset< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Reset() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + MoveNext: MoveNext::, + get_Current: get_Current::, + Reset: Reset::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreNotificationEnumerator < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreNotificationEnumerator2_Impl: + Sized + IFabricKeyValueStoreNotificationEnumerator_Impl + { + fn TryMoveNext(&self) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} + impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreNotificationEnumerator2_Vtbl { + unsafe extern "system" fn TryMoveNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + success: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryMoveNext() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(success, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl::new::< + Identity, + Impl, + OFFSET, + >(), + TryMoveNext: TryMoveNext::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreNotificationEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreNotificationEnumerator as::windows_core::ComInterface >::IID + } + } + pub trait IFabricKeyValueStoreReplica_Impl: + Sized + IFabricStatefulServiceReplica_Impl + { + fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()>; + fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()>; + fn CreateTransaction(&self) -> ::windows_core::Result; + fn Add( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + ) -> ::windows_core::Result<()>; + fn Remove( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + checksequencenumber: i64, + ) -> ::windows_core::Result<()>; + fn Update( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + ) -> ::windows_core::Result<()>; + fn Get( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn GetMetadata( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn Contains( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn Enumerate( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + ) -> ::windows_core::Result; + fn EnumerateByKey( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn EnumerateMetadata( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + ) -> ::windows_core::Result; + fn EnumerateMetadataByKey( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica {} + impl IFabricKeyValueStoreReplica_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica_Vtbl { + unsafe extern "system" fn GetCurrentEpoch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetCurrentEpoch(::core::mem::transmute_copy(¤tepoch)) + .into() + } + unsafe extern "system" fn UpdateReplicatorSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UpdateReplicatorSettings(::core::mem::transmute_copy( + &replicatorsettings, + )) + .into() + } + unsafe extern "system" fn CreateTransaction< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateTransaction() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Add< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Add( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&valuesizeinbytes), + ::core::mem::transmute_copy(&value), + ) + .into() + } + unsafe extern "system" fn Remove< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + checksequencenumber: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Remove( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&checksequencenumber), + ) + .into() + } + unsafe extern "system" fn Update< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Update( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&valuesizeinbytes), + ::core::mem::transmute_copy(&value), + ::core::mem::transmute_copy(&checksequencenumber), + ) + .into() + } + unsafe extern "system" fn Get< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Get( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetMetadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetMetadata( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Contains< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Contains( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Enumerate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Enumerate(::windows_core::from_raw_borrowed(&transaction)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateByKey< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateByKey( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&keyprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateMetadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this + .EnumerateMetadata(::windows_core::from_raw_borrowed(&transaction)) + { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateMetadataByKey< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateMetadataByKey( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&keyprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricStatefulServiceReplica_Vtbl::new::(), + GetCurrentEpoch: GetCurrentEpoch::, + UpdateReplicatorSettings: UpdateReplicatorSettings::, + CreateTransaction: CreateTransaction::, + Add: Add::, + Remove: Remove::, + Update: Update::, + Get: Get::, + GetMetadata: GetMetadata::, + Contains: Contains::, + Enumerate: Enumerate::, + EnumerateByKey: EnumerateByKey::, + EnumerateMetadata: EnumerateMetadata::, + EnumerateMetadataByKey: EnumerateMetadataByKey::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + } + } + pub trait IFabricKeyValueStoreReplica2_Impl: + Sized + IFabricKeyValueStoreReplica_Impl + { + fn Backup( + &self, + backupdirectory: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn Restore( + &self, + backupdirectory: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn CreateTransaction2( + &self, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica2 {} + impl IFabricKeyValueStoreReplica2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica2_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica2_Vtbl { + unsafe extern "system" fn Backup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Backup(::core::mem::transmute(&backupdirectory)).into() + } + unsafe extern "system" fn Restore< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Restore(::core::mem::transmute(&backupdirectory)) + .into() + } + unsafe extern "system" fn CreateTransaction2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, + transaction: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateTransaction2(::core::mem::transmute_copy(&settings)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreReplica_Vtbl::new::(), + Backup: Backup::, + Restore: Restore::, + CreateTransaction2: CreateTransaction2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricKeyValueStoreReplica3_Impl: + Sized + IFabricKeyValueStoreReplica2_Impl + { + fn BeginBackup( + &self, + backupdirectory: &::windows_core::PCWSTR, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: ::core::option::Option<&IFabricStorePostBackupHandler>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndBackup( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica3 {} + impl IFabricKeyValueStoreReplica3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica3_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica3_Vtbl { + unsafe extern "system" fn BeginBackup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, + postbackuphandler: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginBackup( + ::core::mem::transmute(&backupdirectory), + ::core::mem::transmute_copy(&backupoption), + ::windows_core::from_raw_borrowed(&postbackuphandler), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndBackup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndBackup(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricKeyValueStoreReplica2_Vtbl::new::(), + BeginBackup: BeginBackup::, + EndBackup: EndBackup::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricKeyValueStoreReplica4_Impl: + Sized + IFabricKeyValueStoreReplica3_Impl + { + fn BeginRestore( + &self, + backupdirectory: &::windows_core::PCWSTR, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRestore( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica4 {} + impl IFabricKeyValueStoreReplica4_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica4_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica4_Vtbl { + unsafe extern "system" fn BeginRestore< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestore( + ::core::mem::transmute(&backupdirectory), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRestore< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica4_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRestore(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: IFabricKeyValueStoreReplica3_Vtbl::new::(), + BeginRestore: BeginRestore::, + EndRestore: EndRestore::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricKeyValueStoreReplica5_Impl: + Sized + IFabricKeyValueStoreReplica4_Impl + { + fn TryAdd( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + ) -> ::windows_core::Result; + fn TryRemove( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + checksequencenumber: i64, + ) -> ::windows_core::Result; + fn TryUpdate( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + ) -> ::windows_core::Result; + fn TryGet( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn TryGetMetadata( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + fn EnumerateByKey2( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + ) -> ::windows_core::Result; + fn EnumerateMetadataByKey2( + &self, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica5 {} + impl IFabricKeyValueStoreReplica5_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica5_Vtbl { + unsafe extern "system" fn TryAdd< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + added: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryAdd( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&valuesizeinbytes), + ::core::mem::transmute_copy(&value), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(added, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn TryRemove< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + checksequencenumber: i64, + exists: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryRemove( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&checksequencenumber), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(exists, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn TryUpdate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + valuesizeinbytes: i32, + value: *const u8, + checksequencenumber: i64, + exists: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryUpdate( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ::core::mem::transmute_copy(&valuesizeinbytes), + ::core::mem::transmute_copy(&value), + ::core::mem::transmute_copy(&checksequencenumber), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(exists, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn TryGet< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryGet( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn TryGetMetadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + key: ::windows_core::PCWSTR, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.TryGetMetadata( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&key), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateByKey2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateByKey2( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&keyprefix), + ::core::mem::transmute_copy(&strictprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EnumerateMetadataByKey2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica5_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + transaction: *mut ::core::ffi::c_void, + keyprefix: ::windows_core::PCWSTR, + strictprefix: ::windows::Win32::Foundation::BOOLEAN, + result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EnumerateMetadataByKey2( + ::windows_core::from_raw_borrowed(&transaction), + ::core::mem::transmute(&keyprefix), + ::core::mem::transmute_copy(&strictprefix), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(result, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreReplica4_Vtbl::new::(), + TryAdd: TryAdd::, + TryRemove: TryRemove::, + TryUpdate: TryUpdate::, + TryGet: TryGet::, + TryGetMetadata: TryGetMetadata::, + EnumerateByKey2: EnumerateByKey2::, + EnumerateMetadataByKey2: EnumerateMetadataByKey2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricKeyValueStoreReplica6_Impl: + Sized + IFabricKeyValueStoreReplica5_Impl + { + fn BeginRestore2( + &self, + backupdirectory: &::windows_core::PCWSTR, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica6 {} + impl IFabricKeyValueStoreReplica6_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica6_Impl, + const OFFSET: isize, + >() -> IFabricKeyValueStoreReplica6_Vtbl { + unsafe extern "system" fn BeginRestore2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricKeyValueStoreReplica6_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + backupdirectory: ::windows_core::PCWSTR, + settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRestore2( + ::core::mem::transmute(&backupdirectory), + ::core::mem::transmute_copy(&settings), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricKeyValueStoreReplica5_Vtbl::new::(), + BeginRestore2: BeginRestore2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + || iid + == &::IID + } + } + pub trait IFabricNodeContextResult_Impl: Sized { + fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT; + } + impl ::windows_core::RuntimeName for IFabricNodeContextResult {} + impl IFabricNodeContextResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeContextResult_Impl, + const OFFSET: isize, + >() -> IFabricNodeContextResult_Vtbl { + unsafe extern "system" fn get_NodeContext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeContextResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_NODE_CONTEXT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_NodeContext() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_NodeContext: get_NodeContext::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricNodeContextResult2_Impl: + Sized + IFabricNodeContextResult_Impl + { + fn GetDirectory( + &self, + logicaldirectoryname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricNodeContextResult2 {} + impl IFabricNodeContextResult2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeContextResult2_Impl, + const OFFSET: isize, + >() -> IFabricNodeContextResult2_Vtbl { + unsafe extern "system" fn GetDirectory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricNodeContextResult2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + logicaldirectoryname: ::windows_core::PCWSTR, + directorypath: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricNodeContextResult_Vtbl::new::(), + GetDirectory: GetDirectory::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricOperation_Impl: Sized { + fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA; + fn GetData( + &self, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::Result<()>; + fn Acknowledge(&self) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricOperation {} + impl IFabricOperation_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperation_Impl, + const OFFSET: isize, + >() -> IFabricOperation_Vtbl { + unsafe extern "system" fn get_Metadata< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperation_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_OPERATION_METADATA { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Metadata() + } + unsafe extern "system" fn GetData< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperation_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetData( + ::core::mem::transmute_copy(&count), + ::core::mem::transmute_copy(&buffers), + ) + .into() + } + unsafe extern "system" fn Acknowledge< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperation_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Acknowledge().into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Metadata: get_Metadata::, + GetData: GetData::, + Acknowledge: Acknowledge::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricOperationData_Impl: Sized { + fn GetData( + &self, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricOperationData {} + impl IFabricOperationData_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationData_Impl, + const OFFSET: isize, + >() -> IFabricOperationData_Vtbl { + unsafe extern "system" fn GetData< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationData_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + count: *mut u32, + buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetData( + ::core::mem::transmute_copy(&count), + ::core::mem::transmute_copy(&buffers), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetData: GetData::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricOperationDataStream_Impl: Sized { + fn BeginGetNext( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetNext( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricOperationDataStream {} + impl IFabricOperationDataStream_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationDataStream_Impl, + const OFFSET: isize, + >() -> IFabricOperationDataStream_Vtbl { + unsafe extern "system" fn BeginGetNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationDataStream_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetNext(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetNext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationDataStream_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operationdata: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetNext(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(operationdata, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginGetNext: BeginGetNext::, + EndGetNext: EndGetNext::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricOperationStream_Impl: Sized { + fn BeginGetOperation( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndGetOperation( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricOperationStream {} + impl IFabricOperationStream_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationStream_Impl, + const OFFSET: isize, + >() -> IFabricOperationStream_Vtbl { + unsafe extern "system" fn BeginGetOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationStream_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginGetOperation(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndGetOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationStream_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + operation: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndGetOperation(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(operation, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginGetOperation: BeginGetOperation::, + EndGetOperation: EndGetOperation::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricOperationStream2_Impl: Sized + IFabricOperationStream_Impl { + fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricOperationStream2 {} + impl IFabricOperationStream2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationStream2_Impl, + const OFFSET: isize, + >() -> IFabricOperationStream2_Vtbl { + unsafe extern "system" fn ReportFault< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricOperationStream2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportFault(::core::mem::transmute_copy(&faulttype)) + .into() + } + Self { + base__: IFabricOperationStream_Vtbl::new::(), + ReportFault: ReportFault::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { + fn BeginOnDataLoss( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOnDataLoss( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn UpdateCatchUpReplicaSetConfiguration( + &self, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::Result<()>; + fn BeginWaitForCatchUpQuorum( + &self, + catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndWaitForCatchUpQuorum( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn UpdateCurrentReplicaSetConfiguration( + &self, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::Result<()>; + fn BeginBuildReplica( + &self, + replica: *const super::super::FABRIC_REPLICA_INFORMATION, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndBuildReplica( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn RemoveReplica(&self, replicaid: i64) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricPrimaryReplicator {} + impl IFabricPrimaryReplicator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >() -> IFabricPrimaryReplicator_Vtbl { + unsafe extern "system" fn BeginOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UpdateCatchUpReplicaSetConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + previousconfiguration : *const super::super:: FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UpdateCatchUpReplicaSetConfiguration( + ::core::mem::transmute_copy(¤tconfiguration), + ::core::mem::transmute_copy(&previousconfiguration), + ) + .into() + } + unsafe extern "system" fn BeginWaitForCatchUpQuorum< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginWaitForCatchUpQuorum( + ::core::mem::transmute_copy(&catchupmode), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndWaitForCatchUpQuorum< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndWaitForCatchUpQuorum(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn UpdateCurrentReplicaSetConfiguration< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UpdateCurrentReplicaSetConfiguration(::core::mem::transmute_copy( + ¤tconfiguration, + )) + .into() + } + unsafe extern "system" fn BeginBuildReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + replica: *const super::super::FABRIC_REPLICA_INFORMATION, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginBuildReplica( + ::core::mem::transmute_copy(&replica), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndBuildReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndBuildReplica(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn RemoveReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricPrimaryReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + replicaid: i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RemoveReplica(::core::mem::transmute_copy(&replicaid)) + .into() + } + Self { + base__: IFabricReplicator_Vtbl::new::(), + BeginOnDataLoss: BeginOnDataLoss::, + EndOnDataLoss: EndOnDataLoss::, + UpdateCatchUpReplicaSetConfiguration: UpdateCatchUpReplicaSetConfiguration::< + Identity, + Impl, + OFFSET, + >, + BeginWaitForCatchUpQuorum: BeginWaitForCatchUpQuorum::< + Identity, + Impl, + OFFSET, + >, + EndWaitForCatchUpQuorum: EndWaitForCatchUpQuorum::, + UpdateCurrentReplicaSetConfiguration: UpdateCurrentReplicaSetConfiguration::< + Identity, + Impl, + OFFSET, + >, + BeginBuildReplica: BeginBuildReplica::, + EndBuildReplica: EndBuildReplica::, + RemoveReplica: RemoveReplica::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricProcessExitHandler_Impl: Sized { + fn FabricProcessExited(&self); + } + impl ::windows_core::RuntimeName for IFabricProcessExitHandler {} + impl IFabricProcessExitHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricProcessExitHandler_Impl, + const OFFSET: isize, + >() -> IFabricProcessExitHandler_Vtbl { + unsafe extern "system" fn FabricProcessExited< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricProcessExitHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.FabricProcessExited() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + FabricProcessExited: FabricProcessExited::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricReplicator_Impl: Sized { + fn BeginOpen( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOpen( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginChangeRole( + &self, + epoch: *const super::super::FABRIC_EPOCH, + role: super::super::FABRIC_REPLICA_ROLE, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndChangeRole( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginUpdateEpoch( + &self, + epoch: *const super::super::FABRIC_EPOCH, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateEpoch( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginClose( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndClose( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn Abort(&self); + fn GetCurrentProgress(&self) -> ::windows_core::Result; + fn GetCatchUpCapability(&self) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricReplicator {} + impl IFabricReplicator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >() -> IFabricReplicator_Vtbl { + unsafe extern "system" fn BeginOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOpen(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + replicationaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + replicationaddress, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginChangeRole< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + role: super::super::FABRIC_REPLICA_ROLE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginChangeRole( + ::core::mem::transmute_copy(&epoch), + ::core::mem::transmute_copy(&role), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndChangeRole< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndChangeRole(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginUpdateEpoch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateEpoch( + ::core::mem::transmute_copy(&epoch), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateEpoch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateEpoch(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn Abort< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Abort() + } + unsafe extern "system" fn GetCurrentProgress< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + lastsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCurrentProgress() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + lastsequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCatchUpCapability< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + fromsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCatchUpCapability() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + fromsequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginChangeRole: BeginChangeRole::, + EndChangeRole: EndChangeRole::, + BeginUpdateEpoch: BeginUpdateEpoch::, + EndUpdateEpoch: EndUpdateEpoch::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + GetCurrentProgress: GetCurrentProgress::, + GetCatchUpCapability: GetCatchUpCapability::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricReplicatorCatchupSpecificQuorum_Impl: Sized {} + impl ::windows_core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} + impl IFabricReplicatorCatchupSpecificQuorum_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicatorCatchupSpecificQuorum_Impl, + const OFFSET: isize, + >() -> IFabricReplicatorCatchupSpecificQuorum_Vtbl { + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricReplicatorCatchupSpecificQuorum < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricReplicatorSettingsResult_Impl: Sized { + fn get_ReplicatorSettings(&self) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS; + } + impl ::windows_core::RuntimeName for IFabricReplicatorSettingsResult {} + impl IFabricReplicatorSettingsResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicatorSettingsResult_Impl, + const OFFSET: isize, + >() -> IFabricReplicatorSettingsResult_Vtbl { + unsafe extern "system" fn get_ReplicatorSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricReplicatorSettingsResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicatorSettings() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicatorSettings: get_ReplicatorSettings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricRuntime_Impl: Sized { + fn BeginRegisterStatelessServiceFactory( + &self, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRegisterStatelessServiceFactory( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn RegisterStatelessServiceFactory( + &self, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, + ) -> ::windows_core::Result<()>; + fn BeginRegisterStatefulServiceFactory( + &self, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRegisterStatefulServiceFactory( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn RegisterStatefulServiceFactory( + &self, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, + ) -> ::windows_core::Result<()>; + fn CreateServiceGroupFactoryBuilder( + &self, + ) -> ::windows_core::Result; + fn BeginRegisterServiceGroupFactory( + &self, + groupservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricServiceGroupFactory>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRegisterServiceGroupFactory( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn RegisterServiceGroupFactory( + &self, + groupservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricServiceGroupFactory>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricRuntime {} + impl IFabricRuntime_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >() -> IFabricRuntime_Vtbl { + unsafe extern "system" fn BeginRegisterStatelessServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRegisterStatelessServiceFactory( + ::core::mem::transmute(&servicetypename), + ::windows_core::from_raw_borrowed(&factory), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRegisterStatelessServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRegisterStatelessServiceFactory(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn RegisterStatelessServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RegisterStatelessServiceFactory( + ::core::mem::transmute(&servicetypename), + ::windows_core::from_raw_borrowed(&factory), + ) + .into() + } + unsafe extern "system" fn BeginRegisterStatefulServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRegisterStatefulServiceFactory( + ::core::mem::transmute(&servicetypename), + ::windows_core::from_raw_borrowed(&factory), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRegisterStatefulServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRegisterStatefulServiceFactory(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn RegisterStatefulServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RegisterStatefulServiceFactory( + ::core::mem::transmute(&servicetypename), + ::windows_core::from_raw_borrowed(&factory), + ) + .into() + } + unsafe extern "system" fn CreateServiceGroupFactoryBuilder< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + builder: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateServiceGroupFactoryBuilder() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(builder, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginRegisterServiceGroupFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + groupservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRegisterServiceGroupFactory( + ::core::mem::transmute(&groupservicetype), + ::windows_core::from_raw_borrowed(&factory), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRegisterServiceGroupFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndRegisterServiceGroupFactory(::windows_core::from_raw_borrowed( + &context, + )) + .into() + } + unsafe extern "system" fn RegisterServiceGroupFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricRuntime_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + groupservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RegisterServiceGroupFactory( + ::core::mem::transmute(&groupservicetype), + ::windows_core::from_raw_borrowed(&factory), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginRegisterStatelessServiceFactory: BeginRegisterStatelessServiceFactory::< + Identity, + Impl, + OFFSET, + >, + EndRegisterStatelessServiceFactory: EndRegisterStatelessServiceFactory::< + Identity, + Impl, + OFFSET, + >, + RegisterStatelessServiceFactory: RegisterStatelessServiceFactory::< + Identity, + Impl, + OFFSET, + >, + BeginRegisterStatefulServiceFactory: BeginRegisterStatefulServiceFactory::< + Identity, + Impl, + OFFSET, + >, + EndRegisterStatefulServiceFactory: EndRegisterStatefulServiceFactory::< + Identity, + Impl, + OFFSET, + >, + RegisterStatefulServiceFactory: RegisterStatefulServiceFactory::< + Identity, + Impl, + OFFSET, + >, + CreateServiceGroupFactoryBuilder: CreateServiceGroupFactoryBuilder::< + Identity, + Impl, + OFFSET, + >, + BeginRegisterServiceGroupFactory: BeginRegisterServiceGroupFactory::< + Identity, + Impl, + OFFSET, + >, + EndRegisterServiceGroupFactory: EndRegisterServiceGroupFactory::< + Identity, + Impl, + OFFSET, + >, + RegisterServiceGroupFactory: RegisterServiceGroupFactory::< + Identity, + Impl, + OFFSET, + >, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricSecondaryEventHandler_Impl: Sized { + fn OnCopyComplete( + &self, + enumerator: ::core::option::Option<&IFabricKeyValueStoreEnumerator>, + ) -> ::windows_core::Result<()>; + fn OnReplicationOperation( + &self, + enumerator: ::core::option::Option<&IFabricKeyValueStoreNotificationEnumerator>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricSecondaryEventHandler {} + impl IFabricSecondaryEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecondaryEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricSecondaryEventHandler_Vtbl { + unsafe extern "system" fn OnCopyComplete< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecondaryEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + enumerator: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnCopyComplete(::windows_core::from_raw_borrowed(&enumerator)) + .into() + } + unsafe extern "system" fn OnReplicationOperation< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecondaryEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + enumerator: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnReplicationOperation(::windows_core::from_raw_borrowed(&enumerator)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnCopyComplete: OnCopyComplete::, + OnReplicationOperation: OnReplicationOperation::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricSecurityCredentialsResult_Impl: Sized { + fn get_SecurityCredentials(&self) + -> *mut super::super::FABRIC_SECURITY_CREDENTIALS; + } + impl ::windows_core::RuntimeName for IFabricSecurityCredentialsResult {} + impl IFabricSecurityCredentialsResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecurityCredentialsResult_Impl, + const OFFSET: isize, + >() -> IFabricSecurityCredentialsResult_Vtbl { + unsafe extern "system" fn get_SecurityCredentials< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricSecurityCredentialsResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_SecurityCredentials() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_SecurityCredentials: get_SecurityCredentials::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceGroupFactory_Impl: Sized {} + impl ::windows_core::RuntimeName for IFabricServiceGroupFactory {} + impl IFabricServiceGroupFactory_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactory_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupFactory_Vtbl { + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceGroupFactoryBuilder_Impl: Sized { + fn AddStatelessServiceFactory( + &self, + memberservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, + ) -> ::windows_core::Result<()>; + fn AddStatefulServiceFactory( + &self, + memberservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, + ) -> ::windows_core::Result<()>; + fn RemoveServiceFactory( + &self, + memberservicetype: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn ToServiceGroupFactory( + &self, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupFactoryBuilder {} + impl IFabricServiceGroupFactoryBuilder_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactoryBuilder_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupFactoryBuilder_Vtbl { + unsafe extern "system" fn AddStatelessServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactoryBuilder_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.AddStatelessServiceFactory( + ::core::mem::transmute(&memberservicetype), + ::windows_core::from_raw_borrowed(&factory), + ) + .into() + } + unsafe extern "system" fn AddStatefulServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactoryBuilder_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + factory: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.AddStatefulServiceFactory( + ::core::mem::transmute(&memberservicetype), + ::windows_core::from_raw_borrowed(&factory), + ) + .into() + } + unsafe extern "system" fn RemoveServiceFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactoryBuilder_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + memberservicetype: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.RemoveServiceFactory(::core::mem::transmute(&memberservicetype)) + .into() + } + unsafe extern "system" fn ToServiceGroupFactory< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupFactoryBuilder_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + factory: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.ToServiceGroupFactory() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(factory, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + AddStatelessServiceFactory: AddStatelessServiceFactory::< + Identity, + Impl, + OFFSET, + >, + AddStatefulServiceFactory: AddStatefulServiceFactory::< + Identity, + Impl, + OFFSET, + >, + RemoveServiceFactory: RemoveServiceFactory::, + ToServiceGroupFactory: ToServiceGroupFactory::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricServiceGroupPartition_Impl: Sized { + fn ResolveMember( + &self, + name: *const u16, + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void>; + } + impl ::windows_core::RuntimeName for IFabricServiceGroupPartition {} + impl IFabricServiceGroupPartition_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupPartition_Impl, + const OFFSET: isize, + >() -> IFabricServiceGroupPartition_Vtbl { + unsafe extern "system" fn ResolveMember< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricServiceGroupPartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + name: *const u16, + riid: *const ::windows_core::GUID, + member: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.ResolveMember( + ::core::mem::transmute_copy(&name), + ::core::mem::transmute_copy(&riid), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(member, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + ResolveMember: ResolveMember::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStateProvider_Impl: Sized { + fn BeginUpdateEpoch( + &self, + epoch: *const super::super::FABRIC_EPOCH, + previousepochlastsequencenumber: i64, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndUpdateEpoch( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn GetLastCommittedSequenceNumber(&self) -> ::windows_core::Result; + fn BeginOnDataLoss( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOnDataLoss( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn GetCopyContext(&self) -> ::windows_core::Result; + fn GetCopyState( + &self, + uptosequencenumber: i64, + copycontextstream: ::core::option::Option<&IFabricOperationDataStream>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStateProvider {} + impl IFabricStateProvider_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >() -> IFabricStateProvider_Vtbl { + unsafe extern "system" fn BeginUpdateEpoch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + epoch: *const super::super::FABRIC_EPOCH, + previousepochlastsequencenumber: i64, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginUpdateEpoch( + ::core::mem::transmute_copy(&epoch), + ::core::mem::transmute_copy(&previousepochlastsequencenumber), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndUpdateEpoch< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndUpdateEpoch(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn GetLastCommittedSequenceNumber< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetLastCommittedSequenceNumber() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCopyContext< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + copycontextstream: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCopyContext() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(copycontextstream, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCopyState< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateProvider_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + uptosequencenumber: i64, + copycontextstream: *mut ::core::ffi::c_void, + copystatestream: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCopyState( + ::core::mem::transmute_copy(&uptosequencenumber), + ::windows_core::from_raw_borrowed(©contextstream), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(copystatestream, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginUpdateEpoch: BeginUpdateEpoch::, + EndUpdateEpoch: EndUpdateEpoch::, + GetLastCommittedSequenceNumber: GetLastCommittedSequenceNumber::< + Identity, + Impl, + OFFSET, + >, + BeginOnDataLoss: BeginOnDataLoss::, + EndOnDataLoss: EndOnDataLoss::, + GetCopyContext: GetCopyContext::, + GetCopyState: GetCopyState::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStateReplicator_Impl: Sized { + fn BeginReplicate( + &self, + operationdata: ::core::option::Option<&IFabricOperationData>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + sequencenumber: *mut i64, + context: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn EndReplicate( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn GetReplicationStream(&self) -> ::windows_core::Result; + fn GetCopyStream(&self) -> ::windows_core::Result; + fn UpdateReplicatorSettings( + &self, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStateReplicator {} + impl IFabricStateReplicator_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >() -> IFabricStateReplicator_Vtbl { + unsafe extern "system" fn BeginReplicate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + operationdata: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.BeginReplicate( + ::windows_core::from_raw_borrowed(&operationdata), + ::windows_core::from_raw_borrowed(&callback), + ::core::mem::transmute_copy(&sequencenumber), + ::core::mem::transmute_copy(&context), + ) + .into() + } + unsafe extern "system" fn EndReplicate< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + sequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndReplicate(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetReplicationStream< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + stream: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetReplicationStream() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(stream, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetCopyStream< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + stream: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetCopyStream() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(stream, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn UpdateReplicatorSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.UpdateReplicatorSettings(::core::mem::transmute_copy( + &replicatorsettings, + )) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginReplicate: BeginReplicate::, + EndReplicate: EndReplicate::, + GetReplicationStream: GetReplicationStream::, + GetCopyStream: GetCopyStream::, + UpdateReplicatorSettings: UpdateReplicatorSettings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStateReplicator2_Impl: Sized + IFabricStateReplicator_Impl { + fn GetReplicatorSettings( + &self, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStateReplicator2 {} + impl IFabricStateReplicator2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator2_Impl, + const OFFSET: isize, + >() -> IFabricStateReplicator2_Vtbl { + unsafe extern "system" fn GetReplicatorSettings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStateReplicator2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + replicatorsettings: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetReplicatorSettings() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + replicatorsettings, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricStateReplicator_Vtbl::new::(), + GetReplicatorSettings: GetReplicatorSettings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricStatefulServiceFactory_Impl: Sized { + fn CreateReplica( + &self, + servicetypename: &::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: &::windows_core::GUID, + replicaid: i64, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStatefulServiceFactory {} + impl IFabricStatefulServiceFactory_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceFactory_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServiceFactory_Vtbl { + unsafe extern "system" fn CreateReplica< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceFactory_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: ::windows_core::GUID, + replicaid: i64, + servicereplica: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateReplica( + ::core::mem::transmute(&servicetypename), + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute_copy(&initializationdatalength), + ::core::mem::transmute_copy(&initializationdata), + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&replicaid), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(servicereplica, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + CreateReplica: CreateReplica::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatefulServicePartition_Impl: Sized { + fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; + fn GetReadStatus( + &self, + ) -> ::windows_core::Result; + fn GetWriteStatus( + &self, + ) -> ::windows_core::Result; + fn CreateReplicator( + &self, + stateprovider: ::core::option::Option<&IFabricStateProvider>, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut ::core::option::Option, + statereplicator: *mut ::core::option::Option, + ) -> ::windows_core::Result<()>; + fn ReportLoad( + &self, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) -> ::windows_core::Result<()>; + fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatefulServicePartition {} + impl IFabricStatefulServicePartition_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServicePartition_Vtbl { + unsafe extern "system" fn GetPartitionInfo< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetPartitionInfo() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetReadStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetReadStatus() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(readstatus, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn GetWriteStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetWriteStatus() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(writestatus, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn CreateReplicator< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + stateprovider: *mut ::core::ffi::c_void, + replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, + replicator: *mut *mut ::core::ffi::c_void, + statereplicator: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.CreateReplicator( + ::windows_core::from_raw_borrowed(&stateprovider), + ::core::mem::transmute_copy(&replicatorsettings), + ::core::mem::transmute_copy(&replicator), + ::core::mem::transmute_copy(&statereplicator), + ) + .into() + } + unsafe extern "system" fn ReportLoad< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportLoad( + ::core::mem::transmute_copy(&metriccount), + ::core::mem::transmute_copy(&metrics), + ) + .into() + } + unsafe extern "system" fn ReportFault< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportFault(::core::mem::transmute_copy(&faulttype)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetPartitionInfo: GetPartitionInfo::, + GetReadStatus: GetReadStatus::, + GetWriteStatus: GetWriteStatus::, + CreateReplicator: CreateReplicator::, + ReportLoad: ReportLoad::, + ReportFault: ReportFault::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatefulServicePartition1_Impl: + Sized + IFabricStatefulServicePartition_Impl + { + fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatefulServicePartition1 {} + impl IFabricStatefulServicePartition1_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition1_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServicePartition1_Vtbl { + unsafe extern "system" fn ReportMoveCost< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition1_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) + .into() + } + Self { + base__: IFabricStatefulServicePartition_Vtbl::new::( + ), + ReportMoveCost: ReportMoveCost::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatefulServicePartition1 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStatefulServicePartition2_Impl: + Sized + IFabricStatefulServicePartition1_Impl + { + fn ReportReplicaHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatefulServicePartition2 {} + impl IFabricStatefulServicePartition2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition2_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServicePartition2_Vtbl { + unsafe extern "system" fn ReportReplicaHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportReplicaHealth(::core::mem::transmute_copy(&healthinfo)) + .into() + } + unsafe extern "system" fn ReportPartitionHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) + .into() + } + Self { + base__: IFabricStatefulServicePartition1_Vtbl::new::( + ), + ReportReplicaHealth: ReportReplicaHealth::, + ReportPartitionHealth: ReportPartitionHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatefulServicePartition2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition1 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStatefulServicePartition3_Impl: + Sized + IFabricStatefulServicePartition2_Impl + { + fn ReportReplicaHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + fn ReportPartitionHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatefulServicePartition3 {} + impl IFabricStatefulServicePartition3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition3_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServicePartition3_Vtbl { + unsafe extern "system" fn ReportReplicaHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportReplicaHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + unsafe extern "system" fn ReportPartitionHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServicePartition3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportPartitionHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + Self { + base__: IFabricStatefulServicePartition2_Vtbl::new::( + ), + ReportReplicaHealth2: ReportReplicaHealth2::, + ReportPartitionHealth2: ReportPartitionHealth2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatefulServicePartition3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition1 as::windows_core::ComInterface >::IID || iid == & < IFabricStatefulServicePartition2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStatefulServiceReplica_Impl: Sized { + fn BeginOpen( + &self, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: ::core::option::Option<&IFabricStatefulServicePartition>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOpen( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginChangeRole( + &self, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndChangeRole( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginClose( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndClose( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn Abort(&self); + } + impl ::windows_core::RuntimeName for IFabricStatefulServiceReplica {} + impl IFabricStatefulServiceReplica_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >() -> IFabricStatefulServiceReplica_Vtbl { + unsafe extern "system" fn BeginOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + openmode: super::super::FABRIC_REPLICA_OPEN_MODE, + partition: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOpen( + ::core::mem::transmute_copy(&openmode), + ::windows_core::from_raw_borrowed(&partition), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + replicator: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(replicator, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginChangeRole< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + newrole: super::super::FABRIC_REPLICA_ROLE, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginChangeRole( + ::core::mem::transmute_copy(&newrole), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndChangeRole< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndChangeRole(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn Abort< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatefulServiceReplica_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Abort() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginChangeRole: BeginChangeRole::, + EndChangeRole: EndChangeRole::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatelessServiceFactory_Impl: Sized { + fn CreateInstance( + &self, + servicetypename: &::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: &::windows_core::GUID, + instanceid: i64, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStatelessServiceFactory {} + impl IFabricStatelessServiceFactory_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceFactory_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServiceFactory_Vtbl { + unsafe extern "system" fn CreateInstance< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceFactory_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + servicetypename: ::windows_core::PCWSTR, + servicename: *const u16, + initializationdatalength: u32, + initializationdata: *const u8, + partitionid: ::windows_core::GUID, + instanceid: i64, + serviceinstance: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.CreateInstance( + ::core::mem::transmute(&servicetypename), + ::core::mem::transmute_copy(&servicename), + ::core::mem::transmute_copy(&initializationdatalength), + ::core::mem::transmute_copy(&initializationdata), + ::core::mem::transmute(&partitionid), + ::core::mem::transmute_copy(&instanceid), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(serviceinstance, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + CreateInstance: CreateInstance::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatelessServiceInstance_Impl: Sized { + fn BeginOpen( + &self, + partition: ::core::option::Option<&IFabricStatelessServicePartition>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOpen( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginClose( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndClose( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn Abort(&self); + } + impl ::windows_core::RuntimeName for IFabricStatelessServiceInstance {} + impl IFabricStatelessServiceInstance_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServiceInstance_Vtbl { + unsafe extern "system" fn BeginOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + partition: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOpen( + ::windows_core::from_raw_borrowed(&partition), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn Abort< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServiceInstance_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Abort() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatelessServicePartition_Impl: Sized { + fn GetPartitionInfo( + &self, + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; + fn ReportLoad( + &self, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) -> ::windows_core::Result<()>; + fn ReportFault( + &self, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatelessServicePartition {} + impl IFabricStatelessServicePartition_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServicePartition_Vtbl { + unsafe extern "system" fn GetPartitionInfo< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetPartitionInfo() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn ReportLoad< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + metriccount: u32, + metrics: *const super::super::FABRIC_LOAD_METRIC, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportLoad( + ::core::mem::transmute_copy(&metriccount), + ::core::mem::transmute_copy(&metrics), + ) + .into() + } + unsafe extern "system" fn ReportFault< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + faulttype: super::super::FABRIC_FAULT_TYPE, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportFault(::core::mem::transmute_copy(&faulttype)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetPartitionInfo: GetPartitionInfo::, + ReportLoad: ReportLoad::, + ReportFault: ReportFault::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStatelessServicePartition1_Impl: + Sized + IFabricStatelessServicePartition_Impl + { + fn ReportMoveCost( + &self, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatelessServicePartition1 {} + impl IFabricStatelessServicePartition1_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition1_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServicePartition1_Vtbl { + unsafe extern "system" fn ReportMoveCost< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition1_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + movecost: super::super::FABRIC_MOVE_COST, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) + .into() + } + Self { + base__: IFabricStatelessServicePartition_Vtbl::new::( + ), + ReportMoveCost: ReportMoveCost::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatelessServicePartition1 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStatelessServicePartition2_Impl: + Sized + IFabricStatelessServicePartition1_Impl + { + fn ReportInstanceHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + fn ReportPartitionHealth( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatelessServicePartition2 {} + impl IFabricStatelessServicePartition2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition2_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServicePartition2_Vtbl { + unsafe extern "system" fn ReportInstanceHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportInstanceHealth(::core::mem::transmute_copy(&healthinfo)) + .into() + } + unsafe extern "system" fn ReportPartitionHealth< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) + .into() + } + Self { + base__: IFabricStatelessServicePartition1_Vtbl::new::( + ), + ReportInstanceHealth: ReportInstanceHealth::, + ReportPartitionHealth: ReportPartitionHealth::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatelessServicePartition2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition1 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStatelessServicePartition3_Impl: + Sized + IFabricStatelessServicePartition2_Impl + { + fn ReportInstanceHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + fn ReportPartitionHealth2( + &self, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStatelessServicePartition3 {} + impl IFabricStatelessServicePartition3_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition3_Impl, + const OFFSET: isize, + >() -> IFabricStatelessServicePartition3_Vtbl { + unsafe extern "system" fn ReportInstanceHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportInstanceHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + unsafe extern "system" fn ReportPartitionHealth2< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStatelessServicePartition3_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, + sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.ReportPartitionHealth2( + ::core::mem::transmute_copy(&healthinfo), + ::core::mem::transmute_copy(&sendoptions), + ) + .into() + } + Self { + base__: IFabricStatelessServicePartition2_Vtbl::new::( + ), + ReportInstanceHealth2: ReportInstanceHealth2::, + ReportPartitionHealth2: ReportPartitionHealth2::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricStatelessServicePartition3 < > as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition1 as::windows_core::ComInterface >::IID || iid == & < IFabricStatelessServicePartition2 as::windows_core::ComInterface >::IID + } + } + pub trait IFabricStoreEventHandler_Impl: Sized { + fn OnDataLoss(&self); + } + impl ::windows_core::RuntimeName for IFabricStoreEventHandler {} + impl IFabricStoreEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStoreEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricStoreEventHandler_Vtbl { + unsafe extern "system" fn OnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStoreEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnDataLoss() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnDataLoss: OnDataLoss::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStoreEventHandler2_Impl: + Sized + IFabricStoreEventHandler_Impl + { + fn BeginOnDataLoss( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOnDataLoss( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStoreEventHandler2 {} + impl IFabricStoreEventHandler2_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStoreEventHandler2_Impl, + const OFFSET: isize, + >() -> IFabricStoreEventHandler2_Vtbl { + unsafe extern "system" fn BeginOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStoreEventHandler2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOnDataLoss< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStoreEventHandler2_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + isstatechanged: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: IFabricStoreEventHandler_Vtbl::new::(), + BeginOnDataLoss: BeginOnDataLoss::, + EndOnDataLoss: EndOnDataLoss::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricStorePostBackupHandler_Impl: Sized { + fn BeginPostBackup( + &self, + info: *const super::super::FABRIC_STORE_BACKUP_INFO, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndPostBackup( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + } + impl ::windows_core::RuntimeName for IFabricStorePostBackupHandler {} + impl IFabricStorePostBackupHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStorePostBackupHandler_Impl, + const OFFSET: isize, + >() -> IFabricStorePostBackupHandler_Vtbl { + unsafe extern "system" fn BeginPostBackup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStorePostBackupHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + info: *const super::super::FABRIC_STORE_BACKUP_INFO, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginPostBackup( + ::core::mem::transmute_copy(&info), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndPostBackup< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStorePostBackupHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + status: *mut u8, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndPostBackup(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(status, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginPostBackup: BeginPostBackup::, + EndPostBackup: EndPostBackup::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransaction_Impl: Sized + IFabricTransactionBase_Impl { + fn BeginCommit( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndCommit( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn Rollback(&self); + } + impl ::windows_core::RuntimeName for IFabricTransaction {} + impl IFabricTransaction_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransaction_Impl, + const OFFSET: isize, + >() -> IFabricTransaction_Vtbl { + unsafe extern "system" fn BeginCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransaction_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginCommit( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndCommit< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransaction_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + commitsequencenumber: *mut i64, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndCommit(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write( + commitsequencenumber, + ::core::mem::transmute(ok__), + ); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Rollback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransaction_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Rollback() + } + Self { + base__: IFabricTransactionBase_Vtbl::new::(), + BeginCommit: BeginCommit::, + EndCommit: EndCommit::, + Rollback: Rollback::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + } + } + pub trait IFabricTransactionBase_Impl: Sized { + fn get_Id(&self) -> *mut ::windows_core::GUID; + fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL; + } + impl ::windows_core::RuntimeName for IFabricTransactionBase {} + impl IFabricTransactionBase_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransactionBase_Impl, + const OFFSET: isize, + >() -> IFabricTransactionBase_Vtbl { + unsafe extern "system" fn get_Id< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransactionBase_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut ::windows_core::GUID { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_Id() + } + unsafe extern "system" fn get_IsolationLevel< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransactionBase_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_IsolationLevel() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_Id: get_Id::, + get_IsolationLevel: get_IsolationLevel::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + } + pub mod FabricTransport { + #[inline] + pub unsafe fn CreateFabricTransportClient( + interfaceid: *const ::windows_core::GUID, + settings: *const FABRIC_TRANSPORT_SETTINGS, + connectionaddress: P0, + notificationhandler: P1, + clienteventhandler: P2, + messagedisposer: P3, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, + { + #[link(name = "fabrictransport")] + extern "system" { + pub fn CreateFabricTransportClient( + interfaceid: *const ::windows_core::GUID, + settings: *const FABRIC_TRANSPORT_SETTINGS, + connectionaddress: ::windows_core::PCWSTR, + notificationhandler: *mut ::core::ffi::c_void, + clienteventhandler: *mut ::core::ffi::c_void, + messagedisposer: *mut ::core::ffi::c_void, + client: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + CreateFabricTransportClient( + interfaceid, + settings, + connectionaddress.into_param().abi(), + notificationhandler.into_param().abi(), + clienteventhandler.into_param().abi(), + messagedisposer.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[inline] + pub unsafe fn CreateFabricTransportListener( + interfaceid: *const ::windows_core::GUID, + settings: *const FABRIC_TRANSPORT_SETTINGS, + address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, + requesthandler: P0, + connectionhandler: P1, + disposeprocessor: P2, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + #[link(name = "fabrictransport")] + extern "system" { + pub fn CreateFabricTransportListener( + interfaceid: *const ::windows_core::GUID, + settings: *const FABRIC_TRANSPORT_SETTINGS, + address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, + requesthandler: *mut ::core::ffi::c_void, + connectionhandler: *mut ::core::ffi::c_void, + disposeprocessor: *mut ::core::ffi::c_void, + listener: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT; + } + let mut result__ = ::std::mem::zeroed(); + CreateFabricTransportListener( + interfaceid, + settings, + address, + requesthandler.into_param().abi(), + connectionhandler.into_param().abi(), + disposeprocessor.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + #[repr(transparent)] + pub struct IFabricTransportCallbackMessageHandler(::windows_core::IUnknown); + impl IFabricTransportCallbackMessageHandler { + pub unsafe fn HandleOneWay(&self, message: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).HandleOneWay)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportCallbackMessageHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportCallbackMessageHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportCallbackMessageHandler {} + impl ::core::fmt::Debug for IFabricTransportCallbackMessageHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportCallbackMessageHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportCallbackMessageHandler { + type Vtable = IFabricTransportCallbackMessageHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportCallbackMessageHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportCallbackMessageHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9ba8ac7a_3464_4774_b9b9_1d7f0f1920ba); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportCallbackMessageHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub HandleOneWay: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricTransportClient(::windows_core::IUnknown); + impl IFabricTransportClient { + pub unsafe fn BeginRequest( + &self, + message: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRequest)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndRequest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRequest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Send(&self, message: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).Send)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginOpen( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginClose( + &self, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportClient, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportClient { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportClient {} + impl ::core::fmt::Debug for IFabricTransportClient { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportClient") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportClient { + type Vtable = IFabricTransportClient_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5b0634fe_6a52_4bd9_8059_892c72c1d73a); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportClient_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginRequest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndRequest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + reply: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub Send: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricTransportClientConnection(::windows_core::IUnknown); + impl IFabricTransportClientConnection { + pub unsafe fn Send(&self, message: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).Send)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), + ) + .ok() + } + pub unsafe fn get_ClientId(&self) -> *mut u16 { + (::windows_core::Interface::vtable(self).get_ClientId)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportClientConnection, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportClientConnection { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportClientConnection {} + impl ::core::fmt::Debug for IFabricTransportClientConnection { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportClientConnection") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportClientConnection { + type Vtable = IFabricTransportClientConnection_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportClientConnection { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportClientConnection { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa54c17f7_fe94_4838_b14d_e9b5c258e2d0); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportClientConnection_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub Send: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub get_ClientId: + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, + } + #[repr(transparent)] + pub struct IFabricTransportClientEventHandler(::windows_core::IUnknown); + impl IFabricTransportClientEventHandler { + pub unsafe fn OnConnected( + &self, + connectionaddress: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).OnConnected)( + ::windows_core::Interface::as_raw(self), + connectionaddress.into_param().abi(), + ) + .ok() + } + pub unsafe fn OnDisconnected( + &self, + connectionaddress: P0, + error: ::windows_core::HRESULT, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + { + (::windows_core::Interface::vtable(self).OnDisconnected)( + ::windows_core::Interface::as_raw(self), + connectionaddress.into_param().abi(), + error, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportClientEventHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportClientEventHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportClientEventHandler {} + impl ::core::fmt::Debug for IFabricTransportClientEventHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportClientEventHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportClientEventHandler { + type Vtable = IFabricTransportClientEventHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportClientEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportClientEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4935ab6f_a8bc_4b10_a69e_7a3ba3324892); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportClientEventHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub OnConnected: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + connectionaddress: ::windows_core::PCWSTR, + ) + -> ::windows_core::HRESULT, + pub OnDisconnected: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + connectionaddress: ::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricTransportConnectionHandler(::windows_core::IUnknown); + impl IFabricTransportConnectionHandler { + pub unsafe fn BeginProcessConnect( + &self, + clientconnection: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessConnect)( + ::windows_core::Interface::as_raw(self), + clientconnection.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProcessConnect( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProcessConnect)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn BeginProcessDisconnect( + &self, + clientid: *const u16, + timeoutmilliseconds: u32, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessDisconnect)( + ::windows_core::Interface::as_raw(self), + clientid, + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProcessDisconnect( + &self, + context: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndProcessDisconnect)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportConnectionHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportConnectionHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportConnectionHandler {} + impl ::core::fmt::Debug for IFabricTransportConnectionHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportConnectionHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportConnectionHandler { + type Vtable = IFabricTransportConnectionHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportConnectionHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportConnectionHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb069692d_e8f0_4f25_a3b6_b2992598a64c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportConnectionHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginProcessConnect: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + clientconnection: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndProcessConnect: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub BeginProcessDisconnect: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndProcessDisconnect: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricTransportListener(::windows_core::IUnknown); + impl IFabricTransportListener { + pub unsafe fn BeginOpen( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndOpen( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn BeginClose( + &self, + callback: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + .ok() + } + pub unsafe fn Abort(&self) { + (::windows_core::Interface::vtable(self).Abort)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportListener, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportListener { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportListener {} + impl ::core::fmt::Debug for IFabricTransportListener { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportListener") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportListener { + type Vtable = IFabricTransportListener_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportListener { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportListener { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1b63a266_1eeb_4f3e_8886_521458980d10); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportListener_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndOpen: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndClose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricTransportMessage(::windows_core::IUnknown); + impl IFabricTransportMessage { + pub unsafe fn GetHeaderAndBodyBuffer( + &self, + headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + msgbuffercount: *mut u32, + msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + ) { + (::windows_core::Interface::vtable(self).GetHeaderAndBodyBuffer)( + ::windows_core::Interface::as_raw(self), + headerbuffer, + msgbuffercount, + msgbuffers, + ) + } + pub unsafe fn Dispose(&self) { + (::windows_core::Interface::vtable(self).Dispose)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportMessage, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportMessage { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportMessage {} + impl ::core::fmt::Debug for IFabricTransportMessage { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportMessage") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportMessage { + type Vtable = IFabricTransportMessage_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportMessage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportMessage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb4357dab_ef06_465f_b453_938f3b0ad4b5); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportMessage_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetHeaderAndBodyBuffer: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + msgbuffercount: *mut u32, + msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + ), + pub Dispose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), + } + #[repr(transparent)] + pub struct IFabricTransportMessageDisposer(::windows_core::IUnknown); + impl IFabricTransportMessageDisposer { + pub unsafe fn Dispose( + &self, + messages: &[::core::option::Option], + ) { + (::windows_core::Interface::vtable(self).Dispose)( + ::windows_core::Interface::as_raw(self), + messages.len() as _, + ::core::mem::transmute(messages.as_ptr()), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportMessageDisposer, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportMessageDisposer { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportMessageDisposer {} + impl ::core::fmt::Debug for IFabricTransportMessageDisposer { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportMessageDisposer") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportMessageDisposer { + type Vtable = IFabricTransportMessageDisposer_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportMessageDisposer { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportMessageDisposer { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x914097f3_a821_46ea_b3d9_feafe5f7c4a9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportMessageDisposer_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub Dispose: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + count: u32, + messages: *const *mut ::core::ffi::c_void, + ), + } + #[repr(transparent)] + pub struct IFabricTransportMessageHandler(::windows_core::IUnknown); + impl IFabricTransportMessageHandler { + pub unsafe fn BeginProcessRequest( + &self, + clientid: *const u16, + message: P0, + timeoutmilliseconds: u32, + callback: P1, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessRequest)( + ::windows_core::Interface::as_raw(self), + clientid, + message.into_param().abi(), + timeoutmilliseconds, + callback.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn EndProcessRequest( + &self, + context: P0, + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndProcessRequest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn HandleOneWay( + &self, + clientid: *const u16, + message: P0, + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).HandleOneWay)( + ::windows_core::Interface::as_raw(self), + clientid, + message.into_param().abi(), + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricTransportMessageHandler, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricTransportMessageHandler { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricTransportMessageHandler {} + impl ::core::fmt::Debug for IFabricTransportMessageHandler { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricTransportMessageHandler") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricTransportMessageHandler { + type Vtable = IFabricTransportMessageHandler_Vtbl; + } + impl ::core::clone::Clone for IFabricTransportMessageHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricTransportMessageHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6815bdb4_1479_4c44_8b9d_57d6d0cc9d64); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricTransportMessageHandler_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub BeginProcessRequest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + message: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub EndProcessRequest: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + reply: *mut *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + pub HandleOneWay: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + message: *mut ::core::ffi::c_void, + ) + -> ::windows_core::HRESULT, + } + #[repr(C)] + pub struct FABRIC_TRANSPORT_LISTEN_ADDRESS { + pub IPAddressOrFQDN: ::windows_core::PCWSTR, + pub Port: u32, + pub Path: ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_TRANSPORT_LISTEN_ADDRESS {} + impl ::core::clone::Clone for FABRIC_TRANSPORT_LISTEN_ADDRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_TRANSPORT_LISTEN_ADDRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_TRANSPORT_LISTEN_ADDRESS") + .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) + .field("Port", &self.Port) + .field("Path", &self.Path) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_TRANSPORT_LISTEN_ADDRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_LISTEN_ADDRESS { + fn eq(&self, other: &Self) -> bool { + self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.Port == other.Port + && self.Path == other.Path + } + } + impl ::core::cmp::Eq for FABRIC_TRANSPORT_LISTEN_ADDRESS {} + impl ::core::default::Default for FABRIC_TRANSPORT_LISTEN_ADDRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_TRANSPORT_MESSAGE_BUFFER { + pub BufferSize: u32, + pub Buffer: *mut u8, + } + impl ::core::marker::Copy for FABRIC_TRANSPORT_MESSAGE_BUFFER {} + impl ::core::clone::Clone for FABRIC_TRANSPORT_MESSAGE_BUFFER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_TRANSPORT_MESSAGE_BUFFER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_TRANSPORT_MESSAGE_BUFFER") + .field("BufferSize", &self.BufferSize) + .field("Buffer", &self.Buffer) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_TRANSPORT_MESSAGE_BUFFER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_MESSAGE_BUFFER { + fn eq(&self, other: &Self) -> bool { + self.BufferSize == other.BufferSize && self.Buffer == other.Buffer + } + } + impl ::core::cmp::Eq for FABRIC_TRANSPORT_MESSAGE_BUFFER {} + impl ::core::default::Default for FABRIC_TRANSPORT_MESSAGE_BUFFER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_TRANSPORT_SETTINGS { + pub OperationTimeoutInSeconds: u32, + pub KeepAliveTimeoutInSeconds: u32, + pub MaxMessageSize: u32, + pub MaxConcurrentCalls: u32, + pub MaxQueueSize: u32, + pub SecurityCredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_TRANSPORT_SETTINGS {} + impl ::core::clone::Clone for FABRIC_TRANSPORT_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_TRANSPORT_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_TRANSPORT_SETTINGS") + .field("OperationTimeoutInSeconds", &self.OperationTimeoutInSeconds) + .field("KeepAliveTimeoutInSeconds", &self.KeepAliveTimeoutInSeconds) + .field("MaxMessageSize", &self.MaxMessageSize) + .field("MaxConcurrentCalls", &self.MaxConcurrentCalls) + .field("MaxQueueSize", &self.MaxQueueSize) + .field("SecurityCredentials", &self.SecurityCredentials) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_TRANSPORT_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.OperationTimeoutInSeconds == other.OperationTimeoutInSeconds + && self.KeepAliveTimeoutInSeconds == other.KeepAliveTimeoutInSeconds + && self.MaxMessageSize == other.MaxMessageSize + && self.MaxConcurrentCalls == other.MaxConcurrentCalls + && self.MaxQueueSize == other.MaxQueueSize + && self.SecurityCredentials == other.SecurityCredentials + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_TRANSPORT_SETTINGS {} + impl ::core::default::Default for FABRIC_TRANSPORT_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + pub trait IFabricTransportCallbackMessageHandler_Impl: Sized { + fn HandleOneWay( + &self, + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricTransportCallbackMessageHandler {} + impl IFabricTransportCallbackMessageHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportCallbackMessageHandler_Impl, + const OFFSET: isize, + >() -> IFabricTransportCallbackMessageHandler_Vtbl { + unsafe extern "system" fn HandleOneWay< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportCallbackMessageHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.HandleOneWay(::windows_core::from_raw_borrowed(&message)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + HandleOneWay: HandleOneWay::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricTransportCallbackMessageHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricTransportClient_Impl: Sized { + fn BeginRequest( + &self, + message: ::core::option::Option<&IFabricTransportMessage>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndRequest( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn Send( + &self, + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; + fn BeginOpen( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOpen( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginClose( + &self, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndClose( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn Abort(&self); + } + impl ::windows_core::RuntimeName for IFabricTransportClient {} + impl IFabricTransportClient_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >() -> IFabricTransportClient_Vtbl { + unsafe extern "system" fn BeginRequest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginRequest( + ::windows_core::from_raw_borrowed(&message), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndRequest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + reply: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndRequest(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(reply, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Send< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Send(::windows_core::from_raw_borrowed(&message)) + .into() + } + unsafe extern "system" fn BeginOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOpen( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndOpen(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginClose( + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn Abort< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClient_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Abort() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginRequest: BeginRequest::, + EndRequest: EndRequest::, + Send: Send::, + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportClientConnection_Impl: Sized { + fn Send( + &self, + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; + fn get_ClientId(&self) -> *mut u16; + } + impl ::windows_core::RuntimeName for IFabricTransportClientConnection {} + impl IFabricTransportClientConnection_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientConnection_Impl, + const OFFSET: isize, + >() -> IFabricTransportClientConnection_Vtbl { + unsafe extern "system" fn Send< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientConnection_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Send(::windows_core::from_raw_borrowed(&message)) + .into() + } + unsafe extern "system" fn get_ClientId< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientConnection_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut u16 { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ClientId() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + Send: Send::, + get_ClientId: get_ClientId::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportClientEventHandler_Impl: Sized { + fn OnConnected( + &self, + connectionaddress: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn OnDisconnected( + &self, + connectionaddress: &::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricTransportClientEventHandler {} + impl IFabricTransportClientEventHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientEventHandler_Impl, + const OFFSET: isize, + >() -> IFabricTransportClientEventHandler_Vtbl { + unsafe extern "system" fn OnConnected< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + connectionaddress: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnConnected(::core::mem::transmute(&connectionaddress)) + .into() + } + unsafe extern "system" fn OnDisconnected< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportClientEventHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + connectionaddress: ::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.OnDisconnected( + ::core::mem::transmute(&connectionaddress), + ::core::mem::transmute_copy(&error), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + OnConnected: OnConnected::, + OnDisconnected: OnDisconnected::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricTransportClientEventHandler < > as::windows_core::ComInterface >::IID + } + } + pub trait IFabricTransportConnectionHandler_Impl: Sized { + fn BeginProcessConnect( + &self, + clientconnection: ::core::option::Option<&IFabricTransportClientConnection>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProcessConnect( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn BeginProcessDisconnect( + &self, + clientid: *const u16, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProcessDisconnect( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricTransportConnectionHandler {} + impl IFabricTransportConnectionHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportConnectionHandler_Impl, + const OFFSET: isize, + >() -> IFabricTransportConnectionHandler_Vtbl { + unsafe extern "system" fn BeginProcessConnect< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportConnectionHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + clientconnection: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProcessConnect( + ::windows_core::from_raw_borrowed(&clientconnection), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProcessConnect< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportConnectionHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProcessConnect(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn BeginProcessDisconnect< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportConnectionHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProcessDisconnect( + ::core::mem::transmute_copy(&clientid), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProcessDisconnect< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportConnectionHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndProcessDisconnect(::windows_core::from_raw_borrowed(&context)) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginProcessConnect: BeginProcessConnect::, + EndProcessConnect: EndProcessConnect::, + BeginProcessDisconnect: BeginProcessDisconnect::, + EndProcessDisconnect: EndProcessDisconnect::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportListener_Impl: Sized { + fn BeginOpen( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndOpen( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn BeginClose( + &self, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndClose( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn Abort(&self); + } + impl ::windows_core::RuntimeName for IFabricTransportListener {} + impl IFabricTransportListener_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >() -> IFabricTransportListener_Vtbl { + unsafe extern "system" fn BeginOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginOpen(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndOpen< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + serviceaddress: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn BeginClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndClose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() + } + unsafe extern "system" fn Abort< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportListener_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Abort() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginOpen: BeginOpen::, + EndOpen: EndOpen::, + BeginClose: BeginClose::, + EndClose: EndClose::, + Abort: Abort::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportMessage_Impl: Sized { + fn GetHeaderAndBodyBuffer( + &self, + headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + msgbuffercount: *mut u32, + msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + ); + fn Dispose(&self); + } + impl ::windows_core::RuntimeName for IFabricTransportMessage {} + impl IFabricTransportMessage_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessage_Impl, + const OFFSET: isize, + >() -> IFabricTransportMessage_Vtbl { + unsafe extern "system" fn GetHeaderAndBodyBuffer< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + msgbuffercount: *mut u32, + msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetHeaderAndBodyBuffer( + ::core::mem::transmute_copy(&headerbuffer), + ::core::mem::transmute_copy(&msgbuffercount), + ::core::mem::transmute_copy(&msgbuffers), + ) + } + unsafe extern "system" fn Dispose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessage_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Dispose() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetHeaderAndBodyBuffer: GetHeaderAndBodyBuffer::, + Dispose: Dispose::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportMessageDisposer_Impl: Sized { + fn Dispose( + &self, + count: u32, + messages: *const ::core::option::Option, + ); + } + impl ::windows_core::RuntimeName for IFabricTransportMessageDisposer {} + impl IFabricTransportMessageDisposer_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageDisposer_Impl, + const OFFSET: isize, + >() -> IFabricTransportMessageDisposer_Vtbl { + unsafe extern "system" fn Dispose< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageDisposer_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + count: u32, + messages: *const *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Dispose( + ::core::mem::transmute_copy(&count), + ::core::mem::transmute_copy(&messages), + ) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + Dispose: Dispose::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricTransportMessageHandler_Impl: Sized { + fn BeginProcessRequest( + &self, + clientid: *const u16, + message: ::core::option::Option<&IFabricTransportMessage>, + timeoutmilliseconds: u32, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; + fn EndProcessRequest( + &self, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn HandleOneWay( + &self, + clientid: *const u16, + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricTransportMessageHandler {} + impl IFabricTransportMessageHandler_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageHandler_Impl, + const OFFSET: isize, + >() -> IFabricTransportMessageHandler_Vtbl { + unsafe extern "system" fn BeginProcessRequest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + message: *mut ::core::ffi::c_void, + timeoutmilliseconds: u32, + callback: *mut ::core::ffi::c_void, + context: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.BeginProcessRequest( + ::core::mem::transmute_copy(&clientid), + ::windows_core::from_raw_borrowed(&message), + ::core::mem::transmute_copy(&timeoutmilliseconds), + ::windows_core::from_raw_borrowed(&callback), + ) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(context, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn EndProcessRequest< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + reply: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.EndProcessRequest(::windows_core::from_raw_borrowed(&context)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(reply, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn HandleOneWay< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricTransportMessageHandler_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + clientid: *const u16, + message: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.HandleOneWay( + ::core::mem::transmute_copy(&clientid), + ::windows_core::from_raw_borrowed(&message), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + BeginProcessRequest: BeginProcessRequest::, + EndProcessRequest: EndProcessRequest::, + HandleOneWay: HandleOneWay::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + } + #[repr(transparent)] + pub struct IFabricAsyncOperationCallback(::windows_core::IUnknown); + impl IFabricAsyncOperationCallback { + pub unsafe fn Invoke(&self, context: P0) + where + P0: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).Invoke)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricAsyncOperationCallback, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricAsyncOperationCallback { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricAsyncOperationCallback {} + impl ::core::fmt::Debug for IFabricAsyncOperationCallback { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricAsyncOperationCallback") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricAsyncOperationCallback { + type Vtable = IFabricAsyncOperationCallback_Vtbl; + } + impl ::core::clone::Clone for IFabricAsyncOperationCallback { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricAsyncOperationCallback { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x86f08d7e_14dd_4575_8489_b1d5d679029c); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricAsyncOperationCallback_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub Invoke: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ), + } + #[repr(transparent)] + pub struct IFabricAsyncOperationContext(::windows_core::IUnknown); + impl IFabricAsyncOperationContext { + pub unsafe fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN { + (::windows_core::Interface::vtable(self).IsCompleted)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN { + (::windows_core::Interface::vtable(self).CompletedSynchronously)( + ::windows_core::Interface::as_raw(self), + ) + } + pub unsafe fn Callback(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Callback)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) + } + pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw( + self, + )) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricAsyncOperationContext, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricAsyncOperationContext { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricAsyncOperationContext {} + impl ::core::fmt::Debug for IFabricAsyncOperationContext { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricAsyncOperationContext") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricAsyncOperationContext { + type Vtable = IFabricAsyncOperationContext_Vtbl; + } + impl ::core::clone::Clone for IFabricAsyncOperationContext { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricAsyncOperationContext { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x841720bf_c9e8_4e6f_9c3f_6b7f4ac73bcd); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricAsyncOperationContext_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub IsCompleted: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> ::windows::Win32::Foundation::BOOLEAN, + pub CompletedSynchronously: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows::Win32::Foundation::BOOLEAN, + pub Callback: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + callback: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub Cancel: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricGetReplicatorStatusResult(::windows_core::IUnknown); + impl IFabricGetReplicatorStatusResult { + pub unsafe fn get_ReplicatorStatus( + &self, + ) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + (::windows_core::Interface::vtable(self).get_ReplicatorStatus)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricGetReplicatorStatusResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricGetReplicatorStatusResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricGetReplicatorStatusResult {} + impl ::core::fmt::Debug for IFabricGetReplicatorStatusResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricGetReplicatorStatusResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricGetReplicatorStatusResult { + type Vtable = IFabricGetReplicatorStatusResult_Vtbl; + } + impl ::core::clone::Clone for IFabricGetReplicatorStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricGetReplicatorStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x30e10c61_a710_4f99_a623_bb1403265186); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricGetReplicatorStatusResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_ReplicatorStatus: + unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + ) + -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT, + } + #[repr(transparent)] + pub struct IFabricStringListResult(::windows_core::IUnknown); + impl IFabricStringListResult { + pub unsafe fn GetStrings( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetStrings)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, + ) + .ok() + } + } + ::windows_core::imp::interface_hierarchy!( + IFabricStringListResult, + ::windows_core::IUnknown + ); + impl ::core::cmp::PartialEq for IFabricStringListResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStringListResult {} + impl ::core::fmt::Debug for IFabricStringListResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStringListResult") + .field(&self.0) + .finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStringListResult { + type Vtable = IFabricStringListResult_Vtbl; + } + impl ::core::clone::Clone for IFabricStringListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStringListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStringListResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub GetStrings: unsafe extern "system" fn( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, + } + #[repr(transparent)] + pub struct IFabricStringResult(::windows_core::IUnknown); + impl IFabricStringResult { + pub unsafe fn get_String(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_String)( + ::windows_core::Interface::as_raw(self), + ) + } + } + ::windows_core::imp::interface_hierarchy!(IFabricStringResult, ::windows_core::IUnknown); + impl ::core::cmp::PartialEq for IFabricStringResult { + fn eq(&self, other: &Self) -> bool { + self.0 == other.0 + } + } + impl ::core::cmp::Eq for IFabricStringResult {} + impl ::core::fmt::Debug for IFabricStringResult { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("IFabricStringResult").field(&self.0).finish() + } + } + unsafe impl ::windows_core::Interface for IFabricStringResult { + type Vtable = IFabricStringResult_Vtbl; + } + impl ::core::clone::Clone for IFabricStringResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } + } + unsafe impl ::windows_core::ComInterface for IFabricStringResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4ae69614_7d0f_4cd4_b836_23017000d132); + } + #[repr(C)] + #[doc(hidden)] + pub struct IFabricStringResult_Vtbl { + pub base__: ::windows_core::IUnknown_Vtbl, + pub get_String: + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, + } + pub trait IFabricAsyncOperationCallback_Impl: Sized { + fn Invoke(&self, context: ::core::option::Option<&IFabricAsyncOperationContext>); + } + impl ::windows_core::RuntimeName for IFabricAsyncOperationCallback {} + impl IFabricAsyncOperationCallback_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationCallback_Impl, + const OFFSET: isize, + >() -> IFabricAsyncOperationCallback_Vtbl { + unsafe extern "system" fn Invoke< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationCallback_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + context: *mut ::core::ffi::c_void, + ) { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Invoke(::windows_core::from_raw_borrowed(&context)) + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + Invoke: Invoke::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricAsyncOperationContext_Impl: Sized { + fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN; + fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN; + fn Callback(&self) -> ::windows_core::Result; + fn Cancel(&self) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricAsyncOperationContext {} + impl IFabricAsyncOperationContext_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationContext_Impl, + const OFFSET: isize, + >() -> IFabricAsyncOperationContext_Vtbl { + unsafe extern "system" fn IsCompleted< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows::Win32::Foundation::BOOLEAN { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.IsCompleted() + } + unsafe extern "system" fn CompletedSynchronously< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows::Win32::Foundation::BOOLEAN { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.CompletedSynchronously() + } + unsafe extern "system" fn Callback< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + callback: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Callback() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(callback, ::core::mem::transmute(ok__)); + ::windows_core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Cancel< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricAsyncOperationContext_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.Cancel().into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + IsCompleted: IsCompleted::, + CompletedSynchronously: CompletedSynchronously::, + Callback: Callback::, + Cancel: Cancel::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricGetReplicatorStatusResult_Impl: Sized { + fn get_ReplicatorStatus(&self) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT; + } + impl ::windows_core::RuntimeName for IFabricGetReplicatorStatusResult {} + impl IFabricGetReplicatorStatusResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicatorStatusResult_Impl, + const OFFSET: isize, + >() -> IFabricGetReplicatorStatusResult_Vtbl { + unsafe extern "system" fn get_ReplicatorStatus< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricGetReplicatorStatusResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_ReplicatorStatus() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_ReplicatorStatus: get_ReplicatorStatus::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStringListResult_Impl: Sized { + fn GetStrings( + &self, + itemcount: *mut u32, + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + } + impl ::windows_core::RuntimeName for IFabricStringListResult {} + impl IFabricStringListResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStringListResult_Impl, + const OFFSET: isize, + >() -> IFabricStringListResult_Vtbl { + unsafe extern "system" fn GetStrings< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStringListResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + itemcount: *mut u32, + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.GetStrings( + ::core::mem::transmute_copy(&itemcount), + ::core::mem::transmute_copy(&buffereditems), + ) + .into() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + GetStrings: GetStrings::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + pub trait IFabricStringResult_Impl: Sized { + fn get_String(&self) -> ::windows_core::PCWSTR; + } + impl ::windows_core::RuntimeName for IFabricStringResult {} + impl IFabricStringResult_Vtbl { + pub const fn new< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStringResult_Impl, + const OFFSET: isize, + >() -> IFabricStringResult_Vtbl { + unsafe extern "system" fn get_String< + Identity: ::windows_core::IUnknownImpl, + Impl: IFabricStringResult_Impl, + const OFFSET: isize, + >( + this: *mut ::core::ffi::c_void, + ) -> ::windows_core::PCWSTR { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.get_String() + } + Self { + base__: ::windows_core::IUnknown_Vtbl::new::(), + get_String: get_String::, + } + } + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + } + } + } + pub const FABRIC_APPLICATION_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND = + FABRIC_APPLICATION_DEFINITION_KIND(1i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_ALL: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_DEFINITION_KIND_FILTER(65535i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_COMPOSE: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(2i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(4i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = + FABRIC_APPLICATION_DEFINITION_KIND(65535i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); + pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); + pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_AUTOMATIC: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(2i32); + pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_DEFAULT: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); + pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_INVALID: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(0i32); + pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_MANUAL: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(3i32); + pub const FABRIC_APPLICATION_STATUS_CREATING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(3i32); + pub const FABRIC_APPLICATION_STATUS_DELETING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(4i32); + pub const FABRIC_APPLICATION_STATUS_FAILED: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(5i32); + pub const FABRIC_APPLICATION_STATUS_INVALID: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(0i32); + pub const FABRIC_APPLICATION_STATUS_READY: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(1i32); + pub const FABRIC_APPLICATION_STATUS_UPGRADING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(2i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_COMPOSE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(2i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_ALL: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(65535i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_COMPOSE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(2i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(4i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_PACKAGE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(1i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_INVALID: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(0i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); + pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_PACKAGE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); + pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(2i32); + pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(4i32); + pub const FABRIC_APPLICATION_TYPE_STATUS_INVALID: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(0i32); + pub const FABRIC_APPLICATION_TYPE_STATUS_PROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(1i32); + pub const FABRIC_APPLICATION_TYPE_STATUS_UNPROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(3i32); + pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MAXNODES: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(2i32); + pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_METRICS: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(4i32); + pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); + pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); + pub const FABRIC_APPLICATION_UPGRADE_KIND_INVALID: FABRIC_APPLICATION_UPGRADE_KIND = + FABRIC_APPLICATION_UPGRADE_KIND(0i32); + pub const FABRIC_APPLICATION_UPGRADE_KIND_ROLLING: FABRIC_APPLICATION_UPGRADE_KIND = + FABRIC_APPLICATION_UPGRADE_KIND(1i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(6i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_INVALID: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(0i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_COMPLETED: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(2i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_PENDING: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(7i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(4i32); + pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_PENDING: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); + pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; + pub const FABRIC_CHAOS_EVENT_KIND_EXECUTING_FAULTS: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(2i32); + pub const FABRIC_CHAOS_EVENT_KIND_INVALID: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(0i32); + pub const FABRIC_CHAOS_EVENT_KIND_STARTED: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(1i32); + pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(6i32); + pub const FABRIC_CHAOS_EVENT_KIND_TEST_ERROR: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(5i32); + pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(4i32); + pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(3i32); + pub const FABRIC_CHAOS_SCHEDULE_STATUS_ACTIVE: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(1i32); + pub const FABRIC_CHAOS_SCHEDULE_STATUS_EXPIRED: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(2i32); + pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(0i32); + pub const FABRIC_CHAOS_SCHEDULE_STATUS_PENDING: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(3i32); + pub const FABRIC_CHAOS_SCHEDULE_STATUS_STOPPED: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(4i32); + pub const FABRIC_CHAOS_STATUS_INVALID: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(0i32); + pub const FABRIC_CHAOS_STATUS_RUNNING: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(1i32); + pub const FABRIC_CHAOS_STATUS_STOPPED: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(2i32); + pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_AAD: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = + FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(1i32); + pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = + FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); + pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); + pub const FABRIC_CLIENT_ROLE_UNKNOWN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(0i32); + pub const FABRIC_CLIENT_ROLE_USER: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(1i32); + pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); + pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); + pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_EXEHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(2i32); + pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_INVALID: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(0i32); + pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_NONE: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(1i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_INVALID: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(0i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_READY: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(3i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STOPPED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(5i32); + pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_TERMINATED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(6i32); + pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); + pub const FABRIC_DATA_LOSS_MODE_INVALID: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(0i32); + pub const FABRIC_DATA_LOSS_MODE_PARTIAL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(1i32); + pub const FABRIC_DEPLOYMENT_STATUS_ACTIVATING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(2i32); + pub const FABRIC_DEPLOYMENT_STATUS_ACTIVE: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(3i32); + pub const FABRIC_DEPLOYMENT_STATUS_DEACTIVATING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(5i32); + pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(1i32); + pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(0i32); + pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(4i32); + pub const FABRIC_DIAGNOSTICS_SINKS_KIND_AZUREINTERNAL: FABRIC_DIAGNOSTICS_SINKS_KIND = + FABRIC_DIAGNOSTICS_SINKS_KIND(1i32); + pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = + FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); + pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_INVALID: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(0i32); + pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_MANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(2i32); + pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); + pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(2i32); + pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_PROCESS: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(3i32); + pub const FABRIC_DLLHOST_ISOLATION_POLICY_INVALID: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(0i32); + pub const FABRIC_DLLHOST_ISOLATION_POLICY_SHARED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(1i32); + pub const FABRIC_ENTRY_POINT_STATUS_INVALID: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(0i32); + pub const FABRIC_ENTRY_POINT_STATUS_PENDING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(1i32); + pub const FABRIC_ENTRY_POINT_STATUS_STARTED: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(3i32); + pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(2i32); + pub const FABRIC_ENTRY_POINT_STATUS_STOPPED: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(5i32); + pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(4i32); + pub const FABRIC_ENUMERATION_BEST_EFFORT_FINISHED: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(4i32); + pub const FABRIC_ENUMERATION_BEST_EFFORT_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(5i32); + pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(1i32); + pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(8i32); + pub const FABRIC_ENUMERATION_CONSISTENT_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(10i32); + pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(2i32); + pub const FABRIC_ENUMERATION_FINISHED_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(12i32); + pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(0i32); + pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(3i32); + pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(15i32); + pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(3i32); + pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(2i32); + pub const FABRIC_EXEHOST_WORKING_FOLDER_INVALID: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(0i32); + pub const FABRIC_EXEHOST_WORKING_FOLDER_WORK: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(1i32); + pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017662i32); + pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); + pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017764i32); + pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017721i32); + pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); + pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017722i32); + pub const FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017767i32); + pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017765i32); + pub const FABRIC_E_APPLICATION_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017766i32); + pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017768i32); + pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017648i32); + pub const FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017762i32); + pub const FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017761i32); + pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017601i32); + pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); + pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017603i32); + pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017664i32); + pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); + pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); + pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); + pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017610i32); + pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017611i32); + pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); + pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017594i32); + pub const FABRIC_E_CERTIFICATE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017641i32); + pub const FABRIC_E_CHAOS_ALREADY_RUNNING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017640i32); + pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); + pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017733i32); + pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); + pub const FABRIC_E_COMPOSE_DEPLOYMENT_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017619i32); + pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017618i32); + pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017589i32); + pub const FABRIC_E_CONFIGURATION_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017735i32); + pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017756i32); + pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017757i32); + pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); + pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017646i32); + pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); + pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017659i32); + pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017650i32); + pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); + pub const FABRIC_E_CORRUPTED_IMAGE_STORE_OBJECT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017723i32); + pub const FABRIC_E_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017595i32); + pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017734i32); + pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); + pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017647i32); + pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); + pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); + pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); + pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); + pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017671i32); + pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); + pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); + pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017585i32); + pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); + pub const FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017716i32); + pub const FABRIC_E_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017639i32); + pub const FABRIC_E_FABRIC_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017715i32); + pub const FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017714i32); + pub const FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017713i32); + pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017717i32); + pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); + pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017719i32); + pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017607i32); + pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); + pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017796i32); + pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017663i32); + pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); + pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017705i32); + pub const FABRIC_E_HEALTH_MAX_REPORTS_REACHED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017712i32); + pub const FABRIC_E_HEALTH_STALE_REPORT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017711i32); + pub const FABRIC_E_IMAGEBUILDER_ACCESS_DENIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017693i32); + pub const FABRIC_E_IMAGEBUILDER_INVALID_MSI_FILE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017692i32); + pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017642i32); + pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); + pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017720i32); + pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017754i32); + pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); + pub const FABRIC_E_INSTANCE_ID_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017680i32); + pub const FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017677i32); + pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); + pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017738i32); + pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); + pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); + pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); + pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017674i32); + pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); + pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); + pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017746i32); + pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); + pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); + pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); + pub const FABRIC_E_INVALID_FOR_STATEFUL_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017617i32); + pub const FABRIC_E_INVALID_FOR_STATELESS_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017616i32); + pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); + pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); + pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); + pub const FABRIC_E_INVALID_PACKAGE_SHARING_POLICY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017676i32); + pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); + pub const FABRIC_E_INVALID_PARTITION_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017667i32); + pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017624i32); + pub const FABRIC_E_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017741i32); + pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017670i32); + pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017623i32); + pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); + pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); + pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017600i32); + pub const FABRIC_E_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); + pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); + pub const FABRIC_E_INVALID_TEST_COMMAND_STATE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017645i32); + pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017614i32); + pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017745i32); + pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017657i32); + pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); + pub const FABRIC_E_INVALID_X509_STORE_LOCATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017744i32); + pub const FABRIC_E_INVALID_X509_STORE_NAME: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017743i32); + pub const FABRIC_E_INVALID_X509_THUMBPRINT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017742i32); + pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); + pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); + pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); + pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); + pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017668i32); + pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); + pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); + pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017658i32); + pub const FABRIC_E_NAME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017792i32); + pub const FABRIC_E_NAME_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017791i32); + pub const FABRIC_E_NAME_NOT_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017790i32); + pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); + pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); + pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017678i32); + pub const FABRIC_E_NODE_IS_DOWN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017633i32); + pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); + pub const FABRIC_E_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); + pub const FABRIC_E_NODE_TRANSITION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017632i32); + pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); + pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); + pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); + pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); + pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); + pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); + pub const FABRIC_E_ONLY_VALID_FOR_STATEFUL_PERSISTENT_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017615i32); + pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017784i32); + pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017590i32); + pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); + pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); + pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017675i32); + pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017666i32); + pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); + pub const FABRIC_E_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); + pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); + pub const FABRIC_E_PROPERTY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017783i32); + pub const FABRIC_E_RECONFIGURATION_PENDING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017782i32); + pub const FABRIC_E_RELIABLE_SESSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017702i32); + pub const FABRIC_E_RELIABLE_SESSION_CANNOT_CONNECT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017701i32); + pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017683i32); + pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017698i32); + pub const FABRIC_E_RELIABLE_SESSION_MANAGER_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017700i32); + pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017697i32); + pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017696i32); + pub const FABRIC_E_RELIABLE_SESSION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017687i32); + pub const FABRIC_E_RELIABLE_SESSION_QUEUE_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017686i32); + pub const FABRIC_E_RELIABLE_SESSION_QUOTA_EXCEEDED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017685i32); + pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017699i32); + pub const FABRIC_E_RELIABLE_SESSION_SERVICE_FAULTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017684i32); + pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017703i32); + pub const FABRIC_E_REPAIR_TASK_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017689i32); + pub const FABRIC_E_REPAIR_TASK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017688i32); + pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017681i32); + pub const FABRIC_E_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017781i32); + pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017752i32); + pub const FABRIC_E_RESTORE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017609i32); + pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017628i32); + pub const FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017608i32); + pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017665i32); + pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); + pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017588i32); + pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017592i32); + pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017708i32); + pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017660i32); + pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017776i32); + pub const FABRIC_E_SERVICE_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017780i32); + pub const FABRIC_E_SERVICE_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017779i32); + pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017732i32); + pub const FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017751i32); + pub const FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017750i32); + pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017704i32); + pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017777i32); + pub const FABRIC_E_SERVICE_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); + pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); + pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017775i32); + pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); + pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017760i32); + pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017774i32); + pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017758i32); + pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017599i32); + pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017598i32); + pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017591i32); + pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); + pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017644i32); + pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); + pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); + pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017690i32); + pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); + pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017679i32); + pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); + pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017625i32); + pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017626i32); + pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017654i32); + pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); + pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); + pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017656i32); + pub const FABRIC_E_VOLUME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017597i32); + pub const FABRIC_E_VOLUME_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017596i32); + pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); + pub const FABRIC_FAULT_TYPE_INVALID: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(0i32); + pub const FABRIC_FAULT_TYPE_PERMANENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(1i32); + pub const FABRIC_FAULT_TYPE_TRANSIENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(2i32); + pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(4i32); + pub const FABRIC_HEALTH_ENTITY_KIND_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(8i32); + pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(6i32); + pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(7i32); + pub const FABRIC_HEALTH_ENTITY_KIND_INVALID: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(0i32); + pub const FABRIC_HEALTH_ENTITY_KIND_NODE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(1i32); + pub const FABRIC_HEALTH_ENTITY_KIND_PARTITION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(2i32); + pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(5i32); + pub const FABRIC_HEALTH_ENTITY_KIND_SERVICE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(3i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(18i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(8i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION_TYPE_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(19i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(17i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(5i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGE: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(16i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(4i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(1i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(0i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(12i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(7i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(14i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(3i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(13i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(2i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(15i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(6i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_SYSTEM_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(9i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DELTA_NODES_CHECK: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(20i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(10i32); + pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(11i32); + pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; + pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(6i32); + pub const FABRIC_HEALTH_REPORT_KIND_CLUSTER: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(9i32); + pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(7i32); + pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(8i32); + pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(0i32); + pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(4i32); + pub const FABRIC_HEALTH_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(3i32); + pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(5i32); + pub const FABRIC_HEALTH_REPORT_KIND_STATEFUL_SERVICE_REPLICA: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(1i32); + pub const FABRIC_HEALTH_REPORT_KIND_STATELESS_SERVICE_INSTANCE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(2i32); + pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); + pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(65535i32); + pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(0i32); + pub const FABRIC_HEALTH_STATE_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(8i32); + pub const FABRIC_HEALTH_STATE_FILTER_NONE: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(1i32); + pub const FABRIC_HEALTH_STATE_FILTER_OK: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(2i32); + pub const FABRIC_HEALTH_STATE_FILTER_WARNING: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(4i32); + pub const FABRIC_HEALTH_STATE_INVALID: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(0i32); + pub const FABRIC_HEALTH_STATE_OK: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(1i32); + pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); + pub const FABRIC_HEALTH_STATE_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); + pub const FABRIC_HOST_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(2i32); + pub const FABRIC_HOST_ISOLATION_MODE_NONE: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(0i32); + pub const FABRIC_HOST_ISOLATION_MODE_PROCESS: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(1i32); + pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); + pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); + pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); + pub const FABRIC_IGNORE_SEQUENCE_NUMBER_CHECK: u32 = 0u32; + pub const FABRIC_INFINITE_DURATION: u32 = 4294967295u32; + pub const FABRIC_INVALID_ATOMIC_GROUP_ID: i32 = -1i32; + pub const FABRIC_INVALID_INSTANCE_ID: i32 = -1i32; + pub const FABRIC_INVALID_NODE_INSTANCE_ID: u32 = 0u32; + pub const FABRIC_INVALID_OPERATION_INDEX: u32 = 4294967295u32; + pub const FABRIC_INVALID_REPLICA_ID: i32 = -1i32; + pub const FABRIC_INVALID_SEQUENCE_NUMBER: i32 = -1i32; + pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_DEFAULT: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(0i32); + pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_LOGICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(2i32); + pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_PHYSICAL: + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(1i32); + pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_REBUILD: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = + FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(3i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_INACTIVE: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(0i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_MIGRATION: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(1i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_RESTORE_SOURCE_BACKUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_SOURCE_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(4i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_ACTIVE: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(5i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(3i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_SWAP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_CANCELED: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(3i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_COMPLETED: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(2i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_FAILED: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_INACTIVE: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(0i32); + pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_PROCESSING: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(1i32); + pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); + pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_INVALID: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(0i32); + pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NONE: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(1i32); + pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NON_BLOCKING_QUORUM_ACKED: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(2i32); + pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_ESE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(1i32); + pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_TSTORE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(2i32); + pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_UNKNOWN: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(0i32); + pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); + pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = + FABRIC_LOCAL_STORE_KIND(0i32); + pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_INVALID: + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(0i32); + pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); + pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_ROLLBACK: + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); + pub const FABRIC_MOVE_COST_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); + pub const FABRIC_MOVE_COST_LOW: FABRIC_MOVE_COST = FABRIC_MOVE_COST(1i32); + pub const FABRIC_MOVE_COST_MEDIUM: FABRIC_MOVE_COST = FABRIC_MOVE_COST(2i32); + pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); + pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(0i32); + pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(1i32); + pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(2i32); + pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_INVALID: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(0i32); + pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(1i32); + pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(2i32); + pub const FABRIC_NETWORK_STATUS_CREATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(2i32); + pub const FABRIC_NETWORK_STATUS_DELETING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(3i32); + pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); + pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(65535i32); + pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(2i32); + pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(0i32); + pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(4i32); + pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(16i32); + pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(1i32); + pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(8i32); + pub const FABRIC_NETWORK_STATUS_INVALID: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(0i32); + pub const FABRIC_NETWORK_STATUS_READY: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(1i32); + pub const FABRIC_NETWORK_STATUS_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); + pub const FABRIC_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); + pub const FABRIC_NETWORK_TYPE_INVALID: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(0i32); + pub const FABRIC_NETWORK_TYPE_LOCAL: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(1i32); + pub const FABRIC_NODE_DEACTIVATION_INTENT_INVALID: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(0i32); + pub const FABRIC_NODE_DEACTIVATION_INTENT_PAUSE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(1i32); + pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_DATA: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(3i32); + pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_NODE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(4i32); + pub const FABRIC_NODE_DEACTIVATION_INTENT_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(2i32); + pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(3i32); + pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(0i32); + pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: + FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(2i32); + pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: + FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); + pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); + pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INFRASTRUCTURE: + FABRIC_NODE_DEACTIVATION_TASK_TYPE = FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); + pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INVALID: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(0i32); + pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); + pub const FABRIC_NODE_TRANSITION_TYPE_INVALID: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(0i32); + pub const FABRIC_NODE_TRANSITION_TYPE_START: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(1i32); + pub const FABRIC_NODE_TRANSITION_TYPE_STOP: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(2i32); + pub const FABRIC_NODE_UPGRADE_PHASE_INVALID: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(0i32); + pub const FABRIC_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(3i32); + pub const FABRIC_NODE_UPGRADE_PHASE_PRE_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(1i32); + pub const FABRIC_NODE_UPGRADE_PHASE_UPGRADING: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(2i32); + pub const FABRIC_OPERATION_TYPE_ATOMIC_GROUP_OPERATION: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(32i32); + pub const FABRIC_OPERATION_TYPE_COMMIT_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(64i32); + pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(16i32); + pub const FABRIC_OPERATION_TYPE_END_OF_STREAM: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(2i32); + pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(240i32); + pub const FABRIC_OPERATION_TYPE_INVALID: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(0i32); + pub const FABRIC_OPERATION_TYPE_NORMAL: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(1i32); + pub const FABRIC_OPERATION_TYPE_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(128i32); + pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_ALL: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(1i32); + pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CODE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(2i32); + pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CONFIG: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(3i32); + pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_DATA: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(4i32); + pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); + pub const FABRIC_PARTITION_KEY_TYPE_INT64: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(2i32); + pub const FABRIC_PARTITION_KEY_TYPE_INVALID: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(0i32); + pub const FABRIC_PARTITION_KEY_TYPE_NONE: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(1i32); + pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(3i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(7i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(2i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: + FABRIC_SAFETY_CHECK_KIND = FABRIC_SAFETY_CHECK_KIND(6i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: + FABRIC_SAFETY_CHECK_KIND = FABRIC_SAFETY_CHECK_KIND(3i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(4i32); + pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: + FABRIC_SAFETY_CHECK_KIND = FABRIC_SAFETY_CHECK_KIND(5i32); + pub const FABRIC_PARTITION_SCHEME_INVALID: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(0i32); + pub const FABRIC_PARTITION_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(3i32); + pub const FABRIC_PARTITION_SCHEME_SINGLETON: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(1i32); + pub const FABRIC_PARTITION_SCHEME_UNIFORM_INT64_RANGE: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(2i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(2i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(0i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_PARTITION_ID: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(4i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_RANDOM: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(5i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(1i32); + pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(3i32); + pub const FABRIC_PLACEMENT_POLICY_INVALID: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(0i32); + pub const FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(1i32); + pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(5i32); + pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(3i32); + pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(2i32); + pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(4i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_EXISTS: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(3i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_SEQUENCE: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(4i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_INVALID: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(0i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(1i32); + pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); + pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); + pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); + pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); + pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); + pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); + pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); + pub const FABRIC_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = + FABRIC_PROTECTION_LEVEL(2i32); + pub const FABRIC_PROTECTION_LEVEL_NONE: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(0i32); + pub const FABRIC_PROTECTION_LEVEL_SIGN: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(1i32); + pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_EXTERNAL_STORE: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); + pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_IMAGE_STORE_PATH: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(1i32); + pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); + pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(5i32); + pub const FABRIC_QUERY_NODE_STATUS_DISABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(4i32); + pub const FABRIC_QUERY_NODE_STATUS_DOWN: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(2i32); + pub const FABRIC_QUERY_NODE_STATUS_ENABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(3i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_DEFAULT: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(0i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(16i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(8i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_DOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(2i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_ENABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(4i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(64i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(32i32); + pub const FABRIC_QUERY_NODE_STATUS_FILTER_UP: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(1i32); + pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(0i32); + pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(7i32); + pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(6i32); + pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(1i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CHANGEROLE: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(4i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CLOSE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(16i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_INVALID: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(0i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_NONE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(1i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ONDATALOSS: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(64i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_UPDATEEPOCH: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); + pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_WAITFORCATCHUP: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CHANGEROLE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(4i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CLOSE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(8i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_INVALID: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(0i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_NONE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(1i32); + pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_OPEN: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(2i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_INVALID: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(0i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_IN_QUORUM_LOSS: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_NOT_READY: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(2i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); + pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DOWN: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(4i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DROPPED: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(5i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_ALL: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DEFAULT: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(0i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DOWN: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(8i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DROPPED: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(16i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_INBUILD: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(1i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_READY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(4i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_STANDBY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INVALID: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(0i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_READY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(3i32); + pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); + pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(1i32); + pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(4i32); + pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(3i32); + pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(5i32); + pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(0i32); + pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(2i32); + pub const FABRIC_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(2i32); + pub const FABRIC_QUORUM_LOSS_MODE_INVALID: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(0i32); + pub const FABRIC_QUORUM_LOSS_MODE_QUORUM_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(1i32); + pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(7i32); + pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(6i32); + pub const FABRIC_RECONFIGURATION_PHASE_INVALID: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(0i32); + pub const FABRIC_RECONFIGURATION_PHASE_NONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(1i32); + pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(3i32); + pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(5i32); + pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(4i32); + pub const FABRIC_RECONFIGURATION_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(2i32); + pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(2i32); + pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(0i32); + pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(4i32); + pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(3i32); + pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(1i32); + pub const FABRIC_REPAIR_IMPACT_KIND_INVALID: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(0i32); + pub const FABRIC_REPAIR_IMPACT_KIND_NODE: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(1i32); + pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_INVALID: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(0i32); + pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_NONE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(1i32); + pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_DATA: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(3i32); + pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_NODE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(4i32); + pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); + pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); + pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); + pub const FABRIC_REPAIR_TARGET_KIND_INVALID: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(0i32); + pub const FABRIC_REPAIR_TARGET_KIND_NODE: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(1i32); + pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(2i32); + pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(1i32); + pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(4i32); + pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(0i32); + pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(7i32); + pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_IN_PROGRESS: + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); + pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_NOT_STARTED: + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(0i32); + pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); + pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SUCCEEDED: + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(2i32); + pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); + pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_PREPARING_HEALTH_CHECK : FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS ( 1i32 ) ; + pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_RESTORING_HEALTH_CHECK : FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS ( 2i32 ) ; + pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_NONE: + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = + FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(0i32); + pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(2i32); + pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(8i32); + pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(4i32); + pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(0i32); + pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(16i32); + pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(1i32); + pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(8i32); + pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(2i32); + pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(64i32); + pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(1i32); + pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(16i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_ACTIVE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(63i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_ALL: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(127i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_APPROVED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(8i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_CLAIMED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(2i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(64i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(1i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_DEFAULT: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(0i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(16i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(4i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_READY_TO_EXECUTE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(24i32); + pub const FABRIC_REPAIR_TASK_STATE_FILTER_RESTORING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(32i32); + pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(0i32); + pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(4i32); + pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(32i32); + pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); + pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); + pub const FABRIC_REPLICATOR_COPY_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(128i32); + pub const FABRIC_REPLICATOR_COPY_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(256i32); + pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); + pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(65536i32); + pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); + pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); + pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); + pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); + pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); + pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); + pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); + pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); + pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); + pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); + pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); + pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(8192i32); + pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); + pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); + pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); + pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); + pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); + pub const FABRIC_REPLICA_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(2i32); + pub const FABRIC_REPLICA_OPEN_MODE_INVALID: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(0i32); + pub const FABRIC_REPLICA_OPEN_MODE_NEW: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(1i32); + pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); + pub const FABRIC_REPLICA_ROLE_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); + pub const FABRIC_REPLICA_ROLE_NONE: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(1i32); + pub const FABRIC_REPLICA_ROLE_PRIMARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(2i32); + pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); + pub const FABRIC_REPLICA_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(2i32); + pub const FABRIC_REPLICA_SET_QUORUM_INVALID: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(0i32); + pub const FABRIC_REPLICA_SET_WRITE_QUORUM: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(1i32); + pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); + pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); + pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); + pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_INVALID: + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(0i32); + pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = + FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(1i32); + pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_INVALID: FABRIC_RESTART_NODE_DESCRIPTION_KIND = + FABRIC_RESTART_NODE_DESCRIPTION_KIND(0i32); + pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_RESTART_NODE_DESCRIPTION_KIND = FABRIC_RESTART_NODE_DESCRIPTION_KIND(1i32); + pub const FABRIC_RESTART_PARTITION_MODE_ALL_REPLICAS_OR_INSTANCES: + FABRIC_RESTART_PARTITION_MODE = FABRIC_RESTART_PARTITION_MODE(1i32); + pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(0i32); + pub const FABRIC_RESTART_PARTITION_MODE_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(2i32); + pub const FABRIC_ROLLING_UPGRADE_MODE_INVALID: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(0i32); + pub const FABRIC_ROLLING_UPGRADE_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(3i32); + pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_AUTO: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(1i32); + pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_MANUAL: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(2i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_ENABLE_DELTAS: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1024i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FAILURE_ACTION: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(8i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FORCE_RESTART: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_RETRY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_STABLE: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(32i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_WAIT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_POLICY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_NONE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(0i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_REPLICA_SET_CHECK_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_DOMAIN_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(256i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_HEALTH_POLICY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_MODE: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); + pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); + pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(0i32); + pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = + FABRIC_SCALING_MECHANISM_KIND(0i32); + pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); + pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); + pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_PARTITION_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(1i32); + pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_SERVICE_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(2i32); + pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(0i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(3i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(255i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(0i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(2i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(1i32); + pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(4i32); + pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(1i32); + pub const FABRIC_SERVICE_CORRELATION_SCHEME_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(1i32); + pub const FABRIC_SERVICE_CORRELATION_SCHEME_ALIGNED_AFFINITY: + FABRIC_SERVICE_CORRELATION_SCHEME = FABRIC_SERVICE_CORRELATION_SCHEME(2i32); + pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(0i32); + pub const FABRIC_SERVICE_CORRELATION_SCHEME_NONALIGNED_AFFINITY: + FABRIC_SERVICE_CORRELATION_SCHEME = FABRIC_SERVICE_CORRELATION_SCHEME(3i32); + pub const FABRIC_SERVICE_DESCRIPTION_KIND_INVALID: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(0i32); + pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(2i32); + pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(1i32); + pub const FABRIC_SERVICE_KIND_INVALID: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(0i32); + pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); + pub const FABRIC_SERVICE_KIND_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); + pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); + pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_LOW: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(1i32); + pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_MEDIUM: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(2i32); + pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); + pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NAME_PREFIX: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); + pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NONE: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(0i32); + pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); + pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); + pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); + pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_GRANTED: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); + pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_INVALID: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(0i32); + pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NOT_PRIMARY: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(3i32); + pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NO_WRITE_QUORUM: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(4i32); + pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_RECONFIGURATION_PENDING: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(2i32); + pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(2i32); + pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(0i32); + pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(3i32); + pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(1i32); + pub const FABRIC_SERVICE_REPLICA_KIND_INVALID: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(0i32); + pub const FABRIC_SERVICE_REPLICA_KIND_KEY_VALUE_STORE: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(1i32); + pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(0i32); + pub const FABRIC_SERVICE_ROLE_STATEFUL_PRIMARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(2i32); + pub const FABRIC_SERVICE_ROLE_STATEFUL_SECONDARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(3i32); + pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(1i32); + pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_DISABLED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); + pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_INVALID: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(0i32); + pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_NOT_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(2i32); + pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(3i32); + pub const FABRIC_START_NODE_DESCRIPTION_KIND_INVALID: FABRIC_START_NODE_DESCRIPTION_KIND = + FABRIC_START_NODE_DESCRIPTION_KIND(0i32); + pub const FABRIC_START_NODE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_START_NODE_DESCRIPTION_KIND = FABRIC_START_NODE_DESCRIPTION_KIND(1i32); + pub const FABRIC_STATEFUL_SERVICE_CORRELATIONS: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(128i32); + pub const FABRIC_STATEFUL_SERVICE_METRICS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(256i32); + pub const FABRIC_STATEFUL_SERVICE_MIN_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); + pub const FABRIC_STATEFUL_SERVICE_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); + pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); + pub const FABRIC_STATEFUL_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); + pub const FABRIC_STATEFUL_SERVICE_POLICY_LIST: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); + pub const FABRIC_STATEFUL_SERVICE_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); + pub const FABRIC_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); + pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); + pub const FABRIC_STATEFUL_SERVICE_SETTINGS_NONE: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(0i32); + pub const FABRIC_STATEFUL_SERVICE_SETTINGS_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(2i32); + pub const FABRIC_STATEFUL_SERVICE_SETTINGS_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); + pub const FABRIC_STATEFUL_SERVICE_SETTINGS_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); + pub const FABRIC_STATEFUL_SERVICE_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); + pub const FABRIC_STATEFUL_SERVICE_TARGET_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); + pub const FABRIC_STATELESS_SERVICE_CORRELATIONS: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); + pub const FABRIC_STATELESS_SERVICE_INSTANCE_COUNT: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); + pub const FABRIC_STATELESS_SERVICE_METRICS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); + pub const FABRIC_STATELESS_SERVICE_MOVE_COST: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); + pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); + pub const FABRIC_STATELESS_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); + pub const FABRIC_STATELESS_SERVICE_POLICY_LIST: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); + pub const FABRIC_STATELESS_SERVICE_SCALING_POLICY: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); + pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_INVALID: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(0i32); + pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(1i32); + pub const FABRIC_STORE_BACKUP_OPTION_FULL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(1i32); + pub const FABRIC_STORE_BACKUP_OPTION_INCREMENTAL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(2i32); + pub const FABRIC_STORE_BACKUP_OPTION_TRUNCATE_LOGS_ONLY: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(3i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_COMPLETED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(3i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FAULTED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(4i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: + FABRIC_TEST_COMMAND_PROGRESS_STATE = FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_INVALID: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(0i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_ROLLING_BACK: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(2i32); + pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(32i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_COMPLETED_SUCCESSFULLY: + FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(0i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_FAILED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(16i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(64i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_ROLLING_BACK: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(2i32); + pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(1i32); + pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(0i32); + pub const FABRIC_TEST_COMMAND_TYPE_FILTER_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); + pub const FABRIC_TEST_COMMAND_TYPE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(0i32); + pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(1i32); + pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_QUORUM_LOSS: + FABRIC_TEST_COMMAND_TYPE_FILTER = FABRIC_TEST_COMMAND_TYPE_FILTER(2i32); + pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_RESTART: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(4i32); + pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(1i32); + pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(2i32); + pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_RESTART_PARTITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(4i32); + pub const FABRIC_TEST_COMMAND_TYPE_START_NODE_TRANSITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(8i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_DEFAULT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(0i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: + FABRIC_TRANSACTION_ISOLATION_LEVEL = FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED: + FABRIC_TRANSACTION_ISOLATION_LEVEL = FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: + FABRIC_TRANSACTION_ISOLATION_LEVEL = FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); + pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); + pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(3i32); + pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(0i32); + pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(2i32); + pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(1i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(2i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(1i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(0i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_OVERALL_UPGRADE_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(4i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_PROCESSING_FAILURE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(5i32); + pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(3i32); + pub const FABRIC_UPGRADE_KIND_INVALID: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(0i32); + pub const FABRIC_UPGRADE_KIND_ROLLING: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(1i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(7i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(2i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(3i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(4i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(5i32); + pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RESOURCE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); + pub const FABRIC_UPGRADE_SAFETY_CHECK_KIND_INVALID: FABRIC_UPGRADE_SAFETY_CHECK_KIND = + FABRIC_UPGRADE_SAFETY_CHECK_KIND(0i32); + pub const FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(1i32); + pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); + pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(2i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(1i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(7i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(5i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(4i32); + pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(3i32); + pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(12i32); + pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(1i32); + pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(0i32); + pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(1i32); + pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(0i32); + pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(2i32); + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND {} + impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_DEFINITION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND_FILTER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY {} + impl ::core::clone::Clone for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_STATUS {} + impl ::core::clone::Clone for FABRIC_APPLICATION_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_STATUS {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_TYPE_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_KIND {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_UPGRADE_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_STATE {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_APPLICATION_UPGRADE_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_KIND {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CHAOS_EVENT_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENT_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CHAOS_EVENT_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_STATUS {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CHAOS_SCHEDULE_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CHAOS_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_CHAOS_STATUS {} + impl ::core::clone::Clone for FABRIC_CHAOS_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CHAOS_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CHAOS_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CHAOS_STATUS").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND {} + impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CLIENT_ROLE(pub i32); + impl ::core::marker::Copy for FABRIC_CLIENT_ROLE {} + impl ::core::clone::Clone for FABRIC_CLIENT_ROLE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CLIENT_ROLE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_ROLE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CLIENT_ROLE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CLIENT_ROLE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_TYPE {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_CODE_PACKAGE_EVENT_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_DATA_LOSS_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_DATA_LOSS_MODE {} + impl ::core::clone::Clone for FABRIC_DATA_LOSS_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_DATA_LOSS_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_DATA_LOSS_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_DATA_LOSS_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_DATA_LOSS_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_DEPLOYMENT_STATUS {} + impl ::core::clone::Clone for FABRIC_DEPLOYMENT_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_DEPLOYMENT_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYMENT_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_DEPLOYMENT_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_DEPLOYMENT_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_DIAGNOSTICS_SINKS_KIND {} + impl ::core::clone::Clone for FABRIC_DIAGNOSTICS_SINKS_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_DIAGNOSTICS_SINKS_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_DIAGNOSTICS_SINKS_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_DIAGNOSTICS_SINKS_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_DIAGNOSTICS_SINKS_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_KIND {} + impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_DLLHOST_HOSTED_DLL_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); + impl ::core::marker::Copy for FABRIC_DLLHOST_ISOLATION_POLICY {} + impl ::core::clone::Clone for FABRIC_DLLHOST_ISOLATION_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_DLLHOST_ISOLATION_POLICY { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_ISOLATION_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_ISOLATION_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_DLLHOST_ISOLATION_POLICY") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_ENTRY_POINT_STATUS {} + impl ::core::clone::Clone for FABRIC_ENTRY_POINT_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_ENTRY_POINT_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_ENTRY_POINT_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_ENTRY_POINT_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_ENTRY_POINT_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_ENUMERATION_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_ENUMERATION_STATUS {} + impl ::core::clone::Clone for FABRIC_ENUMERATION_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_ENUMERATION_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_ENUMERATION_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_ENUMERATION_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_ENUMERATION_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_ERROR_CODE(pub i32); + impl ::core::marker::Copy for FABRIC_ERROR_CODE {} + impl ::core::clone::Clone for FABRIC_ERROR_CODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_ERROR_CODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_ERROR_CODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_ERROR_CODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_ERROR_CODE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); + impl ::core::marker::Copy for FABRIC_EXEHOST_WORKING_FOLDER {} + impl ::core::clone::Clone for FABRIC_EXEHOST_WORKING_FOLDER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_EXEHOST_WORKING_FOLDER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_EXEHOST_WORKING_FOLDER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_EXEHOST_WORKING_FOLDER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_EXEHOST_WORKING_FOLDER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_FAULT_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_FAULT_TYPE {} + impl ::core::clone::Clone for FABRIC_FAULT_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_FAULT_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_FAULT_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_FAULT_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_FAULT_TYPE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_HEALTH_ENTITY_KIND {} + impl ::core::clone::Clone for FABRIC_HEALTH_ENTITY_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HEALTH_ENTITY_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_ENTITY_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HEALTH_ENTITY_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HEALTH_ENTITY_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION_KIND {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVALUATION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HEALTH_EVALUATION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HEALTH_REPORT_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_KIND {} + impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HEALTH_REPORT_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_REPORT_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HEALTH_REPORT_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HEALTH_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HEALTH_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HEALTH_STATE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HEALTH_STATE_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HEALTH_STATE_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HEALTH_STATE_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HOST_ISOLATION_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_HOST_ISOLATION_MODE {} + impl ::core::clone::Clone for FABRIC_HOST_ISOLATION_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HOST_ISOLATION_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HOST_ISOLATION_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HOST_ISOLATION_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HOST_ISOLATION_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_HOST_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_HOST_TYPE {} + impl ::core::clone::Clone for FABRIC_HOST_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_HOST_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_HOST_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_HOST_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_HOST_TYPE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(pub i32); + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_KEY_VALUE_STORE_PROVIDER_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_LOCAL_STORE_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_LOCAL_STORE_KIND {} + impl ::core::clone::Clone for FABRIC_LOCAL_STORE_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_LOCAL_STORE_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_LOCAL_STORE_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_LOCAL_STORE_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_LOCAL_STORE_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(pub i32); + impl ::core::marker::Copy for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION {} + impl ::core::clone::Clone for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_MONITORED_UPGRADE_FAILURE_ACTION") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_MOVE_COST(pub i32); + impl ::core::marker::Copy for FABRIC_MOVE_COST {} + impl ::core::clone::Clone for FABRIC_MOVE_COST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_MOVE_COST { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_COST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_MOVE_COST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_MOVE_COST").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NETWORK_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_NETWORK_STATUS {} + impl ::core::clone::Clone for FABRIC_NETWORK_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NETWORK_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NETWORK_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NETWORK_STATUS_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_NETWORK_STATUS_FILTER {} + impl ::core::clone::Clone for FABRIC_NETWORK_STATUS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NETWORK_STATUS_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_STATUS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NETWORK_STATUS_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NETWORK_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_NETWORK_TYPE {} + impl ::core::clone::Clone for FABRIC_NETWORK_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NETWORK_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NETWORK_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NETWORK_TYPE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NODE_DEACTIVATION_INTENT(pub i32); + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_INTENT {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_INTENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_INTENT { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_INTENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_INTENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NODE_DEACTIVATION_INTENT") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NODE_DEACTIVATION_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_STATUS {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NODE_DEACTIVATION_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NODE_DEACTIVATION_TASK_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_TYPE {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NODE_DEACTIVATION_TASK_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NODE_TRANSITION_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_TYPE {} + impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NODE_TRANSITION_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NODE_TRANSITION_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_NODE_UPGRADE_PHASE(pub i32); + impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PHASE {} + impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PHASE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_NODE_UPGRADE_PHASE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_UPGRADE_PHASE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PHASE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_NODE_UPGRADE_PHASE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_OPERATION_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_OPERATION_TYPE {} + impl ::core::clone::Clone for FABRIC_OPERATION_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_OPERATION_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_OPERATION_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_OPERATION_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_OPERATION_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PACKAGE_SHARING_POLICY_SCOPE(pub i32); + impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY_SCOPE {} + impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PACKAGE_SHARING_POLICY_SCOPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_PARTITION_KEY_TYPE {} + impl ::core::clone::Clone for FABRIC_PARTITION_KEY_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PARTITION_KEY_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_KEY_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PARTITION_KEY_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PARTITION_KEY_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PARTITION_SCHEME(pub i32); + impl ::core::marker::Copy for FABRIC_PARTITION_SCHEME {} + impl ::core::clone::Clone for FABRIC_PARTITION_SCHEME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PARTITION_SCHEME { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_SCHEME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PARTITION_SCHEME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PARTITION_SCHEME") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PARTITION_SELECTOR_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR_TYPE {} + impl ::core::clone::Clone for FABRIC_PARTITION_SELECTOR_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PARTITION_SELECTOR_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_SELECTOR_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PARTITION_SELECTOR_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PLACEMENT_POLICY_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_TYPE {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PLACEMENT_POLICY_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PROPERTY_BATCH_OPERATION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_PROPERTY_BATCH_OPERATION_KIND {} + impl ::core::clone::Clone for FABRIC_PROPERTY_BATCH_OPERATION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PROPERTY_BATCH_OPERATION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PROPERTY_BATCH_OPERATION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PROPERTY_TYPE_ID(pub i32); + impl ::core::marker::Copy for FABRIC_PROPERTY_TYPE_ID {} + impl ::core::clone::Clone for FABRIC_PROPERTY_TYPE_ID { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PROPERTY_TYPE_ID { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PROPERTY_TYPE_ID { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PROPERTY_TYPE_ID { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PROPERTY_TYPE_ID") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PROTECTION_LEVEL(pub i32); + impl ::core::marker::Copy for FABRIC_PROTECTION_LEVEL {} + impl ::core::clone::Clone for FABRIC_PROTECTION_LEVEL { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PROTECTION_LEVEL { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PROTECTION_LEVEL { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PROTECTION_LEVEL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PROTECTION_LEVEL") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_PROVISION_APPLICATION_TYPE_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_KIND {} + impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_PROVISION_APPLICATION_TYPE_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_NODE_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS {} + impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_NODE_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_NODE_STATUS_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS_FILTER {} + impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_NODE_STATUS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_NODE_STATUS_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_REPLICATOR_OPERATION_NAME(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_REPLICATOR_OPERATION_NAME {} + impl ::core::clone::Clone for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_REPLICATOR_OPERATION_NAME") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_SERVICE_OPERATION_NAME(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_OPERATION_NAME {} + impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_OPERATION_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_SERVICE_OPERATION_NAME { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_SERVICE_OPERATION_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_OPERATION_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_SERVICE_OPERATION_NAME") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_SERVICE_PARTITION_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_PARTITION_STATUS {} + impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_PARTITION_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_SERVICE_PARTITION_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_SERVICE_PARTITION_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_PARTITION_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_SERVICE_PARTITION_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS {} + impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_SERVICE_REPLICA_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER {} + impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUERY_SERVICE_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_STATUS {} + impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUERY_SERVICE_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_SERVICE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUERY_SERVICE_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_QUORUM_LOSS_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_QUORUM_LOSS_MODE {} + impl ::core::clone::Clone for FABRIC_QUORUM_LOSS_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_QUORUM_LOSS_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_QUORUM_LOSS_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_QUORUM_LOSS_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_QUORUM_LOSS_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_RECONFIGURATION_PHASE(pub i32); + impl ::core::marker::Copy for FABRIC_RECONFIGURATION_PHASE {} + impl ::core::clone::Clone for FABRIC_RECONFIGURATION_PHASE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_RECONFIGURATION_PHASE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_RECONFIGURATION_PHASE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_PHASE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_RECONFIGURATION_PHASE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_RECONFIGURATION_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_RECONFIGURATION_TYPE {} + impl ::core::clone::Clone for FABRIC_RECONFIGURATION_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_RECONFIGURATION_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_RECONFIGURATION_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_RECONFIGURATION_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_IMPACT_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_IMPACT_KIND {} + impl ::core::clone::Clone for FABRIC_REPAIR_IMPACT_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_IMPACT_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_IMPACT_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_IMPACT_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_NODE_IMPACT_LEVEL(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT_LEVEL {} + impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT_LEVEL { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LEVEL { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT_LEVEL { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LEVEL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_NODE_IMPACT_LEVEL") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND {} + impl ::core::clone::Clone for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TARGET_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TARGET_KIND {} + impl ::core::clone::Clone for FABRIC_REPAIR_TARGET_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TARGET_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TARGET_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TARGET_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_FLAGS {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_RESULT(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_RESULT {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_RESULT { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_RESULT") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPAIR_TASK_STATE_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPAIR_TASK_STATE_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPLICATOR_SETTINGS_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_FLAGS {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPLICATOR_SETTINGS_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPLICA_OPEN_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_REPLICA_OPEN_MODE {} + impl ::core::clone::Clone for FABRIC_REPLICA_OPEN_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPLICA_OPEN_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_OPEN_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPLICA_OPEN_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPLICA_OPEN_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPLICA_ROLE(pub i32); + impl ::core::marker::Copy for FABRIC_REPLICA_ROLE {} + impl ::core::clone::Clone for FABRIC_REPLICA_ROLE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPLICA_ROLE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_ROLE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPLICA_ROLE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPLICA_ROLE").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPLICA_SET_QUORUM_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_REPLICA_SET_QUORUM_MODE {} + impl ::core::clone::Clone for FABRIC_REPLICA_SET_QUORUM_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPLICA_SET_QUORUM_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_SET_QUORUM_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPLICA_SET_QUORUM_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPLICA_SET_QUORUM_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_REPLICA_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_REPLICA_STATUS {} + impl ::core::clone::Clone for FABRIC_REPLICA_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_REPLICA_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_REPLICA_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_RESTART_NODE_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_RESTART_NODE_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_RESTART_PARTITION_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_RESTART_PARTITION_MODE {} + impl ::core::clone::Clone for FABRIC_RESTART_PARTITION_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_RESTART_PARTITION_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_PARTITION_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_RESTART_PARTITION_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_RESTART_PARTITION_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_ROLLING_UPGRADE_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MODE {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_ROLLING_UPGRADE_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SAFETY_CHECK_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SAFETY_CHECK_KIND {} + impl ::core::clone::Clone for FABRIC_SAFETY_CHECK_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SAFETY_CHECK_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SAFETY_CHECK_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SAFETY_CHECK_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SCALING_MECHANISM_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_KIND {} + impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SCALING_MECHANISM_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SCALING_MECHANISM_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SCALING_TRIGGER_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_KIND {} + impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SCALING_TRIGGER_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SCALING_TRIGGER_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SECURITY_CREDENTIAL_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SECURITY_CREDENTIAL_KIND {} + impl ::core::clone::Clone for FABRIC_SECURITY_CREDENTIAL_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SECURITY_CREDENTIAL_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_CREDENTIAL_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIAL_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SECURITY_CREDENTIAL_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_CORRELATION_SCHEME(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_CORRELATION_SCHEME {} + impl ::core::clone::Clone for FABRIC_SERVICE_CORRELATION_SCHEME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_SCHEME { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_CORRELATION_SCHEME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_SCHEME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_CORRELATION_SCHEME") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_SERVICE_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_ENDPOINT_ROLE(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_ENDPOINT_ROLE {} + impl ::core::clone::Clone for FABRIC_SERVICE_ENDPOINT_ROLE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_ENDPOINT_ROLE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_ENDPOINT_ROLE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_ENDPOINT_ROLE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_ENDPOINT_ROLE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_KIND {} + impl ::core::clone::Clone for FABRIC_SERVICE_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_KIND").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_LOAD_METRIC_WEIGHT(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_WEIGHT {} + impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_LOAD_METRIC_WEIGHT") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS {} + impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE {} + impl ::core::clone::Clone for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_PARTITION_ACCESS_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_ACCESS_STATUS {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_PARTITION_ACCESS_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_PARTITION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_KIND {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_PARTITION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_REPLICA_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_KIND {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_REPLICA_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(pub i32); + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_SERVICE_TYPE_REGISTRATION_STATUS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_START_NODE_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_START_NODE_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_STOP_NODE_DESCRIPTION_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION_KIND {} + impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_STOP_NODE_DESCRIPTION_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_STORE_BACKUP_OPTION(pub i32); + impl ::core::marker::Copy for FABRIC_STORE_BACKUP_OPTION {} + impl ::core::clone::Clone for FABRIC_STORE_BACKUP_OPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_STORE_BACKUP_OPTION { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_STORE_BACKUP_OPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_OPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_STORE_BACKUP_OPTION") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_TEST_COMMAND_PROGRESS_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_TEST_COMMAND_PROGRESS_STATE {} + impl ::core::clone::Clone for FABRIC_TEST_COMMAND_PROGRESS_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_TEST_COMMAND_PROGRESS_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_PROGRESS_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_PROGRESS_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_TEST_COMMAND_PROGRESS_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_TEST_COMMAND_STATE_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_TEST_COMMAND_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_TEST_COMMAND_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_TEST_COMMAND_STATE_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_TEST_COMMAND_STATE_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_TEST_COMMAND_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE {} + impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_TEST_COMMAND_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_TEST_COMMAND_TYPE_FILTER(pub i32); + impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE_FILTER {} + impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE_FILTER { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_TYPE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_TEST_COMMAND_TYPE_FILTER") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_TRANSACTION_ISOLATION_LEVEL(pub i32); + impl ::core::marker::Copy for FABRIC_TRANSACTION_ISOLATION_LEVEL {} + impl ::core::clone::Clone for FABRIC_TRANSACTION_ISOLATION_LEVEL { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_TRANSACTION_ISOLATION_LEVEL { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_TRANSACTION_ISOLATION_LEVEL { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_TRANSACTION_ISOLATION_LEVEL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_TRANSACTION_ISOLATION_LEVEL") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_UPGRADE_DOMAIN_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATE {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_UPGRADE_DOMAIN_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_UPGRADE_FAILURE_REASON(pub i32); + impl ::core::marker::Copy for FABRIC_UPGRADE_FAILURE_REASON {} + impl ::core::clone::Clone for FABRIC_UPGRADE_FAILURE_REASON { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_UPGRADE_FAILURE_REASON { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_FAILURE_REASON { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_FAILURE_REASON { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_UPGRADE_FAILURE_REASON") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_UPGRADE_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_UPGRADE_KIND {} + impl ::core::clone::Clone for FABRIC_UPGRADE_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_UPGRADE_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_UPGRADE_KIND").field(&self.0).finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_UPGRADE_SAFETY_CHECK_KIND(pub i32); + impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK_KIND {} + impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK_KIND { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_KIND { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK_KIND { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_KIND { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_UPGRADE_SAFETY_CHECK_KIND") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_UPGRADE_STATE(pub i32); + impl ::core::marker::Copy for FABRIC_UPGRADE_STATE {} + impl ::core::clone::Clone for FABRIC_UPGRADE_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_UPGRADE_STATE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_UPGRADE_STATE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_X509_FIND_TYPE(pub i32); + impl ::core::marker::Copy for FABRIC_X509_FIND_TYPE {} + impl ::core::clone::Clone for FABRIC_X509_FIND_TYPE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_X509_FIND_TYPE { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_X509_FIND_TYPE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_X509_FIND_TYPE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_X509_FIND_TYPE") + .field(&self.0) + .finish() + } + } + #[repr(transparent)] + #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] + pub struct FABRIC_X509_STORE_LOCATION(pub i32); + impl ::core::marker::Copy for FABRIC_X509_STORE_LOCATION {} + impl ::core::clone::Clone for FABRIC_X509_STORE_LOCATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::default::Default for FABRIC_X509_STORE_LOCATION { + fn default() -> Self { + Self(0) + } + } + impl ::windows_core::TypeKind for FABRIC_X509_STORE_LOCATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::fmt::Debug for FABRIC_X509_STORE_LOCATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_tuple("FABRIC_X509_STORE_LOCATION") + .field(&self.0) + .finish() + } + } + #[repr(C)] + pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + pub Authority: ::windows_core::PCWSTR, + pub TenantId: ::windows_core::PCWSTR, + pub ClusterApplication: ::windows_core::PCWSTR, + pub ClientApplication: ::windows_core::PCWSTR, + pub ClientRedirect: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} + impl ::core::clone::Clone for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA") + .field("Authority", &self.Authority) + .field("TenantId", &self.TenantId) + .field("ClusterApplication", &self.ClusterApplication) + .field("ClientApplication", &self.ClientApplication) + .field("ClientRedirect", &self.ClientRedirect) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + fn eq(&self, other: &Self) -> bool { + self.Authority == other.Authority + && self.TenantId == other.TenantId + && self.ClusterApplication == other.ClusterApplication + && self.ClientApplication == other.ClientApplication + && self.ClientRedirect == other.ClientRedirect + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} + impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + pub LoginEndpoint: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} + impl ::core::clone::Clone for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1") + .field("LoginEndpoint", &self.LoginEndpoint) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + fn eq(&self, other: &Self) -> bool { + self.LoginEndpoint == other.LoginEndpoint && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} + impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATIONS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyApplications: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATIONS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyApplications", + &self.MaxPercentUnhealthyApplications, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + pub MaximumNodes: u32, + pub MinimumNodes: u32, + pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_CAPACITY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_CAPACITY_DESCRIPTION") + .field("MaximumNodes", &self.MaximumNodes) + .field("MinimumNodes", &self.MinimumNodes) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.MaximumNodes == other.MaximumNodes + && self.MinimumNodes == other.MinimumNodes + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ApplicationParameters: *const FABRIC_APPLICATION_PARAMETER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field("ApplicationParameters", &self.ApplicationParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ApplicationParameters == other.ApplicationParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_DESCRIPTION_EX1 { + pub ApplicationCapacity: *const FABRIC_APPLICATION_CAPACITY_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_DESCRIPTION_EX1") + .field("ApplicationCapacity", &self.ApplicationCapacity) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationCapacity == other.ApplicationCapacity && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH { + pub ApplicationName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub DeployedApplicationHealthStates: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST, + pub ServiceHealthStates: *const FABRIC_SERVICE_HEALTH_STATE_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH") + .field("ApplicationName", &self.ApplicationName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field( + "DeployedApplicationHealthStates", + &self.DeployedApplicationHealthStates, + ) + .field("ServiceHealthStates", &self.ServiceHealthStates) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.DeployedApplicationHealthStates == other.DeployedApplicationHealthStates + && self.ServiceHealthStates == other.ServiceHealthStates + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("ApplicationName", &self.ApplicationName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_EX2 { + pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_EX2") + .field("HealthStatistics", &self.HealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_POLICY { + pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, + pub MaxPercentUnhealthyDeployedApplications: u8, + pub DefaultServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, + pub ServiceTypeHealthPolicyMap: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY") + .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) + .field( + "MaxPercentUnhealthyDeployedApplications", + &self.MaxPercentUnhealthyDeployedApplications, + ) + .field( + "DefaultServiceTypeHealthPolicy", + &self.DefaultServiceTypeHealthPolicy, + ) + .field( + "ServiceTypeHealthPolicyMap", + &self.ServiceTypeHealthPolicyMap, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY { + fn eq(&self, other: &Self) -> bool { + self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.DefaultServiceTypeHealthPolicy == other.DefaultServiceTypeHealthPolicy + && self.ServiceTypeHealthPolicyMap == other.ServiceTypeHealthPolicyMap + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP { + pub Count: u32, + pub Items: *mut FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + pub ApplicationName: *mut u16, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM") + .field("ApplicationName", &self.ApplicationName) + .field("HealthPolicy", &self.HealthPolicy) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName && self.HealthPolicy == other.HealthPolicy + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub ServicesFilter: *const FABRIC_SERVICE_HEALTH_STATES_FILTER, + pub DeployedApplicationsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("ServicesFilter", &self.ServicesFilter) + .field( + "DeployedApplicationsFilter", + &self.DeployedApplicationsFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.ServicesFilter == other.ServicesFilter + && self.DeployedApplicationsFilter == other.DeployedApplicationsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + pub HealthStatisticsFilter: *const FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") + .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_REPORT { + pub ApplicationName: *mut u16, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_REPORT") + .field("ApplicationName", &self.ApplicationName) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE { + pub ApplicationName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE") + .field("ApplicationName", &self.ApplicationName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + pub ApplicationName: *mut u16, + pub HealthState: FABRIC_HEALTH_STATE, + pub ServiceHealthStateChunks: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST, + pub DeployedApplicationHealthStateChunks: + *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK") + .field("ApplicationName", &self.ApplicationName) + .field("HealthState", &self.HealthState) + .field("ServiceHealthStateChunks", &self.ServiceHealthStateChunks) + .field( + "DeployedApplicationHealthStateChunks", + &self.DeployedApplicationHealthStateChunks, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.HealthState == other.HealthState + && self.ServiceHealthStateChunks == other.ServiceHealthStateChunks + && self.DeployedApplicationHealthStateChunks + == other.DeployedApplicationHealthStateChunks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + pub ApplicationTypeName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub ApplicationNameFilter: *mut u16, + pub ServiceFilters: *const FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST, + pub DeployedApplicationFilters: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("ServiceFilters", &self.ServiceFilters) + .field( + "DeployedApplicationFilters", + &self.DeployedApplicationFilters, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.ServiceFilters == other.ServiceFilters + && self.DeployedApplicationFilters == other.DeployedApplicationFilters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1") + .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER") + .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} + impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_LOAD_INFORMATION { + pub Name: ::windows_core::PCWSTR, + pub MinimumNodes: u32, + pub MaximumNodes: u32, + pub NodeCount: u32, + pub ApplicationLoadMetricInformation: + *const FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_INFORMATION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_LOAD_INFORMATION") + .field("Name", &self.Name) + .field("MinimumNodes", &self.MinimumNodes) + .field("MaximumNodes", &self.MaximumNodes) + .field("NodeCount", &self.NodeCount) + .field( + "ApplicationLoadMetricInformation", + &self.ApplicationLoadMetricInformation, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.MinimumNodes == other.MinimumNodes + && self.MaximumNodes == other.MaximumNodes + && self.NodeCount == other.NodeCount + && self.ApplicationLoadMetricInformation == other.ApplicationLoadMetricInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION {} + impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + pub ApplicationName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + pub Name: ::windows_core::PCWSTR, + pub ReservationCapacity: i64, + pub ApplicationCapacity: i64, + pub ApplicationLoad: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_LOAD_METRIC_INFORMATION") + .field("Name", &self.Name) + .field("ReservationCapacity", &self.ReservationCapacity) + .field("ApplicationCapacity", &self.ApplicationCapacity) + .field("ApplicationLoad", &self.ApplicationLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.ReservationCapacity == other.ReservationCapacity + && self.ApplicationCapacity == other.ApplicationCapacity + && self.ApplicationLoad == other.ApplicationLoad + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION {} + impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + pub Count: u32, + pub LoadMetrics: *mut FABRIC_APPLICATION_LOAD_METRIC_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST") + .field("Count", &self.Count) + .field("LoadMetrics", &self.LoadMetrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.LoadMetrics == other.LoadMetrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_METRIC_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub NodeReservationCapacity: u32, + pub MaximumNodeCapacity: u32, + pub TotalApplicationCapacity: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_METRIC_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_METRIC_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_METRIC_DESCRIPTION") + .field("Name", &self.Name) + .field("NodeReservationCapacity", &self.NodeReservationCapacity) + .field("MaximumNodeCapacity", &self.MaximumNodeCapacity) + .field("TotalApplicationCapacity", &self.TotalApplicationCapacity) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_METRIC_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.NodeReservationCapacity == other.NodeReservationCapacity + && self.MaximumNodeCapacity == other.MaximumNodeCapacity + && self.TotalApplicationCapacity == other.TotalApplicationCapacity + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_METRIC_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_METRIC_LIST { + pub Count: u32, + pub Capacities: *mut FABRIC_APPLICATION_METRIC_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_METRIC_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_METRIC_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_METRIC_LIST") + .field("Count", &self.Count) + .field("Capacities", &self.Capacities) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_METRIC_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Capacities == other.Capacities + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_METRIC_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + pub ServiceName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_NAME_QUERY_RESULT { + pub ApplicationName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_NAME_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_APPLICATION_NAME_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_NAME_QUERY_RESULT") + .field("ApplicationName", &self.ApplicationName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + pub NetworkName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM") + .field("NetworkName", &self.NetworkName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_PARAMETER { + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_PARAMETER {} + impl ::core::clone::Clone for FABRIC_APPLICATION_PARAMETER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_PARAMETER") + .field("Name", &self.Name) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER {} + impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_PARAMETER_LIST { + pub Count: u32, + pub Items: *mut FABRIC_APPLICATION_PARAMETER, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_PARAMETER_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_PARAMETER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_PARAMETER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + pub Users: *const FABRIC_SECURITY_USER_DESCRIPTION_LIST, + pub Groups: *const FABRIC_SECURITY_GROUP_DESCRIPTION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION") + .field("Users", &self.Users) + .field("Groups", &self.Groups) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Users == other.Users + && self.Groups == other.Groups + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION { + pub ApplicationNameFilter: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION") + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationNameFilter == other.ApplicationNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, + pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2") + .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) + .field( + "ExcludeApplicationParameters", + &self.ExcludeApplicationParameters, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.ExcludeApplicationParameters == other.ExcludeApplicationParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + pub ApplicationDefinitionKindFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3") + .field( + "ApplicationDefinitionKindFilter", + &self.ApplicationDefinitionKindFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationDefinitionKindFilter == other.ApplicationDefinitionKindFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + pub MaxResults: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4") + .field("MaxResults", &self.MaxResults) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + fn eq(&self, other: &Self) -> bool { + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM { + pub ApplicationName: *mut u16, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub Status: FABRIC_APPLICATION_STATUS, + pub HealthState: FABRIC_HEALTH_STATE, + pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM") + .field("ApplicationName", &self.ApplicationName) + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field("Status", &self.Status) + .field("HealthState", &self.HealthState) + .field("ApplicationParameters", &self.ApplicationParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.Status == other.Status + && self.HealthState == other.HealthState + && self.ApplicationParameters == other.ApplicationParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + pub UpgradeTypeVersion: ::windows_core::PCWSTR, + pub UpgradeParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1") + .field("UpgradeTypeVersion", &self.UpgradeTypeVersion) + .field("UpgradeParameters", &self.UpgradeParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UpgradeTypeVersion == other.UpgradeTypeVersion + && self.UpgradeParameters == other.UpgradeParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + pub ApplicationDefinitionKind: FABRIC_APPLICATION_DEFINITION_KIND, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2") + .field("ApplicationDefinitionKind", &self.ApplicationDefinitionKind) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationDefinitionKind == other.ApplicationDefinitionKind + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyApplications: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyApplications", + &self.MaxPercentUnhealthyApplications, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ApplicationTypeName == other.ApplicationTypeName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub MaxPercentUnhealthyApplications: u8, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field( + "MaxPercentUnhealthyApplications", + &self.MaxPercentUnhealthyApplications, + ) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION") + .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub DefaultParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field("DefaultParameters", &self.DefaultParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.DefaultParameters == other.DefaultParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + pub Status: FABRIC_APPLICATION_TYPE_STATUS, + pub StatusDetails: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1") + .field("Status", &self.Status) + .field("StatusDetails", &self.StatusDetails) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.Status == other.Status + && self.StatusDetails == other.StatusDetails + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + pub ApplicationTypeDefinitionKind: FABRIC_APPLICATION_TYPE_DEFINITION_KIND, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2") + .field( + "ApplicationTypeDefinitionKind", + &self.ApplicationTypeDefinitionKind, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeDefinitionKind == other.ApplicationTypeDefinitionKind + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION { + pub Flags: u32, + pub ApplicationName: *mut u16, + pub RemoveApplicationCapacity: ::windows::Win32::Foundation::BOOLEAN, + pub MaximumNodes: u32, + pub MinimumNodes: u32, + pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPDATE_DESCRIPTION") + .field("Flags", &self.Flags) + .field("ApplicationName", &self.ApplicationName) + .field("RemoveApplicationCapacity", &self.RemoveApplicationCapacity) + .field("MaximumNodes", &self.MaximumNodes) + .field("MinimumNodes", &self.MinimumNodes) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Flags == other.Flags + && self.ApplicationName == other.ApplicationName + && self.RemoveApplicationCapacity == other.RemoveApplicationCapacity + && self.MaximumNodes == other.MaximumNodes + && self.MinimumNodes == other.MinimumNodes + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub TargetApplicationTypeVersion: ::windows_core::PCWSTR, + pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, + pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, + pub UpgradePolicyDescription: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPGRADE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field( + "TargetApplicationTypeVersion", + &self.TargetApplicationTypeVersion, + ) + .field("ApplicationParameters", &self.ApplicationParameters) + .field("UpgradeKind", &self.UpgradeKind) + .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.TargetApplicationTypeVersion == other.TargetApplicationTypeVersion + && self.ApplicationParameters == other.ApplicationParameters + && self.UpgradeKind == other.UpgradeKind + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS { + pub UpgradeDescription: *const FABRIC_APPLICATION_UPGRADE_DESCRIPTION, + pub UpgradeState: FABRIC_APPLICATION_UPGRADE_STATE, + pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, + pub NextUpgradeDomain: ::windows_core::PCWSTR, + pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, + pub UpgradeDurationInSeconds: u32, + pub CurrentUpgradeDomainDurationInSeconds: u32, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS") + .field("UpgradeDescription", &self.UpgradeDescription) + .field("UpgradeState", &self.UpgradeState) + .field("UpgradeMode", &self.UpgradeMode) + .field("NextUpgradeDomain", &self.NextUpgradeDomain) + .field("UpgradeDomains", &self.UpgradeDomains) + .field("UpgradeDurationInSeconds", &self.UpgradeDurationInSeconds) + .field( + "CurrentUpgradeDomainDurationInSeconds", + &self.CurrentUpgradeDomainDurationInSeconds, + ) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field( + "CurrentUpgradeDomainProgress", + &self.CurrentUpgradeDomainProgress, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.UpgradeDescription == other.UpgradeDescription + && self.UpgradeState == other.UpgradeState + && self.UpgradeMode == other.UpgradeMode + && self.NextUpgradeDomain == other.NextUpgradeDomain + && self.UpgradeDomains == other.UpgradeDomains + && self.UpgradeDurationInSeconds == other.UpgradeDurationInSeconds + && self.CurrentUpgradeDomainDurationInSeconds + == other.CurrentUpgradeDomainDurationInSeconds + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.CurrentUpgradeDomainProgress == other.CurrentUpgradeDomainProgress + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS {} + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, + pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, + pub FailureReason: FABRIC_UPGRADE_FAILURE_REASON, + pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1") + .field("StartTimestampUtc", &self.StartTimestampUtc) + .field("FailureTimestampUtc", &self.FailureTimestampUtc) + .field("FailureReason", &self.FailureReason) + .field( + "UpgradeDomainProgressAtFailure", + &self.UpgradeDomainProgressAtFailure, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.StartTimestampUtc == other.StartTimestampUtc + && self.FailureTimestampUtc == other.FailureTimestampUtc + && self.FailureReason == other.FailureReason + && self.UpgradeDomainProgressAtFailure == other.UpgradeDomainProgressAtFailure + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + pub UpgradeStatusDetails: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2") + .field("UpgradeStatusDetails", &self.UpgradeStatusDetails) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.UpgradeStatusDetails == other.UpgradeStatusDetails + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, + pub UpdateFlags: u32, + pub UpgradePolicyDescription: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("UpgradeKind", &self.UpgradeKind) + .field("UpdateFlags", &self.UpdateFlags) + .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.UpgradeKind == other.UpgradeKind + && self.UpdateFlags == other.UpdateFlags + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub Force: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("Force", &self.Force) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.Force == other.Force + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_DESCRIPTION { + pub ChaosParameters: *const FABRIC_CHAOS_PARAMETERS, + pub Status: FABRIC_CHAOS_STATUS, + pub ScheduleStatus: FABRIC_CHAOS_SCHEDULE_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CHAOS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_DESCRIPTION") + .field("ChaosParameters", &self.ChaosParameters) + .field("Status", &self.Status) + .field("ScheduleStatus", &self.ScheduleStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ChaosParameters == other.ChaosParameters + && self.Status == other.Status + && self.ScheduleStatus == other.ScheduleStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CHAOS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_EVENT { + pub Kind: FABRIC_CHAOS_EVENT_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_EVENT {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_EVENT") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT {} + impl ::core::default::Default for FABRIC_CHAOS_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_EVENTS_SEGMENT { + pub ContinuationToken: ::windows_core::PCWSTR, + pub History: *const FABRIC_CHAOS_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT") + .field("ContinuationToken", &self.ContinuationToken) + .field("History", &self.History) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken + && self.History == other.History + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT {} + impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + pub Filter: *const FABRIC_CHAOS_EVENTS_SEGMENT_FILTER, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION") + .field("Filter", &self.Filter) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Filter == other.Filter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + pub StartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub EndTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_FILTER") + .field("StartTimeUtc", &self.StartTimeUtc) + .field("EndTimeUtc", &self.EndTimeUtc) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + fn eq(&self, other: &Self) -> bool { + self.StartTimeUtc == other.StartTimeUtc + && self.EndTimeUtc == other.EndTimeUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} + impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_EVENT_LIST { + pub Count: u32, + pub Items: *mut FABRIC_CHAOS_EVENT, + } + impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_LIST {} + impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_EVENT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT_LIST {} + impl ::core::default::Default for FABRIC_CHAOS_EVENT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_PARAMETERS { + pub MaxClusterStabilizationTimeoutInSeconds: u32, + pub MaxConcurrentFaults: u32, + pub EnableMoveReplicaFaults: ::windows::Win32::Foundation::BOOLEAN, + pub TimeToRunInSeconds: u64, + pub WaitTimeBetweenIterationsInSeconds: u32, + pub WaitTimeBetweenFaultsInSeconds: u32, + pub Context: *const FABRIC_EVENT_CONTEXT_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS {} + impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_PARAMETERS") + .field( + "MaxClusterStabilizationTimeoutInSeconds", + &self.MaxClusterStabilizationTimeoutInSeconds, + ) + .field("MaxConcurrentFaults", &self.MaxConcurrentFaults) + .field("EnableMoveReplicaFaults", &self.EnableMoveReplicaFaults) + .field("TimeToRunInSeconds", &self.TimeToRunInSeconds) + .field( + "WaitTimeBetweenIterationsInSeconds", + &self.WaitTimeBetweenIterationsInSeconds, + ) + .field( + "WaitTimeBetweenFaultsInSeconds", + &self.WaitTimeBetweenFaultsInSeconds, + ) + .field("Context", &self.Context) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS { + fn eq(&self, other: &Self) -> bool { + self.MaxClusterStabilizationTimeoutInSeconds + == other.MaxClusterStabilizationTimeoutInSeconds + && self.MaxConcurrentFaults == other.MaxConcurrentFaults + && self.EnableMoveReplicaFaults == other.EnableMoveReplicaFaults + && self.TimeToRunInSeconds == other.TimeToRunInSeconds + && self.WaitTimeBetweenIterationsInSeconds + == other.WaitTimeBetweenIterationsInSeconds + && self.WaitTimeBetweenFaultsInSeconds == other.WaitTimeBetweenFaultsInSeconds + && self.Context == other.Context + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS {} + impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_PARAMETERS_EX1 { + pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS_EX1 {} + impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_PARAMETERS_EX1") + .field("ClusterHealthPolicy", &self.ClusterHealthPolicy) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ClusterHealthPolicy == other.ClusterHealthPolicy && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX1 {} + impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_PARAMETERS_EX2 { + pub ChaosTargetFilter: *const FABRIC_CHAOS_TARGET_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS_EX2 {} + impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_PARAMETERS_EX2") + .field("ChaosTargetFilter", &self.ChaosTargetFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ChaosTargetFilter == other.ChaosTargetFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX2 {} + impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_REPORT { + pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, + pub Status: FABRIC_CHAOS_STATUS, + pub ContinuationToken: ::windows_core::PCWSTR, + pub History: *const FABRIC_CHAOS_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_REPORT {} + impl ::core::clone::Clone for FABRIC_CHAOS_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_REPORT") + .field("ChaosParameters", &self.ChaosParameters) + .field("Status", &self.Status) + .field("ContinuationToken", &self.ContinuationToken) + .field("History", &self.History) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT { + fn eq(&self, other: &Self) -> bool { + self.ChaosParameters == other.ChaosParameters + && self.Status == other.Status + && self.ContinuationToken == other.ContinuationToken + && self.History == other.History + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT {} + impl ::core::default::Default for FABRIC_CHAOS_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_REPORT_FILTER { + pub StartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub EndTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_REPORT_FILTER {} + impl ::core::clone::Clone for FABRIC_CHAOS_REPORT_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_REPORT_FILTER") + .field("StartTimeUtc", &self.StartTimeUtc) + .field("EndTimeUtc", &self.EndTimeUtc) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_REPORT_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT_FILTER { + fn eq(&self, other: &Self) -> bool { + self.StartTimeUtc == other.StartTimeUtc + && self.EndTimeUtc == other.EndTimeUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT_FILTER {} + impl ::core::default::Default for FABRIC_CHAOS_REPORT_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE { + pub StartDate: ::windows::Win32::Foundation::FILETIME, + pub ExpiryDate: ::windows::Win32::Foundation::FILETIME, + pub ChaosParametersMap: *const FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP, + pub Jobs: *const FABRIC_CHAOS_SCHEDULE_JOB_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE") + .field("StartDate", &self.StartDate) + .field("ExpiryDate", &self.ExpiryDate) + .field("ChaosParametersMap", &self.ChaosParametersMap) + .field("Jobs", &self.Jobs) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE { + fn eq(&self, other: &Self) -> bool { + self.StartDate == other.StartDate + && self.ExpiryDate == other.ExpiryDate + && self.ChaosParametersMap == other.ChaosParametersMap + && self.Jobs == other.Jobs + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + pub Count: u32, + pub Items: *mut FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + pub Name: ::windows_core::PCWSTR, + pub Parameters: *const FABRIC_CHAOS_PARAMETERS, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM") + .field("Name", &self.Name) + .field("Parameters", &self.Parameters) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Parameters == other.Parameters + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + pub Version: u32, + pub Schedule: *const FABRIC_CHAOS_SCHEDULE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_DESCRIPTION") + .field("Version", &self.Version) + .field("Schedule", &self.Schedule) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Version == other.Version + && self.Schedule == other.Schedule + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_JOB { + pub ChaosParameters: ::windows_core::PCWSTR, + pub Days: *const FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS, + pub Times: *const FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB") + .field("ChaosParameters", &self.ChaosParameters) + .field("Days", &self.Days) + .field("Times", &self.Times) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB { + fn eq(&self, other: &Self) -> bool { + self.ChaosParameters == other.ChaosParameters + && self.Days == other.Days + && self.Times == other.Times + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + pub Sunday: ::windows::Win32::Foundation::BOOLEAN, + pub Monday: ::windows::Win32::Foundation::BOOLEAN, + pub Tuesday: ::windows::Win32::Foundation::BOOLEAN, + pub Wednesday: ::windows::Win32::Foundation::BOOLEAN, + pub Thursday: ::windows::Win32::Foundation::BOOLEAN, + pub Friday: ::windows::Win32::Foundation::BOOLEAN, + pub Saturday: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS") + .field("Sunday", &self.Sunday) + .field("Monday", &self.Monday) + .field("Tuesday", &self.Tuesday) + .field("Wednesday", &self.Wednesday) + .field("Thursday", &self.Thursday) + .field("Friday", &self.Friday) + .field("Saturday", &self.Saturday) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + fn eq(&self, other: &Self) -> bool { + self.Sunday == other.Sunday + && self.Monday == other.Monday + && self.Tuesday == other.Tuesday + && self.Wednesday == other.Wednesday + && self.Thursday == other.Thursday + && self.Friday == other.Friday + && self.Saturday == other.Saturday + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_JOB_LIST { + pub Count: u32, + pub Items: *mut FABRIC_CHAOS_SCHEDULE_JOB, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + pub StartTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, + pub EndTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC") + .field("StartTime", &self.StartTime) + .field("EndTime", &self.EndTime) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + fn eq(&self, other: &Self) -> bool { + self.StartTime == other.StartTime + && self.EndTime == other.EndTime + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + pub Count: u32, + pub Items: *mut FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SCHEDULE_TIME_UTC { + pub Hour: u32, + pub Minute: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_UTC {} + impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_UTC") + .field("Hour", &self.Hour) + .field("Minute", &self.Minute) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + fn eq(&self, other: &Self) -> bool { + self.Hour == other.Hour + && self.Minute == other.Minute + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_UTC {} + impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + pub ChaosScheduleDescription: *const FABRIC_CHAOS_SCHEDULE_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION") + .field("ChaosScheduleDescription", &self.ChaosScheduleDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ChaosScheduleDescription == other.ChaosScheduleDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHAOS_TARGET_FILTER { + pub NodeTypeInclusionList: *const FABRIC_STRING_LIST, + pub ApplicationInclusionList: *const FABRIC_STRING_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHAOS_TARGET_FILTER {} + impl ::core::clone::Clone for FABRIC_CHAOS_TARGET_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHAOS_TARGET_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHAOS_TARGET_FILTER") + .field("NodeTypeInclusionList", &self.NodeTypeInclusionList) + .field("ApplicationInclusionList", &self.ApplicationInclusionList) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHAOS_TARGET_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHAOS_TARGET_FILTER { + fn eq(&self, other: &Self) -> bool { + self.NodeTypeInclusionList == other.NodeTypeInclusionList + && self.ApplicationInclusionList == other.ApplicationInclusionList + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHAOS_TARGET_FILTER {} + impl ::core::default::Default for FABRIC_CHAOS_TARGET_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub ExistenceCheck: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHECK_EXISTS_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("ExistenceCheck", &self.ExistenceCheck) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.ExistenceCheck == other.ExistenceCheck + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub SequenceNumber: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("SequenceNumber", &self.SequenceNumber) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.SequenceNumber == other.SequenceNumber + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, + pub PropertyValue: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CHECK_VALUE_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CHECK_VALUE_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("PropertyTypeId", &self.PropertyTypeId) + .field("PropertyValue", &self.PropertyValue) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLAIMS_CREDENTIALS { + pub ServerCommonNameCount: u32, + pub ServerCommonNames: *const ::windows_core::PCWSTR, + pub IssuerThumbprintCount: u32, + pub IssuerThumbprints: *const ::windows_core::PCWSTR, + pub LocalClaims: ::windows_core::PCWSTR, + pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLAIMS_CREDENTIALS {} + impl ::core::clone::Clone for FABRIC_CLAIMS_CREDENTIALS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLAIMS_CREDENTIALS") + .field("ServerCommonNameCount", &self.ServerCommonNameCount) + .field("ServerCommonNames", &self.ServerCommonNames) + .field("IssuerThumbprintCount", &self.IssuerThumbprintCount) + .field("IssuerThumbprints", &self.IssuerThumbprints) + .field("LocalClaims", &self.LocalClaims) + .field("ProtectionLevel", &self.ProtectionLevel) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS { + fn eq(&self, other: &Self) -> bool { + self.ServerCommonNameCount == other.ServerCommonNameCount + && self.ServerCommonNames == other.ServerCommonNames + && self.IssuerThumbprintCount == other.IssuerThumbprintCount + && self.IssuerThumbprints == other.IssuerThumbprints + && self.LocalClaims == other.LocalClaims + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS {} + impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLAIMS_CREDENTIALS_EX1 { + pub ServerThumbprintCount: u32, + pub ServerThumbprints: *const ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLAIMS_CREDENTIALS_EX1 {} + impl ::core::clone::Clone for FABRIC_CLAIMS_CREDENTIALS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLAIMS_CREDENTIALS_EX1") + .field("ServerThumbprintCount", &self.ServerThumbprintCount) + .field("ServerThumbprints", &self.ServerThumbprints) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServerThumbprintCount == other.ServerThumbprintCount + && self.ServerThumbprints == other.ServerThumbprints + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS_EX1 {} + impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA { + pub Kind: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA {} + impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLAIMS_RETRIEVAL_METADATA") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLAIMS_RETRIEVAL_METADATA { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLAIMS_RETRIEVAL_METADATA { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_CLAIMS_RETRIEVAL_METADATA {} + impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLIENT_SETTINGS { + pub PartitionLocationCacheLimit: u32, + pub ServiceChangePollIntervalInSeconds: u32, + pub ConnectionInitializationTimeoutInSeconds: u32, + pub KeepAliveIntervalInSeconds: u32, + pub HealthOperationTimeoutInSeconds: u32, + pub HealthReportSendIntervalInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS {} + impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLIENT_SETTINGS") + .field( + "PartitionLocationCacheLimit", + &self.PartitionLocationCacheLimit, + ) + .field( + "ServiceChangePollIntervalInSeconds", + &self.ServiceChangePollIntervalInSeconds, + ) + .field( + "ConnectionInitializationTimeoutInSeconds", + &self.ConnectionInitializationTimeoutInSeconds, + ) + .field( + "KeepAliveIntervalInSeconds", + &self.KeepAliveIntervalInSeconds, + ) + .field( + "HealthOperationTimeoutInSeconds", + &self.HealthOperationTimeoutInSeconds, + ) + .field( + "HealthReportSendIntervalInSeconds", + &self.HealthReportSendIntervalInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.PartitionLocationCacheLimit == other.PartitionLocationCacheLimit + && self.ServiceChangePollIntervalInSeconds + == other.ServiceChangePollIntervalInSeconds + && self.ConnectionInitializationTimeoutInSeconds + == other.ConnectionInitializationTimeoutInSeconds + && self.KeepAliveIntervalInSeconds == other.KeepAliveIntervalInSeconds + && self.HealthOperationTimeoutInSeconds == other.HealthOperationTimeoutInSeconds + && self.HealthReportSendIntervalInSeconds == other.HealthReportSendIntervalInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS {} + impl ::core::default::Default for FABRIC_CLIENT_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLIENT_SETTINGS_EX1 { + pub ClientFriendlyName: ::windows_core::PCWSTR, + pub PartitionLocationCacheBucketCount: u32, + pub HealthReportRetrySendIntervalInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLIENT_SETTINGS_EX1") + .field("ClientFriendlyName", &self.ClientFriendlyName) + .field( + "PartitionLocationCacheBucketCount", + &self.PartitionLocationCacheBucketCount, + ) + .field( + "HealthReportRetrySendIntervalInSeconds", + &self.HealthReportRetrySendIntervalInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ClientFriendlyName == other.ClientFriendlyName + && self.PartitionLocationCacheBucketCount == other.PartitionLocationCacheBucketCount + && self.HealthReportRetrySendIntervalInSeconds + == other.HealthReportRetrySendIntervalInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLIENT_SETTINGS_EX2 { + pub NotificationGatewayConnectionTimeoutInSeconds: u32, + pub NotificationCacheUpdateTimeoutInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX2 {} + impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLIENT_SETTINGS_EX2") + .field( + "NotificationGatewayConnectionTimeoutInSeconds", + &self.NotificationGatewayConnectionTimeoutInSeconds, + ) + .field( + "NotificationCacheUpdateTimeoutInSeconds", + &self.NotificationCacheUpdateTimeoutInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.NotificationGatewayConnectionTimeoutInSeconds + == other.NotificationGatewayConnectionTimeoutInSeconds + && self.NotificationCacheUpdateTimeoutInSeconds + == other.NotificationCacheUpdateTimeoutInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX2 {} + impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLIENT_SETTINGS_EX3 { + pub AuthTokenBufferSize: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX3 {} + impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLIENT_SETTINGS_EX3") + .field("AuthTokenBufferSize", &self.AuthTokenBufferSize) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX3 { + fn eq(&self, other: &Self) -> bool { + self.AuthTokenBufferSize == other.AuthTokenBufferSize && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX3 {} + impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLIENT_SETTINGS_EX4 { + pub ConnectionIdleTimeoutInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX4 {} + impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLIENT_SETTINGS_EX4") + .field( + "ConnectionIdleTimeoutInSeconds", + &self.ConnectionIdleTimeoutInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX4 { + fn eq(&self, other: &Self) -> bool { + self.ConnectionIdleTimeoutInSeconds == other.ConnectionIdleTimeoutInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX4 {} + impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH { + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH") + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_CHUNK { + pub HealthState: FABRIC_HEALTH_STATE, + pub NodeHealthStateChunks: *const FABRIC_NODE_HEALTH_STATE_CHUNK_LIST, + pub ApplicationHealthStateChunks: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_CHUNK {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_CHUNK") + .field("HealthState", &self.HealthState) + .field("NodeHealthStateChunks", &self.NodeHealthStateChunks) + .field( + "ApplicationHealthStateChunks", + &self.ApplicationHealthStateChunks, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.HealthState == other.HealthState + && self.NodeHealthStateChunks == other.NodeHealthStateChunks + && self.ApplicationHealthStateChunks == other.ApplicationHealthStateChunks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, + pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, + pub ApplicationFilters: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST, + pub NodeFilters: *const FABRIC_NODE_HEALTH_STATE_FILTER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION") + .field("ClusterHealthPolicy", &self.ClusterHealthPolicy) + .field( + "ApplicationHealthPolicyMap", + &self.ApplicationHealthPolicyMap, + ) + .field("ApplicationFilters", &self.ApplicationFilters) + .field("NodeFilters", &self.NodeFilters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ClusterHealthPolicy == other.ClusterHealthPolicy + && self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.ApplicationFilters == other.ApplicationFilters + && self.NodeFilters == other.NodeFilters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_EX1 { + pub NodeHealthStates: *const FABRIC_NODE_HEALTH_STATE_LIST, + pub ApplicationHealthStates: *const FABRIC_APPLICATION_HEALTH_STATE_LIST, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_EX1") + .field("NodeHealthStates", &self.NodeHealthStates) + .field("ApplicationHealthStates", &self.ApplicationHealthStates) + .field("HealthEvents", &self.HealthEvents) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.NodeHealthStates == other.NodeHealthStates + && self.ApplicationHealthStates == other.ApplicationHealthStates + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_EX2 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_EX2") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_EX3 { + pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX3 {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_EX3") + .field("HealthStatistics", &self.HealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX3 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX3 {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_POLICY { + pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, + pub MaxPercentUnhealthyNodes: u8, + pub MaxPercentUnhealthyApplications: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_POLICY {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_POLICY") + .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) + .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) + .field( + "MaxPercentUnhealthyApplications", + &self.MaxPercentUnhealthyApplications, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY { + fn eq(&self, other: &Self) -> bool { + self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + pub ApplicationTypeHealthPolicyMap: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_POLICY_EX1 {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_POLICY_EX1") + .field( + "ApplicationTypeHealthPolicyMap", + &self.ApplicationTypeHealthPolicyMap, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeHealthPolicyMap == other.ApplicationTypeHealthPolicyMap + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, + pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub NodesFilter: *const FABRIC_NODE_HEALTH_STATES_FILTER, + pub ApplicationsFilter: *const FABRIC_APPLICATION_HEALTH_STATES_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION") + .field("HealthPolicy", &self.HealthPolicy) + .field( + "ApplicationHealthPolicyMap", + &self.ApplicationHealthPolicyMap, + ) + .field("EventsFilter", &self.EventsFilter) + .field("NodesFilter", &self.NodesFilter) + .field("ApplicationsFilter", &self.ApplicationsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.HealthPolicy == other.HealthPolicy + && self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.EventsFilter == other.EventsFilter + && self.NodesFilter == other.NodesFilter + && self.ApplicationsFilter == other.ApplicationsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + pub HealthStatisticsFilter: *const FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1") + .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_REPORT { + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_REPORT") + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.HealthInformation == other.HealthInformation && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub IncludeSystemApplicationHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} + impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER") + .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) + .field( + "IncludeSystemApplicationHealthStatistics", + &self.IncludeSystemApplicationHealthStatistics, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.IncludeSystemApplicationHealthStatistics + == other.IncludeSystemApplicationHealthStatistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} + impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_LOAD_INFORMATION { + pub LastBalancingStartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub LastBalancingEndTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub LoadMetricInformation: *const FABRIC_LOAD_METRIC_INFORMATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_LOAD_INFORMATION {} + impl ::core::clone::Clone for FABRIC_CLUSTER_LOAD_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_LOAD_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_LOAD_INFORMATION") + .field("LastBalancingStartTimeUtc", &self.LastBalancingStartTimeUtc) + .field("LastBalancingEndTimeUtc", &self.LastBalancingEndTimeUtc) + .field("LoadMetricInformation", &self.LoadMetricInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_LOAD_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.LastBalancingStartTimeUtc == other.LastBalancingStartTimeUtc + && self.LastBalancingEndTimeUtc == other.LastBalancingEndTimeUtc + && self.LoadMetricInformation == other.LoadMetricInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_LOAD_INFORMATION {} + impl ::core::default::Default for FABRIC_CLUSTER_LOAD_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + pub ClusterManifestVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION") + .field("ClusterManifestVersion", &self.ClusterManifestVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ClusterManifestVersion == other.ClusterManifestVersion + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + pub MaxPercentDeltaUnhealthyNodes: u8, + pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY {} + impl ::core::clone::Clone for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY") + .field( + "MaxPercentDeltaUnhealthyNodes", + &self.MaxPercentDeltaUnhealthyNodes, + ) + .field( + "MaxPercentUpgradeDomainDeltaUnhealthyNodes", + &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + fn eq(&self, other: &Self) -> bool { + self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY {} + impl ::core::default::Default for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub IsShared: ::windows::Win32::Foundation::BOOLEAN, + pub SetupEntryPoint: *mut FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION, + pub EntryPoint: *mut FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION") + .field("Name", &self.Name) + .field("Version", &self.Version) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("IsShared", &self.IsShared) + .field("SetupEntryPoint", &self.SetupEntryPoint) + .field("EntryPoint", &self.EntryPoint) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.IsShared == other.IsShared + && self.SetupEntryPoint == other.SetupEntryPoint + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_CODE_PACKAGE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT { + pub EntryPointLocation: ::windows_core::PCWSTR, + pub ProcessId: i64, + pub RunAsUserName: ::windows_core::PCWSTR, + pub EntryPointStatus: FABRIC_ENTRY_POINT_STATUS, + pub NextActivationUtc: ::windows::Win32::Foundation::FILETIME, + pub Statistics: *const FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT") + .field("EntryPointLocation", &self.EntryPointLocation) + .field("ProcessId", &self.ProcessId) + .field("RunAsUserName", &self.RunAsUserName) + .field("EntryPointStatus", &self.EntryPointStatus) + .field("NextActivationUtc", &self.NextActivationUtc) + .field("Statistics", &self.Statistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT { + fn eq(&self, other: &Self) -> bool { + self.EntryPointLocation == other.EntryPointLocation + && self.ProcessId == other.ProcessId + && self.RunAsUserName == other.RunAsUserName + && self.EntryPointStatus == other.EntryPointStatus + && self.NextActivationUtc == other.NextActivationUtc + && self.Statistics == other.Statistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + pub Kind: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + pub CodePackageInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1") + .field("CodePackageInstanceId", &self.CodePackageInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + pub LastExitCode: u32, + pub LastActivationUtc: ::windows::Win32::Foundation::FILETIME, + pub LastExitUtc: ::windows::Win32::Foundation::FILETIME, + pub LastSuccessfulActivationUtc: ::windows::Win32::Foundation::FILETIME, + pub LastSuccessfulExitUtc: ::windows::Win32::Foundation::FILETIME, + pub ActivationCount: u32, + pub ActivationFailureCount: u32, + pub ContinuousActivationFailureCount: u32, + pub ExitCount: u32, + pub ExitFailureCount: u32, + pub ContinuousExitFailureCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS") + .field("LastExitCode", &self.LastExitCode) + .field("LastActivationUtc", &self.LastActivationUtc) + .field("LastExitUtc", &self.LastExitUtc) + .field( + "LastSuccessfulActivationUtc", + &self.LastSuccessfulActivationUtc, + ) + .field("LastSuccessfulExitUtc", &self.LastSuccessfulExitUtc) + .field("ActivationCount", &self.ActivationCount) + .field("ActivationFailureCount", &self.ActivationFailureCount) + .field( + "ContinuousActivationFailureCount", + &self.ContinuousActivationFailureCount, + ) + .field("ExitCount", &self.ExitCount) + .field("ExitFailureCount", &self.ExitFailureCount) + .field( + "ContinuousExitFailureCount", + &self.ContinuousExitFailureCount, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + fn eq(&self, other: &Self) -> bool { + self.LastExitCode == other.LastExitCode + && self.LastActivationUtc == other.LastActivationUtc + && self.LastExitUtc == other.LastExitUtc + && self.LastSuccessfulActivationUtc == other.LastSuccessfulActivationUtc + && self.LastSuccessfulExitUtc == other.LastSuccessfulExitUtc + && self.ActivationCount == other.ActivationCount + && self.ActivationFailureCount == other.ActivationFailureCount + && self.ContinuousActivationFailureCount == other.ContinuousActivationFailureCount + && self.ExitCount == other.ExitCount + && self.ExitFailureCount == other.ExitFailureCount + && self.ContinuousExitFailureCount == other.ContinuousExitFailureCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + pub CodePackageName: ::windows_core::PCWSTR, + pub IsSetupEntryPoint: ::windows::Win32::Foundation::BOOL, + pub IsContainerHost: ::windows::Win32::Foundation::BOOL, + pub EventType: FABRIC_CODE_PACKAGE_EVENT_TYPE, + pub TimeStampInTicks: i64, + pub SequenceNumber: i64, + pub Properties: *mut FABRIC_STRING_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION") + .field("CodePackageName", &self.CodePackageName) + .field("IsSetupEntryPoint", &self.IsSetupEntryPoint) + .field("IsContainerHost", &self.IsContainerHost) + .field("EventType", &self.EventType) + .field("TimeStampInTicks", &self.TimeStampInTicks) + .field("SequenceNumber", &self.SequenceNumber) + .field("Properties", &self.Properties) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.CodePackageName == other.CodePackageName + && self.IsSetupEntryPoint == other.IsSetupEntryPoint + && self.IsContainerHost == other.IsContainerHost + && self.EventType == other.EventType + && self.TimeStampInTicks == other.TimeStampInTicks + && self.SequenceNumber == other.SequenceNumber + && self.Properties == other.Properties + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION") + .field("Name", &self.Name) + .field("Version", &self.Version) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_PARAMETER { + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + pub MustOverride: ::windows::Win32::Foundation::BOOLEAN, + pub IsEncrypted: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_PARAMETER") + .field("Name", &self.Name) + .field("Value", &self.Value) + .field("MustOverride", &self.MustOverride) + .field("IsEncrypted", &self.IsEncrypted) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Value == other.Value + && self.MustOverride == other.MustOverride + && self.IsEncrypted == other.IsEncrypted + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER {} + impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_PARAMETER_EX1 { + pub Type: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_EX1 {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_PARAMETER_EX1") + .field("Type", &self.Type) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_EX1 { + fn eq(&self, other: &Self) -> bool { + self.Type == other.Type && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_EX1 {} + impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_PARAMETER_LIST { + pub Count: u32, + pub Items: *const FABRIC_CONFIGURATION_PARAMETER, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_LIST {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_PARAMETER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_LIST {} + impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_SECTION { + pub Name: ::windows_core::PCWSTR, + pub Parameters: *const FABRIC_CONFIGURATION_PARAMETER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_SECTION") + .field("Name", &self.Name) + .field("Parameters", &self.Parameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Parameters == other.Parameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION {} + impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_SECTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_CONFIGURATION_SECTION, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION_LIST {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_SECTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION_LIST {} + impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONFIGURATION_SETTINGS { + pub Sections: *const FABRIC_CONFIGURATION_SECTION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONFIGURATION_SETTINGS {} + impl ::core::clone::Clone for FABRIC_CONFIGURATION_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONFIGURATION_SETTINGS") + .field("Sections", &self.Sections) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.Sections == other.Sections && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SETTINGS {} + impl ::core::default::Default for FABRIC_CONFIGURATION_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + pub ImageName: ::windows_core::PCWSTR, + pub Commands: ::windows_core::PCWSTR, + pub EntryPoint: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION") + .field("ImageName", &self.ImageName) + .field("Commands", &self.Commands) + .field("EntryPoint", &self.EntryPoint) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ImageName == other.ImageName + && self.Commands == other.Commands + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DATA_PACKAGE_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DATA_PACKAGE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DATA_PACKAGE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DATA_PACKAGE_DESCRIPTION") + .field("Name", &self.Name) + .field("Version", &self.Version) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_DATA_PACKAGE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DATA_PACKAGE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DELETE_APPLICATION_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DELETE_APPLICATION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DELETE_APPLICATION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DELETE_APPLICATION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DELETE_APPLICATION_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ForceDelete", &self.ForceDelete) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DELETE_APPLICATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DELETE_APPLICATION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ForceDelete == other.ForceDelete + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DELETE_APPLICATION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DELETE_APPLICATION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DELETE_NETWORK_DESCRIPTION { + pub NetworkName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DELETE_NETWORK_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DELETE_NETWORK_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DELETE_NETWORK_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DELETE_NETWORK_DESCRIPTION") + .field("NetworkName", &self.NetworkName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DELETE_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DELETE_NETWORK_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DELETE_NETWORK_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DELETE_NETWORK_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DELETE_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DELETE_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_DELETE_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DELETE_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DELETE_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DELETE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DELETE_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DELETE_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_DELETE_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DELETE_SERVICE_DESCRIPTION { + pub ServiceName: *mut u16, + pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DELETE_SERVICE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DELETE_SERVICE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DELETE_SERVICE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DELETE_SERVICE_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("ForceDelete", &self.ForceDelete) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DELETE_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DELETE_SERVICE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.ForceDelete == other.ForceDelete + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DELETE_SERVICE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DELETE_SERVICE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub BaselineErrorCount: u32, + pub BaselineTotalCount: u32, + pub TotalCount: u32, + pub MaxPercentDeltaUnhealthyNodes: u8, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("BaselineErrorCount", &self.BaselineErrorCount) + .field("BaselineTotalCount", &self.BaselineTotalCount) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentDeltaUnhealthyNodes", + &self.MaxPercentDeltaUnhealthyNodes, + ) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.BaselineErrorCount == other.BaselineErrorCount + && self.BaselineTotalCount == other.BaselineTotalCount + && self.TotalCount == other.TotalCount + && self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyDeployedApplications: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyDeployedApplications", + &self.MaxPercentUnhealthyDeployedApplications, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH { + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub DeployedServicePackageHealthStates: + *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH") + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field( + "DeployedServicePackageHealthStates", + &self.DeployedServicePackageHealthStates, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.DeployedServicePackageHealthStates + == other.DeployedServicePackageHealthStates + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2") + .field("HealthStatistics", &self.HealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub DeployedServicePackagesFilter: + *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field( + "DeployedServicePackagesFilter", + &self.DeployedServicePackagesFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.DeployedServicePackagesFilter == other.DeployedServicePackagesFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + pub HealthStatisticsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") + .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT") + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE") + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + pub NodeName: ::windows_core::PCWSTR, + pub HealthState: FABRIC_HEALTH_STATE, + pub DeployedServicePackageHealthStateChunks: + *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK") + .field("NodeName", &self.NodeName) + .field("HealthState", &self.HealthState) + .field( + "DeployedServicePackageHealthStateChunks", + &self.DeployedServicePackageHealthStateChunks, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.HealthState == other.HealthState + && self.DeployedServicePackageHealthStateChunks + == other.DeployedServicePackageHealthStateChunks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub NodeNameFilter: ::windows_core::PCWSTR, + pub DeployedServicePackageFilters: + *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("NodeNameFilter", &self.NodeNameFilter) + .field( + "DeployedServicePackageFilters", + &self.DeployedServicePackageFilters, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.NodeNameFilter == other.NodeNameFilter + && self.DeployedServicePackageFilters == other.DeployedServicePackageFilters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER") + .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationNameFilter: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + pub ApplicationName: *mut u16, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub DeployedApplicationStatus: FABRIC_DEPLOYMENT_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM") + .field("ApplicationName", &self.ApplicationName) + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("DeployedApplicationStatus", &self.DeployedApplicationStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.DeployedApplicationStatus == other.DeployedApplicationStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + pub WorkDirectory: ::windows_core::PCWSTR, + pub LogDirectory: ::windows_core::PCWSTR, + pub TempDirectory: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX") + .field("WorkDirectory", &self.WorkDirectory) + .field("LogDirectory", &self.LogDirectory) + .field("TempDirectory", &self.TempDirectory) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + fn eq(&self, other: &Self) -> bool { + self.WorkDirectory == other.WorkDirectory + && self.LogDirectory == other.LogDirectory + && self.TempDirectory == other.TempDirectory + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2") + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.HealthState == other.HealthState && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub CodePackageNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("CodePackageNameFilter", &self.CodePackageNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.CodePackageNameFilter == other.CodePackageNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub RunFrequencyInterval: u32, + pub DeployedCodePackageStatus: FABRIC_DEPLOYMENT_STATUS, + pub SetupEntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, + pub EntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM") + .field("CodePackageName", &self.CodePackageName) + .field("CodePackageVersion", &self.CodePackageVersion) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("RunFrequencyInterval", &self.RunFrequencyInterval) + .field("DeployedCodePackageStatus", &self.DeployedCodePackageStatus) + .field("SetupEntryPoint", &self.SetupEntryPoint) + .field("EntryPoint", &self.EntryPoint) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.CodePackageName == other.CodePackageName + && self.CodePackageVersion == other.CodePackageVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.RunFrequencyInterval == other.RunFrequencyInterval + && self.DeployedCodePackageStatus == other.DeployedCodePackageStatus + && self.SetupEntryPoint == other.SetupEntryPoint + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub HostType: FABRIC_HOST_TYPE, + pub HostIsolationMode: FABRIC_HOST_ISOLATION_MODE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("HostType", &self.HostType) + .field("HostIsolationMode", &self.HostIsolationMode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.HostType == other.HostType + && self.HostIsolationMode == other.HostIsolationMode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_RESULT") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("CodePackageName", &self.CodePackageName) + .field("CodePackageInstanceId", &self.CodePackageInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, + pub ApplicationNameFilter: *mut u16, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub CodePackageNameFilter: ::windows_core::PCWSTR, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("NetworkName", &self.NetworkName) + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("CodePackageNameFilter", &self.CodePackageNameFilter) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NetworkName == other.NetworkName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.CodePackageNameFilter == other.CodePackageNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + pub ApplicationName: *mut u16, + pub NetworkName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub ContainerAddress: ::windows_core::PCWSTR, + pub ContainerId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM") + .field("ApplicationName", &self.ApplicationName) + .field("NetworkName", &self.NetworkName) + .field("CodePackageName", &self.CodePackageName) + .field("CodePackageVersion", &self.CodePackageVersion) + .field("ServiceManifestName", &self.ServiceManifestName) + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("ContainerAddress", &self.ContainerAddress) + .field("ContainerId", &self.ContainerId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NetworkName == other.NetworkName + && self.CodePackageName == other.CodePackageName + && self.CodePackageVersion == other.CodePackageVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.ServicePackageActivationId == other.ServicePackageActivationId + && self.ContainerAddress == other.ContainerAddress + && self.ContainerId == other.ContainerId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + pub NetworkName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM") + .field("NetworkName", &self.NetworkName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub NodeName: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("NodeName", &self.NodeName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.ServiceManifestName == other.ServiceManifestName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("NodeName", &self.NodeName) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + pub ServiceManifestName: ::windows_core::PCWSTR, + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK") + .field("ServiceManifestName", &self.ServiceManifestName) + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.ServiceManifestName == other.ServiceManifestName + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + pub ServicePackageActivationIdFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1") + .field( + "ServicePackageActivationIdFilter", + &self.ServicePackageActivationIdFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationIdFilter == other.ServicePackageActivationIdFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub DeployedServicePackageStatus: FABRIC_DEPLOYMENT_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM") + .field("ServiceManifestName", &self.ServiceManifestName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field( + "DeployedServicePackageStatus", + &self.DeployedServicePackageStatus, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.DeployedServicePackageStatus == other.DeployedServicePackageStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub PartitionIdFilter: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("PartitionIdFilter", &self.PartitionIdFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.PartitionIdFilter == other.PartitionIdFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) + .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.ServiceTypeNameFilter == other.ServiceTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + pub ServiceTypeName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub Status: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM") + .field("ServiceTypeName", &self.ServiceTypeName) + .field("CodePackageName", &self.CodePackageName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("Status", &self.Status) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeName == other.ServiceTypeName + && self.CodePackageName == other.CodePackageName + && self.ServiceManifestName == other.ServiceManifestName + && self.Status == other.Status + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, + pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub CurrentReplicatorOperation: FABRIC_QUERY_REPLICATOR_OPERATION_NAME, + pub ReadStatus: FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + pub WriteStatus: FABRIC_SERVICE_PARTITION_ACCESS_STATUS, + pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, + pub ReplicatorStatus: *mut FABRIC_REPLICATOR_STATUS_QUERY_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("CurrentServiceOperation", &self.CurrentServiceOperation) + .field( + "CurrentServiceOperationStartTimeUtc", + &self.CurrentServiceOperationStartTimeUtc, + ) + .field( + "CurrentReplicatorOperation", + &self.CurrentReplicatorOperation, + ) + .field("ReadStatus", &self.ReadStatus) + .field("WriteStatus", &self.WriteStatus) + .field("ReportedLoad", &self.ReportedLoad) + .field("ReplicatorStatus", &self.ReplicatorStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.CurrentServiceOperation == other.CurrentServiceOperation + && self.CurrentServiceOperationStartTimeUtc + == other.CurrentServiceOperationStartTimeUtc + && self.CurrentReplicatorOperation == other.CurrentReplicatorOperation + && self.ReadStatus == other.ReadStatus + && self.WriteStatus == other.WriteStatus + && self.ReportedLoad == other.ReportedLoad + && self.ReplicatorStatus == other.ReplicatorStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::default::Default + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { + pub ReplicaStatus: *mut FABRIC_REPLICA_STATUS_QUERY_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 + { + } + impl ::core::clone::Clone + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1") + .field("ReplicaStatus", &self.ReplicaStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn eq(&self, other: &Self) -> bool { + self.ReplicaStatus == other.ReplicaStatus && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { + pub DeployedServiceReplica: *mut FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 + { + } + impl ::core::clone::Clone + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 + { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2") + .field("DeployedServiceReplica", &self.DeployedServiceReplica) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 + { + fn eq(&self, other: &Self) -> bool { + self.DeployedServiceReplica == other.DeployedServiceReplica + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default + for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub ReplicaRole: FABRIC_REPLICA_ROLE, + pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, + pub Address: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("CodePackageName", &self.CodePackageName) + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("ReplicaRole", &self.ReplicaRole) + .field("ReplicaStatus", &self.ReplicaStatus) + .field("Address", &self.Address) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.CodePackageName == other.CodePackageName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.ReplicaRole == other.ReplicaRole + && self.ReplicaStatus == other.ReplicaStatus + && self.Address == other.Address + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + pub ServiceManifestName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1") + .field("ServiceManifestName", &self.ServiceManifestName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + pub HostProcessId: i64, + pub ReconfigurationInformation: *mut FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3") + .field("HostProcessId", &self.HostProcessId) + .field( + "ReconfigurationInformation", + &self.ReconfigurationInformation, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + fn eq(&self, other: &Self) -> bool { + self.HostProcessId == other.HostProcessId + && self.ReconfigurationInformation == other.ReconfigurationInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub InstanceId: i64, + pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, + pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("InstanceId", &self.InstanceId) + .field("CurrentServiceOperation", &self.CurrentServiceOperation) + .field( + "CurrentServiceOperationStartTimeUtc", + &self.CurrentServiceOperationStartTimeUtc, + ) + .field("ReportedLoad", &self.ReportedLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM + { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.CurrentServiceOperation == other.CurrentServiceOperation + && self.CurrentServiceOperationStartTimeUtc + == other.CurrentServiceOperationStartTimeUtc + && self.ReportedLoad == other.ReportedLoad + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} + impl ::core::default::Default + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { + pub DeployedServiceReplica: + *mut FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + } + impl ::core::clone::Clone + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct( + "FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1", + ) + .field("DeployedServiceReplica", &self.DeployedServiceReplica) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn eq(&self, other: &Self) -> bool { + self.DeployedServiceReplica == other.DeployedServiceReplica + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default + for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub InstanceId: i64, + pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, + pub Address: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("CodePackageName", &self.CodePackageName) + .field("PartitionId", &self.PartitionId) + .field("InstanceId", &self.InstanceId) + .field("ReplicaStatus", &self.ReplicaStatus) + .field("Address", &self.Address) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.CodePackageName == other.CodePackageName + && self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.ReplicaStatus == other.ReplicaStatus + && self.Address == other.Address + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + pub ServiceManifestName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1") + .field("ServiceManifestName", &self.ServiceManifestName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + pub HostProcessId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 {} + impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3") + .field("HostProcessId", &self.HostProcessId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + fn eq(&self, other: &Self) -> bool { + self.HostProcessId == other.HostProcessId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 {} + impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + pub IsolationPolicyType: FABRIC_DLLHOST_ISOLATION_POLICY, + pub HostedDlls: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION") + .field("IsolationPolicyType", &self.IsolationPolicyType) + .field("HostedDlls", &self.HostedDlls) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.IsolationPolicyType == other.IsolationPolicyType + && self.HostedDlls == other.HostedDlls + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + pub Kind: FABRIC_DLLHOST_HOSTED_DLL_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + pub AssemblyName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION") + .field("AssemblyName", &self.AssemblyName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.AssemblyName == other.AssemblyName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + pub DllName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION") + .field("DllName", &self.DllName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.DllName == other.DllName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} + impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Protocol: ::windows_core::PCWSTR, + pub Type: ::windows_core::PCWSTR, + pub Port: u32, + pub CertificateName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION") + .field("Name", &self.Name) + .field("Protocol", &self.Protocol) + .field("Type", &self.Type) + .field("Port", &self.Port) + .field("CertificateName", &self.CertificateName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Protocol == other.Protocol + && self.Type == other.Type + && self.Port == other.Port + && self.CertificateName == other.CertificateName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + pub UriScheme: ::windows_core::PCWSTR, + pub PathSuffix: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1") + .field("UriScheme", &self.UriScheme) + .field("PathSuffix", &self.PathSuffix) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UriScheme == other.UriScheme + && self.PathSuffix == other.PathSuffix + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + pub CodePackageName: ::windows_core::PCWSTR, + pub IpAddressOrFqdn: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2") + .field("CodePackageName", &self.CodePackageName) + .field("IpAddressOrFqdn", &self.IpAddressOrFqdn) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.CodePackageName == other.CodePackageName + && self.IpAddressOrFqdn == other.IpAddressOrFqdn + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + pub EntityKind: FABRIC_HEALTH_ENTITY_KIND, + pub HealthStateCount: *const FABRIC_HEALTH_STATE_COUNT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT {} + impl ::core::clone::Clone for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT") + .field("EntityKind", &self.EntityKind) + .field("HealthStateCount", &self.HealthStateCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + fn eq(&self, other: &Self) -> bool { + self.EntityKind == other.EntityKind + && self.HealthStateCount == other.HealthStateCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT {} + impl ::core::default::Default for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EPOCH { + pub DataLossNumber: i64, + pub ConfigurationNumber: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EPOCH {} + impl ::core::clone::Clone for FABRIC_EPOCH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EPOCH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EPOCH") + .field("DataLossNumber", &self.DataLossNumber) + .field("ConfigurationNumber", &self.ConfigurationNumber) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EPOCH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EPOCH { + fn eq(&self, other: &Self) -> bool { + self.DataLossNumber == other.DataLossNumber + && self.ConfigurationNumber == other.ConfigurationNumber + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EPOCH {} + impl ::core::default::Default for FABRIC_EPOCH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS { + pub DbFolderPath: ::windows_core::PCWSTR, + pub LogFileSizeInKB: i32, + pub LogBufferSizeInKB: i32, + pub MaxCursors: i32, + pub MaxVerPages: i32, + pub MaxAsyncCommitDelayInMilliseconds: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS") + .field("DbFolderPath", &self.DbFolderPath) + .field("LogFileSizeInKB", &self.LogFileSizeInKB) + .field("LogBufferSizeInKB", &self.LogBufferSizeInKB) + .field("MaxCursors", &self.MaxCursors) + .field("MaxVerPages", &self.MaxVerPages) + .field( + "MaxAsyncCommitDelayInMilliseconds", + &self.MaxAsyncCommitDelayInMilliseconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.DbFolderPath == other.DbFolderPath + && self.LogFileSizeInKB == other.LogFileSizeInKB + && self.LogBufferSizeInKB == other.LogBufferSizeInKB + && self.MaxCursors == other.MaxCursors + && self.MaxVerPages == other.MaxVerPages + && self.MaxAsyncCommitDelayInMilliseconds == other.MaxAsyncCommitDelayInMilliseconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + pub EnableIncrementalBackup: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1") + .field("EnableIncrementalBackup", &self.EnableIncrementalBackup) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.EnableIncrementalBackup == other.EnableIncrementalBackup + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + pub MaxCacheSizeInMB: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2") + .field("MaxCacheSizeInMB", &self.MaxCacheSizeInMB) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.MaxCacheSizeInMB == other.MaxCacheSizeInMB && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + pub MaxDefragFrequencyInMinutes: i32, + pub DefragThresholdInMB: i32, + pub DatabasePageSizeInKB: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3") + .field( + "MaxDefragFrequencyInMinutes", + &self.MaxDefragFrequencyInMinutes, + ) + .field("DefragThresholdInMB", &self.DefragThresholdInMB) + .field("DatabasePageSizeInKB", &self.DatabasePageSizeInKB) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + fn eq(&self, other: &Self) -> bool { + self.MaxDefragFrequencyInMinutes == other.MaxDefragFrequencyInMinutes + && self.DefragThresholdInMB == other.DefragThresholdInMB + && self.DatabasePageSizeInKB == other.DatabasePageSizeInKB + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + pub CompactionThresholdInMB: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4") + .field("CompactionThresholdInMB", &self.CompactionThresholdInMB) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + fn eq(&self, other: &Self) -> bool { + self.CompactionThresholdInMB == other.CompactionThresholdInMB + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + pub IntrinsicValueThresholdInBytes: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5") + .field( + "IntrinsicValueThresholdInBytes", + &self.IntrinsicValueThresholdInBytes, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + fn eq(&self, other: &Self) -> bool { + self.IntrinsicValueThresholdInBytes == other.IntrinsicValueThresholdInBytes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + pub EnableOverwriteOnUpdate: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} + impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6") + .field("EnableOverwriteOnUpdate", &self.EnableOverwriteOnUpdate) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + fn eq(&self, other: &Self) -> bool { + self.EnableOverwriteOnUpdate == other.EnableOverwriteOnUpdate + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} + impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EVENT_CONTEXT_MAP { + pub Count: u32, + pub Items: *mut FABRIC_EVENT_CONTEXT_MAP_ITEM, + } + impl ::core::marker::Copy for FABRIC_EVENT_CONTEXT_MAP {} + impl ::core::clone::Clone for FABRIC_EVENT_CONTEXT_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EVENT_CONTEXT_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP {} + impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EVENT_CONTEXT_MAP_ITEM { + pub Key: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_EVENT_CONTEXT_MAP_ITEM {} + impl ::core::clone::Clone for FABRIC_EVENT_CONTEXT_MAP_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EVENT_CONTEXT_MAP_ITEM") + .field("Key", &self.Key) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Key == other.Key && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP_ITEM {} + impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EVENT_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvent: *const FABRIC_HEALTH_EVENT, + pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EVENT_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_EVENT_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EVENT_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EVENT_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvent", &self.UnhealthyEvent) + .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EVENT_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EVENT_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvent == other.UnhealthyEvent + && self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EVENT_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_EVENT_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EXECUTING_FAULTS_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub Faults: *const FABRIC_STRING_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EXECUTING_FAULTS_EVENT {} + impl ::core::clone::Clone for FABRIC_EXECUTING_FAULTS_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EXECUTING_FAULTS_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EXECUTING_FAULTS_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("Faults", &self.Faults) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EXECUTING_FAULTS_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EXECUTING_FAULTS_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.Faults == other.Faults + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EXECUTING_FAULTS_EVENT {} + impl ::core::default::Default for FABRIC_EXECUTING_FAULTS_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + pub Program: ::windows_core::PCWSTR, + pub Arguments: ::windows_core::PCWSTR, + pub WorkingFolder: FABRIC_EXEHOST_WORKING_FOLDER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION") + .field("Program", &self.Program) + .field("Arguments", &self.Arguments) + .field("WorkingFolder", &self.WorkingFolder) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Program == other.Program + && self.Arguments == other.Arguments + && self.WorkingFolder == other.WorkingFolder + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + pub PeriodicIntervalInSeconds: u32, + pub ConsoleRedirectionEnabled: ::windows::Win32::Foundation::BOOLEAN, + pub ConsoleRedirectionFileRetentionCount: u32, + pub ConsoleRedirectionFileMaxSizeInKb: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1") + .field("PeriodicIntervalInSeconds", &self.PeriodicIntervalInSeconds) + .field("ConsoleRedirectionEnabled", &self.ConsoleRedirectionEnabled) + .field( + "ConsoleRedirectionFileRetentionCount", + &self.ConsoleRedirectionFileRetentionCount, + ) + .field( + "ConsoleRedirectionFileMaxSizeInKb", + &self.ConsoleRedirectionFileMaxSizeInKb, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PeriodicIntervalInSeconds == other.PeriodicIntervalInSeconds + && self.ConsoleRedirectionEnabled == other.ConsoleRedirectionEnabled + && self.ConsoleRedirectionFileRetentionCount + == other.ConsoleRedirectionFileRetentionCount + && self.ConsoleRedirectionFileMaxSizeInKb == other.ConsoleRedirectionFileMaxSizeInKb + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + pub IsExternalExecutable: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2") + .field("IsExternalExecutable", &self.IsExternalExecutable) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsExternalExecutable == other.IsExternalExecutable + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ApplicationPackageDownloadUri: ::windows_core::PCWSTR, + pub Async: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field( + "ApplicationPackageDownloadUri", + &self.ApplicationPackageDownloadUri, + ) + .field("Async", &self.Async) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ApplicationPackageDownloadUri == other.ApplicationPackageDownloadUri + && self.Async == other.Async + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_GATEWAY_INFORMATION { + pub NodeAddress: ::windows_core::PCWSTR, + pub NodeId: FABRIC_NODE_ID, + pub NodeInstanceId: u64, + pub NodeName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_GATEWAY_INFORMATION {} + impl ::core::clone::Clone for FABRIC_GATEWAY_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_GATEWAY_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_GATEWAY_INFORMATION") + .field("NodeAddress", &self.NodeAddress) + .field("NodeId", &self.NodeId) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("NodeName", &self.NodeName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_GATEWAY_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_GATEWAY_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.NodeAddress == other.NodeAddress + && self.NodeId == other.NodeId + && self.NodeInstanceId == other.NodeInstanceId + && self.NodeName == other.NodeName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_GATEWAY_INFORMATION {} + impl ::core::default::Default for FABRIC_GATEWAY_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + pub Filter: *mut FABRIC_CHAOS_REPORT_FILTER, + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_GET_CHAOS_REPORT_DESCRIPTION") + .field("Filter", &self.Filter) + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Filter == other.Filter + && self.ContinuationToken == other.ContinuationToken + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_GET_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub IncludeValue: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_GET_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_GET_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_GET_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_GET_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("IncludeValue", &self.IncludeValue) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_GET_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_GET_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.IncludeValue == other.IncludeValue + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_GET_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_GET_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVALUATION { + pub Kind: FABRIC_HEALTH_EVALUATION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVALUATION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVALUATION_LIST { + pub Count: u32, + pub Items: *const FABRIC_HEALTH_EVALUATION, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION_LIST {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVALUATION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVALUATION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION_LIST {} + impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVENT { + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub SourceUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub LastModifiedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub IsExpired: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVENT {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVENT") + .field("HealthInformation", &self.HealthInformation) + .field("SourceUtcTimestamp", &self.SourceUtcTimestamp) + .field("LastModifiedUtcTimestamp", &self.LastModifiedUtcTimestamp) + .field("IsExpired", &self.IsExpired) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT { + fn eq(&self, other: &Self) -> bool { + self.HealthInformation == other.HealthInformation + && self.SourceUtcTimestamp == other.SourceUtcTimestamp + && self.LastModifiedUtcTimestamp == other.LastModifiedUtcTimestamp + && self.IsExpired == other.IsExpired + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT {} + impl ::core::default::Default for FABRIC_HEALTH_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVENTS_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVENTS_FILTER {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVENTS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVENTS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVENTS_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENTS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENTS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVENTS_FILTER {} + impl ::core::default::Default for FABRIC_HEALTH_EVENTS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVENT_EX1 { + pub LastOkTransitionAt: ::windows::Win32::Foundation::FILETIME, + pub LastWarningTransitionAt: ::windows::Win32::Foundation::FILETIME, + pub LastErrorTransitionAt: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_EX1 {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVENT_EX1") + .field("LastOkTransitionAt", &self.LastOkTransitionAt) + .field("LastWarningTransitionAt", &self.LastWarningTransitionAt) + .field("LastErrorTransitionAt", &self.LastErrorTransitionAt) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.LastOkTransitionAt == other.LastOkTransitionAt + && self.LastWarningTransitionAt == other.LastWarningTransitionAt + && self.LastErrorTransitionAt == other.LastErrorTransitionAt + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_EX1 {} + impl ::core::default::Default for FABRIC_HEALTH_EVENT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_EVENT_LIST { + pub Count: u32, + pub Items: *const FABRIC_HEALTH_EVENT, + } + impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_LIST {} + impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_EVENT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_LIST {} + impl ::core::default::Default for FABRIC_HEALTH_EVENT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_INFORMATION { + pub SourceId: ::windows_core::PCWSTR, + pub Property: ::windows_core::PCWSTR, + pub TimeToLiveSeconds: u32, + pub State: FABRIC_HEALTH_STATE, + pub Description: ::windows_core::PCWSTR, + pub SequenceNumber: i64, + pub RemoveWhenExpired: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_INFORMATION {} + impl ::core::clone::Clone for FABRIC_HEALTH_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_INFORMATION") + .field("SourceId", &self.SourceId) + .field("Property", &self.Property) + .field("TimeToLiveSeconds", &self.TimeToLiveSeconds) + .field("State", &self.State) + .field("Description", &self.Description) + .field("SequenceNumber", &self.SequenceNumber) + .field("RemoveWhenExpired", &self.RemoveWhenExpired) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.SourceId == other.SourceId + && self.Property == other.Property + && self.TimeToLiveSeconds == other.TimeToLiveSeconds + && self.State == other.State + && self.Description == other.Description + && self.SequenceNumber == other.SequenceNumber + && self.RemoveWhenExpired == other.RemoveWhenExpired + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_INFORMATION {} + impl ::core::default::Default for FABRIC_HEALTH_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_REPORT { + pub Kind: FABRIC_HEALTH_REPORT_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_REPORT") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_REPORT_SEND_OPTIONS { + pub Immediate: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} + impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_REPORT_SEND_OPTIONS") + .field("Immediate", &self.Immediate) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + fn eq(&self, other: &Self) -> bool { + self.Immediate == other.Immediate && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} + impl ::core::default::Default for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_STATE_COUNT { + pub OkCount: u32, + pub WarningCount: u32, + pub ErrorCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_STATE_COUNT {} + impl ::core::clone::Clone for FABRIC_HEALTH_STATE_COUNT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_COUNT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_STATE_COUNT") + .field("OkCount", &self.OkCount) + .field("WarningCount", &self.WarningCount) + .field("ErrorCount", &self.ErrorCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_STATE_COUNT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATE_COUNT { + fn eq(&self, other: &Self) -> bool { + self.OkCount == other.OkCount + && self.WarningCount == other.WarningCount + && self.ErrorCount == other.ErrorCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_STATE_COUNT {} + impl ::core::default::Default for FABRIC_HEALTH_STATE_COUNT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_HEALTH_STATISTICS { + pub Count: u32, + pub Items: *const FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_HEALTH_STATISTICS {} + impl ::core::clone::Clone for FABRIC_HEALTH_STATISTICS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_HEALTH_STATISTICS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_HEALTH_STATISTICS") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_HEALTH_STATISTICS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATISTICS { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_HEALTH_STATISTICS {} + impl ::core::default::Default for FABRIC_HEALTH_STATISTICS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_INT64_RANGE_PARTITION_INFORMATION { + pub Id: ::windows_core::GUID, + pub LowKey: i64, + pub HighKey: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_INT64_RANGE_PARTITION_INFORMATION {} + impl ::core::clone::Clone for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_INT64_RANGE_PARTITION_INFORMATION") + .field("Id", &self.Id) + .field("LowKey", &self.LowKey) + .field("HighKey", &self.HighKey) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Id == other.Id + && self.LowKey == other.LowKey + && self.HighKey == other.HighKey + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_INT64_RANGE_PARTITION_INFORMATION {} + impl ::core::default::Default for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_ITEM { + pub Metadata: *const FABRIC_KEY_VALUE_STORE_ITEM_METADATA, + pub Value: *mut u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM") + .field("Metadata", &self.Metadata) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Metadata == other.Metadata + && self.Value == other.Value + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + pub Key: ::windows_core::PCWSTR, + pub ValueSizeInBytes: i32, + pub SequenceNumber: i64, + pub LastModifiedUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA") + .field("Key", &self.Key) + .field("ValueSizeInBytes", &self.ValueSizeInBytes) + .field("SequenceNumber", &self.SequenceNumber) + .field("LastModifiedUtc", &self.LastModifiedUtc) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + fn eq(&self, other: &Self) -> bool { + self.Key == other.Key + && self.ValueSizeInBytes == other.ValueSizeInBytes + && self.SequenceNumber == other.SequenceNumber + && self.LastModifiedUtc == other.LastModifiedUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + pub LastModifiedOnPrimaryUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1") + .field("LastModifiedOnPrimaryUtc", &self.LastModifiedOnPrimaryUtc) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + fn eq(&self, other: &Self) -> bool { + self.LastModifiedOnPrimaryUtc == other.LastModifiedOnPrimaryUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + pub CurrentPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, + pub State: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE, + pub NextPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT") + .field("CurrentPhase", &self.CurrentPhase) + .field("State", &self.State) + .field("NextPhase", &self.NextPhase) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.CurrentPhase == other.CurrentPhase + && self.State == other.State + && self.NextPhase == other.NextPhase + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + pub TransactionDrainTimeoutInSeconds: u32, + pub SecondaryNotificationMode: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS") + .field( + "TransactionDrainTimeoutInSeconds", + &self.TransactionDrainTimeoutInSeconds, + ) + .field("SecondaryNotificationMode", &self.SecondaryNotificationMode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.TransactionDrainTimeoutInSeconds == other.TransactionDrainTimeoutInSeconds + && self.SecondaryNotificationMode == other.SecondaryNotificationMode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + pub EnableCopyNotificationPrefetch: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1") + .field( + "EnableCopyNotificationPrefetch", + &self.EnableCopyNotificationPrefetch, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.EnableCopyNotificationPrefetch == other.EnableCopyNotificationPrefetch + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + pub FullCopyMode: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2") + .field("FullCopyMode", &self.FullCopyMode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.FullCopyMode == other.FullCopyMode && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + pub LogTruncationIntervalInMinutes: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3") + .field( + "LogTruncationIntervalInMinutes", + &self.LogTruncationIntervalInMinutes, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + fn eq(&self, other: &Self) -> bool { + self.LogTruncationIntervalInMinutes == other.LogTruncationIntervalInMinutes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + pub InlineReopen: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS") + .field("InlineReopen", &self.InlineReopen) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.InlineReopen == other.InlineReopen && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + pub EnableLsnCheck: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1") + .field("EnableLsnCheck", &self.EnableLsnCheck) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.EnableLsnCheck == other.EnableLsnCheck && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + pub DatabaseRowCountEstimate: i64, + pub DatabaseLogicalSizeEstimate: i64, + pub CopyNotificationCurrentKeyFilter: ::windows_core::PCWSTR, + pub CopyNotificationCurrentProgress: i64, + pub StatusDetails: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT") + .field("DatabaseRowCountEstimate", &self.DatabaseRowCountEstimate) + .field( + "DatabaseLogicalSizeEstimate", + &self.DatabaseLogicalSizeEstimate, + ) + .field( + "CopyNotificationCurrentKeyFilter", + &self.CopyNotificationCurrentKeyFilter, + ) + .field( + "CopyNotificationCurrentProgress", + &self.CopyNotificationCurrentProgress, + ) + .field("StatusDetails", &self.StatusDetails) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.DatabaseRowCountEstimate == other.DatabaseRowCountEstimate + && self.DatabaseLogicalSizeEstimate == other.DatabaseLogicalSizeEstimate + && self.CopyNotificationCurrentKeyFilter == other.CopyNotificationCurrentKeyFilter + && self.CopyNotificationCurrentProgress == other.CopyNotificationCurrentProgress + && self.StatusDetails == other.StatusDetails + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + pub ProviderKind: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND, + pub MigrationStatus: *const FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1") + .field("ProviderKind", &self.ProviderKind) + .field("MigrationStatus", &self.MigrationStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ProviderKind == other.ProviderKind + && self.MigrationStatus == other.MigrationStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + pub SerializationBlockSize: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS {} + impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS") + .field("SerializationBlockSize", &self.SerializationBlockSize) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.SerializationBlockSize == other.SerializationBlockSize + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS {} + impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC { + pub Name: ::windows_core::PCWSTR, + pub Value: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC") + .field("Name", &self.Name) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC {} + impl ::core::default::Default for FABRIC_LOAD_METRIC { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_INFORMATION { + pub Name: ::windows_core::PCWSTR, + pub IsBalancedBefore: ::windows::Win32::Foundation::BOOLEAN, + pub IsBalancedAfter: ::windows::Win32::Foundation::BOOLEAN, + pub DeviationBefore: f64, + pub DeviationAfter: f64, + pub BalancingThreshold: f64, + pub Action: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION") + .field("Name", &self.Name) + .field("IsBalancedBefore", &self.IsBalancedBefore) + .field("IsBalancedAfter", &self.IsBalancedAfter) + .field("DeviationBefore", &self.DeviationBefore) + .field("DeviationAfter", &self.DeviationAfter) + .field("BalancingThreshold", &self.BalancingThreshold) + .field("Action", &self.Action) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.IsBalancedBefore == other.IsBalancedBefore + && self.IsBalancedAfter == other.IsBalancedAfter + && self.DeviationBefore == other.DeviationBefore + && self.DeviationAfter == other.DeviationAfter + && self.BalancingThreshold == other.BalancingThreshold + && self.Action == other.Action + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_INFORMATION_EX1 { + pub ActivityThreshold: u32, + pub ClusterCapacity: i64, + pub ClusterLoad: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX1 {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX1") + .field("ActivityThreshold", &self.ActivityThreshold) + .field("ClusterCapacity", &self.ClusterCapacity) + .field("ClusterLoad", &self.ClusterLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ActivityThreshold == other.ActivityThreshold + && self.ClusterCapacity == other.ClusterCapacity + && self.ClusterLoad == other.ClusterLoad + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX1 {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_INFORMATION_EX2 { + pub RemainingUnbufferedCapacity: i64, + pub NodeBufferPercentage: f64, + pub BufferedCapacity: i64, + pub RemainingBufferedCapacity: i64, + pub IsClusterCapacityViolation: ::windows::Win32::Foundation::BOOLEAN, + pub MinNodeLoadValue: i64, + pub MinNodeLoadNodeId: FABRIC_NODE_ID, + pub MaxNodeLoadValue: i64, + pub MaxNodeLoadNodeId: FABRIC_NODE_ID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX2") + .field( + "RemainingUnbufferedCapacity", + &self.RemainingUnbufferedCapacity, + ) + .field("NodeBufferPercentage", &self.NodeBufferPercentage) + .field("BufferedCapacity", &self.BufferedCapacity) + .field("RemainingBufferedCapacity", &self.RemainingBufferedCapacity) + .field( + "IsClusterCapacityViolation", + &self.IsClusterCapacityViolation, + ) + .field("MinNodeLoadValue", &self.MinNodeLoadValue) + .field("MinNodeLoadNodeId", &self.MinNodeLoadNodeId) + .field("MaxNodeLoadValue", &self.MaxNodeLoadValue) + .field("MaxNodeLoadNodeId", &self.MaxNodeLoadNodeId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.RemainingUnbufferedCapacity == other.RemainingUnbufferedCapacity + && self.NodeBufferPercentage == other.NodeBufferPercentage + && self.BufferedCapacity == other.BufferedCapacity + && self.RemainingBufferedCapacity == other.RemainingBufferedCapacity + && self.IsClusterCapacityViolation == other.IsClusterCapacityViolation + && self.MinNodeLoadValue == other.MinNodeLoadValue + && self.MinNodeLoadNodeId == other.MinNodeLoadNodeId + && self.MaxNodeLoadValue == other.MaxNodeLoadValue + && self.MaxNodeLoadNodeId == other.MaxNodeLoadNodeId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_INFORMATION_EX3 { + pub CurrentClusterLoad: f64, + pub BufferedClusterCapacityRemaining: f64, + pub ClusterCapacityRemaining: f64, + pub MaximumNodeLoad: f64, + pub MinimumNodeLoad: f64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX3 {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX3") + .field("CurrentClusterLoad", &self.CurrentClusterLoad) + .field( + "BufferedClusterCapacityRemaining", + &self.BufferedClusterCapacityRemaining, + ) + .field("ClusterCapacityRemaining", &self.ClusterCapacityRemaining) + .field("MaximumNodeLoad", &self.MaximumNodeLoad) + .field("MinimumNodeLoad", &self.MinimumNodeLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.CurrentClusterLoad == other.CurrentClusterLoad + && self.BufferedClusterCapacityRemaining == other.BufferedClusterCapacityRemaining + && self.ClusterCapacityRemaining == other.ClusterCapacityRemaining + && self.MaximumNodeLoad == other.MaximumNodeLoad + && self.MinimumNodeLoad == other.MinimumNodeLoad + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX3 {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_INFORMATION_LIST { + pub Count: u32, + pub Items: *mut FABRIC_LOAD_METRIC_INFORMATION, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_REPORT { + pub Name: ::windows_core::PCWSTR, + pub Value: u32, + pub LastReportedUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_REPORT") + .field("Name", &self.Name) + .field("Value", &self.Value) + .field("LastReportedUtc", &self.LastReportedUtc) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Value == other.Value + && self.LastReportedUtc == other.LastReportedUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_REPORT_EX1 { + pub CurrentValue: f64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT_EX1 {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_REPORT_EX1") + .field("CurrentValue", &self.CurrentValue) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_EX1 { + fn eq(&self, other: &Self) -> bool { + self.CurrentValue == other.CurrentValue && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_EX1 {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOAD_METRIC_REPORT_LIST { + pub Count: u32, + pub Items: *mut FABRIC_LOAD_METRIC_REPORT, + } + impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT_LIST {} + impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOAD_METRIC_REPORT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_LIST {} + impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + pub NetworkAddressPrefix: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION") + .field("NetworkAddressPrefix", &self.NetworkAddressPrefix) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkAddressPrefix == other.NetworkAddressPrefix + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOCAL_NETWORK_DESCRIPTION { + pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOCAL_NETWORK_DESCRIPTION") + .field("NetworkConfiguration", &self.NetworkConfiguration) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkConfiguration == other.NetworkConfiguration + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_DESCRIPTION {} + impl ::core::default::Default for FABRIC_LOCAL_NETWORK_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_LOCAL_NETWORK_INFORMATION { + pub NetworkName: ::windows_core::PCWSTR, + pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, + pub NetworkStatus: FABRIC_NETWORK_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_INFORMATION {} + impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_LOCAL_NETWORK_INFORMATION") + .field("NetworkName", &self.NetworkName) + .field("NetworkConfiguration", &self.NetworkConfiguration) + .field("NetworkStatus", &self.NetworkStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName + && self.NetworkConfiguration == other.NetworkConfiguration + && self.NetworkStatus == other.NetworkStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_INFORMATION {} + impl ::core::default::Default for FABRIC_LOCAL_NETWORK_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + pub Kind: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_PRIMARY_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + pub NodeName: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME") + .field("NodeName", &self.NodeName) + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("IgnoreConstraints", &self.IgnoreConstraints) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.IgnoreConstraints == other.IgnoreConstraints + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_PRIMARY_RESULT { + pub NodeName: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_RESULT {} + impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_PRIMARY_RESULT") + .field("NodeName", &self.NodeName) + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_RESULT {} + impl ::core::default::Default for FABRIC_MOVE_PRIMARY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + pub Kind: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_SECONDARY_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + pub CurrentNodeName: ::windows_core::PCWSTR, + pub NewNodeName: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME") + .field("CurrentNodeName", &self.CurrentNodeName) + .field("NewNodeName", &self.NewNodeName) + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("IgnoreConstraints", &self.IgnoreConstraints) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.CurrentNodeName == other.CurrentNodeName + && self.NewNodeName == other.NewNodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.IgnoreConstraints == other.IgnoreConstraints + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_MOVE_SECONDARY_RESULT { + pub CurrentNodeName: ::windows_core::PCWSTR, + pub NewNodeName: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_RESULT {} + impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_MOVE_SECONDARY_RESULT") + .field("CurrentNodeName", &self.CurrentNodeName) + .field("NewNodeName", &self.NewNodeName) + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.CurrentNodeName == other.CurrentNodeName + && self.NewNodeName == other.NewNodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_RESULT {} + impl ::core::default::Default for FABRIC_MOVE_SECONDARY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_PARTITION_INFORMATION { + pub Id: ::windows_core::GUID, + pub Name: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_INFORMATION {} + impl ::core::clone::Clone for FABRIC_NAMED_PARTITION_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_PARTITION_INFORMATION") + .field("Id", &self.Id) + .field("Name", &self.Name) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Id == other.Id && self.Name == other.Name && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_INFORMATION {} + impl ::core::default::Default for FABRIC_NAMED_PARTITION_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + pub PartitionCount: i32, + pub Names: *const ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION") + .field("PartitionCount", &self.PartitionCount) + .field("Names", &self.Names) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionCount == other.PartitionCount + && self.Names == other.Names + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_PROPERTY { + pub Metadata: *const FABRIC_NAMED_PROPERTY_METADATA, + pub Value: *mut u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY {} + impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_PROPERTY") + .field("Metadata", &self.Metadata) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY { + fn eq(&self, other: &Self) -> bool { + self.Metadata == other.Metadata + && self.Value == other.Value + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY {} + impl ::core::default::Default for FABRIC_NAMED_PROPERTY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_PROPERTY_METADATA { + pub PropertyName: ::windows_core::PCWSTR, + pub TypeId: FABRIC_PROPERTY_TYPE_ID, + pub ValueSize: i32, + pub SequenceNumber: i64, + pub LastModifiedUtc: ::windows::Win32::Foundation::FILETIME, + pub Name: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA {} + impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY_METADATA { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_PROPERTY_METADATA") + .field("PropertyName", &self.PropertyName) + .field("TypeId", &self.TypeId) + .field("ValueSize", &self.ValueSize) + .field("SequenceNumber", &self.SequenceNumber) + .field("LastModifiedUtc", &self.LastModifiedUtc) + .field("Name", &self.Name) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.TypeId == other.TypeId + && self.ValueSize == other.ValueSize + && self.SequenceNumber == other.SequenceNumber + && self.LastModifiedUtc == other.LastModifiedUtc + && self.Name == other.Name + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA {} + impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_PROPERTY_METADATA_EX1 { + pub CustomTypeId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} + impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_PROPERTY_METADATA_EX1") + .field("CustomTypeId", &self.CustomTypeId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + fn eq(&self, other: &Self) -> bool { + self.CustomTypeId == other.CustomTypeId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} + impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NAMED_REPARTITION_DESCRIPTION { + pub NamesToAddCount: u32, + pub NamesToAdd: *const ::windows_core::PCWSTR, + pub NamesToRemoveCount: u32, + pub NamesToRemove: *const ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NAMED_REPARTITION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NAMED_REPARTITION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NAMED_REPARTITION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NAMED_REPARTITION_DESCRIPTION") + .field("NamesToAddCount", &self.NamesToAddCount) + .field("NamesToAdd", &self.NamesToAdd) + .field("NamesToRemoveCount", &self.NamesToRemoveCount) + .field("NamesToRemove", &self.NamesToRemove) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NAMED_REPARTITION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NAMED_REPARTITION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NamesToAddCount == other.NamesToAddCount + && self.NamesToAdd == other.NamesToAdd + && self.NamesToRemoveCount == other.NamesToRemoveCount + && self.NamesToRemove == other.NamesToRemove + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NAMED_REPARTITION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NAMED_REPARTITION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + pub NetworkName: ::windows_core::PCWSTR, + pub ApplicationNameFilter: *mut u16, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION") + .field("NetworkName", &self.NetworkName) + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + pub ApplicationName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM") + .field("ApplicationName", &self.ApplicationName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_DESCRIPTION { + pub NetworkType: FABRIC_NETWORK_TYPE, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NETWORK_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_DESCRIPTION") + .field("NetworkType", &self.NetworkType) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkType == other.NetworkType && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NETWORK_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_INFORMATION { + pub NetworkType: FABRIC_NETWORK_TYPE, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_INFORMATION {} + impl ::core::clone::Clone for FABRIC_NETWORK_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_INFORMATION") + .field("NetworkType", &self.NetworkType) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.NetworkType == other.NetworkType && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_INFORMATION {} + impl ::core::default::Default for FABRIC_NETWORK_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + pub NetworkName: ::windows_core::PCWSTR, + pub NodeNameFilter: ::windows_core::PCWSTR, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_NODE_QUERY_DESCRIPTION") + .field("NetworkName", &self.NetworkName) + .field("NodeNameFilter", &self.NodeNameFilter) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkName == other.NetworkName + && self.NodeNameFilter == other.NodeNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + pub NodeName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM") + .field("NodeName", &self.NodeName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_NODE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_QUERY_DESCRIPTION { + pub NetworkNameFilter: ::windows_core::PCWSTR, + pub NetworkStatusFilter: u32, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NETWORK_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NETWORK_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_QUERY_DESCRIPTION") + .field("NetworkNameFilter", &self.NetworkNameFilter) + .field("NetworkStatusFilter", &self.NetworkStatusFilter) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NetworkNameFilter == other.NetworkNameFilter + && self.NetworkStatusFilter == other.NetworkStatusFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NETWORK_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NETWORK_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_NETWORK_INFORMATION, + } + impl ::core::marker::Copy for FABRIC_NETWORK_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_NETWORK_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NETWORK_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_NETWORK_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODES_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyNodes: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODES_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_NODES_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODES_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODES_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODES_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODES_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_NODES_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_CONTEXT { + pub NodeName: ::windows_core::PCWSTR, + pub NodeType: ::windows_core::PCWSTR, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub NodeId: FABRIC_NODE_ID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_CONTEXT {} + impl ::core::clone::Clone for FABRIC_NODE_CONTEXT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_CONTEXT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_CONTEXT") + .field("NodeName", &self.NodeName) + .field("NodeType", &self.NodeType) + .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("NodeId", &self.NodeId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_CONTEXT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_CONTEXT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeType == other.NodeType + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.NodeInstanceId == other.NodeInstanceId + && self.NodeId == other.NodeId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_CONTEXT {} + impl ::core::default::Default for FABRIC_NODE_CONTEXT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + pub EffectiveIntent: FABRIC_NODE_DEACTIVATION_INTENT, + pub Status: FABRIC_NODE_DEACTIVATION_STATUS, + pub Tasks: *const FABRIC_NODE_DEACTIVATION_TASK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM") + .field("EffectiveIntent", &self.EffectiveIntent) + .field("Status", &self.Status) + .field("Tasks", &self.Tasks) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.EffectiveIntent == other.EffectiveIntent + && self.Status == other.Status + && self.Tasks == other.Tasks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + pub PendingSafetyChecks: *const FABRIC_SAFETY_CHECK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1") + .field("PendingSafetyChecks", &self.PendingSafetyChecks) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PendingSafetyChecks == other.PendingSafetyChecks && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_DEACTIVATION_TASK { + pub TaskId: *const FABRIC_NODE_DEACTIVATION_TASK_ID, + pub Intent: FABRIC_NODE_DEACTIVATION_INTENT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK") + .field("TaskId", &self.TaskId) + .field("Intent", &self.Intent) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK { + fn eq(&self, other: &Self) -> bool { + self.TaskId == other.TaskId + && self.Intent == other.Intent + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK {} + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_DEACTIVATION_TASK_ID { + pub Id: ::windows_core::PCWSTR, + pub Type: FABRIC_NODE_DEACTIVATION_TASK_TYPE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_ID {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_ID { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_ID { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK_ID") + .field("Id", &self.Id) + .field("Type", &self.Type) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_ID { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_ID { + fn eq(&self, other: &Self) -> bool { + self.Id == other.Id && self.Type == other.Type && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_ID {} + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_ID { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_DEACTIVATION_TASK_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_DEACTIVATION_TASK, + } + impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_LIST {} + impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH { + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH") + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH {} + impl ::core::default::Default for FABRIC_NODE_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_REPORT { + pub NodeName: ::windows_core::PCWSTR, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_REPORT") + .field("NodeName", &self.NodeName) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE { + pub NodeName: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE") + .field("NodeName", &self.NodeName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE_CHUNK { + pub NodeName: ::windows_core::PCWSTR, + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE_CHUNK") + .field("NodeName", &self.NodeName) + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub NodeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("NodeNameFilter", &self.NodeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.NodeNameFilter == other.NodeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_ID { + pub Low: u64, + pub High: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_ID {} + impl ::core::clone::Clone for FABRIC_NODE_ID { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_ID { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_ID") + .field("Low", &self.Low) + .field("High", &self.High) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_ID { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_ID { + fn eq(&self, other: &Self) -> bool { + self.Low == other.Low && self.High == other.High && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_ID {} + impl ::core::default::Default for FABRIC_NODE_ID { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_INFORMATION { + pub NodeName: ::windows_core::PCWSTR, + pub NodeLoadMetricInformation: *const FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_INFORMATION") + .field("NodeName", &self.NodeName) + .field("NodeLoadMetricInformation", &self.NodeLoadMetricInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeLoadMetricInformation == other.NodeLoadMetricInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION {} + impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION { + pub Name: ::windows_core::PCWSTR, + pub NodeCapacity: i64, + pub NodeLoad: i64, + pub NodeRemainingCapacity: i64, + pub IsCapacityViolation: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION") + .field("Name", &self.Name) + .field("NodeCapacity", &self.NodeCapacity) + .field("NodeLoad", &self.NodeLoad) + .field("NodeRemainingCapacity", &self.NodeRemainingCapacity) + .field("IsCapacityViolation", &self.IsCapacityViolation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.NodeCapacity == other.NodeCapacity + && self.NodeLoad == other.NodeLoad + && self.NodeRemainingCapacity == other.NodeRemainingCapacity + && self.IsCapacityViolation == other.IsCapacityViolation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION {} + impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + pub NodeBufferedCapacity: i64, + pub NodeRemainingBufferedCapacity: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1") + .field("NodeBufferedCapacity", &self.NodeBufferedCapacity) + .field( + "NodeRemainingBufferedCapacity", + &self.NodeRemainingBufferedCapacity, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.NodeBufferedCapacity == other.NodeBufferedCapacity + && self.NodeRemainingBufferedCapacity == other.NodeRemainingBufferedCapacity + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 {} + impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + pub CurrentNodeLoad: f64, + pub NodeCapacityRemaining: f64, + pub BufferedNodeCapacityRemaining: f64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2") + .field("CurrentNodeLoad", &self.CurrentNodeLoad) + .field("NodeCapacityRemaining", &self.NodeCapacityRemaining) + .field( + "BufferedNodeCapacityRemaining", + &self.BufferedNodeCapacityRemaining, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.CurrentNodeLoad == other.CurrentNodeLoad + && self.NodeCapacityRemaining == other.NodeCapacityRemaining + && self.BufferedNodeCapacityRemaining == other.BufferedNodeCapacityRemaining + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 {} + impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + pub Count: u32, + pub Items: *mut FABRIC_NODE_LOAD_METRIC_INFORMATION, + } + impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} + impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_DESCRIPTION { + pub NodeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION") + .field("NodeNameFilter", &self.NodeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeNameFilter == other.NodeNameFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX1") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + pub NodeStatusFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX2") + .field("NodeStatusFilter", &self.NodeStatusFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.NodeStatusFilter == other.NodeStatusFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + pub MaxResults: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX3") + .field("MaxResults", &self.MaxResults) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM { + pub NodeName: ::windows_core::PCWSTR, + pub IpAddressOrFQDN: ::windows_core::PCWSTR, + pub NodeType: ::windows_core::PCWSTR, + pub CodeVersion: ::windows_core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, + pub NodeStatus: FABRIC_QUERY_NODE_STATUS, + pub NodeUpTimeInSeconds: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub IsSeedNode: ::windows::Win32::Foundation::BOOLEAN, + pub UpgradeDomain: ::windows_core::PCWSTR, + pub FaultDomain: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM") + .field("NodeName", &self.NodeName) + .field("IpAddressOrFQDN", &self.IpAddressOrFQDN) + .field("NodeType", &self.NodeType) + .field("CodeVersion", &self.CodeVersion) + .field("ConfigVersion", &self.ConfigVersion) + .field("NodeStatus", &self.NodeStatus) + .field("NodeUpTimeInSeconds", &self.NodeUpTimeInSeconds) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("IsSeedNode", &self.IsSeedNode) + .field("UpgradeDomain", &self.UpgradeDomain) + .field("FaultDomain", &self.FaultDomain) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.IpAddressOrFQDN == other.IpAddressOrFQDN + && self.NodeType == other.NodeType + && self.CodeVersion == other.CodeVersion + && self.ConfigVersion == other.ConfigVersion + && self.NodeStatus == other.NodeStatus + && self.NodeUpTimeInSeconds == other.NodeUpTimeInSeconds + && self.AggregatedHealthState == other.AggregatedHealthState + && self.IsSeedNode == other.IsSeedNode + && self.UpgradeDomain == other.UpgradeDomain + && self.FaultDomain == other.FaultDomain + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + pub NodeId: FABRIC_NODE_ID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX1") + .field("NodeId", &self.NodeId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.NodeId == other.NodeId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + pub NodeInstanceId: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX2") + .field("NodeInstanceId", &self.NodeInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.NodeInstanceId == other.NodeInstanceId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + pub NodeDeactivationInfo: *const FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX3") + .field("NodeDeactivationInfo", &self.NodeDeactivationInfo) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + fn eq(&self, other: &Self) -> bool { + self.NodeDeactivationInfo == other.NodeDeactivationInfo + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + pub IsStopped: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX4") + .field("IsStopped", &self.IsStopped) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + fn eq(&self, other: &Self) -> bool { + self.IsStopped == other.IsStopped && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + pub NodeDownTimeInSeconds: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX5") + .field("NodeDownTimeInSeconds", &self.NodeDownTimeInSeconds) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + fn eq(&self, other: &Self) -> bool { + self.NodeDownTimeInSeconds == other.NodeDownTimeInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + pub NodeUpAt: ::windows::Win32::Foundation::FILETIME, + pub NodeDownAt: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX6") + .field("NodeUpAt", &self.NodeUpAt) + .field("NodeDownAt", &self.NodeDownAt) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + fn eq(&self, other: &Self) -> bool { + self.NodeUpAt == other.NodeUpAt + && self.NodeDownAt == other.NodeDownAt + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_RESULT { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstance: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_RESULT {} + impl ::core::clone::Clone for FABRIC_NODE_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_RESULT") + .field("NodeName", &self.NodeName) + .field("NodeInstance", &self.NodeInstance) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_RESULT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstance == other.NodeInstance + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_RESULT {} + impl ::core::default::Default for FABRIC_NODE_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_START_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_START_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_START_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_START_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_START_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_START_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_START_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_START_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_START_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_STOP_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub StopDurationInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_STOP_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_STOP_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_STOP_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_STOP_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("StopDurationInSeconds", &self.StopDurationInSeconds) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_STOP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_STOP_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.StopDurationInSeconds == other.StopDurationInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_STOP_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_STOP_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_TRANSITION_DESCRIPTION { + pub NodeTransitionType: FABRIC_NODE_TRANSITION_TYPE, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_TRANSITION_DESCRIPTION") + .field("NodeTransitionType", &self.NodeTransitionType) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeTransitionType == other.NodeTransitionType && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_NODE_TRANSITION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_TRANSITION_PROGRESS { + pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, + pub Result: *mut FABRIC_NODE_TRANSITION_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_PROGRESS {} + impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_TRANSITION_PROGRESS") + .field("State", &self.State) + .field("Result", &self.Result) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.State == other.State + && self.Result == other.Result + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_PROGRESS {} + impl ::core::default::Default for FABRIC_NODE_TRANSITION_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_TRANSITION_RESULT { + pub ErrorCode: ::windows_core::HRESULT, + pub NodeResult: *mut FABRIC_NODE_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_RESULT {} + impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_TRANSITION_RESULT") + .field("ErrorCode", &self.ErrorCode) + .field("NodeResult", &self.NodeResult) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_RESULT { + fn eq(&self, other: &Self) -> bool { + self.ErrorCode == other.ErrorCode + && self.NodeResult == other.NodeResult + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_RESULT {} + impl ::core::default::Default for FABRIC_NODE_TRANSITION_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_UPGRADE_PROGRESS { + pub NodeName: ::windows_core::PCWSTR, + pub UpgradePhase: FABRIC_NODE_UPGRADE_PHASE, + pub PendingSafetyChecks: *const FABRIC_UPGRADE_SAFETY_CHECK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PROGRESS {} + impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_UPGRADE_PROGRESS") + .field("NodeName", &self.NodeName) + .field("UpgradePhase", &self.UpgradePhase) + .field("PendingSafetyChecks", &self.PendingSafetyChecks) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.UpgradePhase == other.UpgradePhase + && self.PendingSafetyChecks == other.PendingSafetyChecks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS {} + impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_NODE_UPGRADE_PROGRESS_LIST { + pub Count: u32, + pub Items: *const FABRIC_NODE_UPGRADE_PROGRESS, + } + impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PROGRESS_LIST {} + impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_NODE_UPGRADE_PROGRESS_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS_LIST {} + impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_OPERATION_DATA_BUFFER { + pub BufferSize: u32, + pub Buffer: *mut u8, + } + impl ::core::marker::Copy for FABRIC_OPERATION_DATA_BUFFER {} + impl ::core::clone::Clone for FABRIC_OPERATION_DATA_BUFFER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_OPERATION_DATA_BUFFER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_OPERATION_DATA_BUFFER") + .field("BufferSize", &self.BufferSize) + .field("Buffer", &self.Buffer) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_OPERATION_DATA_BUFFER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_OPERATION_DATA_BUFFER { + fn eq(&self, other: &Self) -> bool { + self.BufferSize == other.BufferSize && self.Buffer == other.Buffer + } + } + impl ::core::cmp::Eq for FABRIC_OPERATION_DATA_BUFFER {} + impl ::core::default::Default for FABRIC_OPERATION_DATA_BUFFER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_OPERATION_ID { + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_OPERATION_ID {} + impl ::core::clone::Clone for FABRIC_OPERATION_ID { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_OPERATION_ID { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_OPERATION_ID") + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_OPERATION_ID { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_OPERATION_ID { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_OPERATION_ID {} + impl ::core::default::Default for FABRIC_OPERATION_ID { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_OPERATION_METADATA { + pub Type: FABRIC_OPERATION_TYPE, + pub SequenceNumber: i64, + pub AtomicGroupId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_OPERATION_METADATA {} + impl ::core::clone::Clone for FABRIC_OPERATION_METADATA { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_OPERATION_METADATA { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_OPERATION_METADATA") + .field("Type", &self.Type) + .field("SequenceNumber", &self.SequenceNumber) + .field("AtomicGroupId", &self.AtomicGroupId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_OPERATION_METADATA { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_OPERATION_METADATA { + fn eq(&self, other: &Self) -> bool { + self.Type == other.Type + && self.SequenceNumber == other.SequenceNumber + && self.AtomicGroupId == other.AtomicGroupId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_OPERATION_METADATA {} + impl ::core::default::Default for FABRIC_OPERATION_METADATA { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + pub UpgradeState: FABRIC_UPGRADE_STATE, + pub ProgressStatus: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {} + impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS") + .field("UpgradeState", &self.UpgradeState) + .field("ProgressStatus", &self.ProgressStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.UpgradeState == other.UpgradeState + && self.ProgressStatus == other.ProgressStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {} + impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + pub ConfigVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} + impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1") + .field("ConfigVersion", &self.ConfigVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ConfigVersion == other.ConfigVersion && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} + impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + pub Details: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} + impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2") + .field("Details", &self.Details) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.Details == other.Details && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} + impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PACKAGE_SHARING_POLICY { + pub PackageName: ::windows_core::PCWSTR, + pub Scope: FABRIC_PACKAGE_SHARING_POLICY_SCOPE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY {} + impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PACKAGE_SHARING_POLICY") + .field("PackageName", &self.PackageName) + .field("Scope", &self.Scope) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY { + fn eq(&self, other: &Self) -> bool { + self.PackageName == other.PackageName + && self.Scope == other.Scope + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY {} + impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PACKAGE_SHARING_POLICY_LIST { + pub Count: u32, + pub Items: *const FABRIC_PACKAGE_SHARING_POLICY, + } + impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY_LIST {} + impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PACKAGE_SHARING_POLICY_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY_LIST {} + impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationNameFilter: *mut u16, + pub IncludeHealthState: ::windows::Win32::Foundation::BOOLEAN, + pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationNameFilter", &self.ApplicationNameFilter) + .field("IncludeHealthState", &self.IncludeHealthState) + .field("PagingDescription", &self.PagingDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.IncludeHealthState == other.IncludeHealthState + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PAGING_STATUS { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PAGING_STATUS {} + impl ::core::clone::Clone for FABRIC_PAGING_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PAGING_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PAGING_STATUS") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PAGING_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PAGING_STATUS { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PAGING_STATUS {} + impl ::core::default::Default for FABRIC_PAGING_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITIONS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyPartitionsPerService: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITIONS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_PARTITIONS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITIONS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITIONS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyPartitionsPerService", + &self.MaxPercentUnhealthyPartitionsPerService, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITIONS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyPartitionsPerService + == other.MaxPercentUnhealthyPartitionsPerService + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITIONS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_PARTITIONS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_DATA_LOSS_PROGRESS { + pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, + pub Result: *mut FABRIC_PARTITION_DATA_LOSS_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_DATA_LOSS_PROGRESS {} + impl ::core::clone::Clone for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_DATA_LOSS_PROGRESS") + .field("State", &self.State) + .field("Result", &self.Result) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.State == other.State + && self.Result == other.Result + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_PROGRESS {} + impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_DATA_LOSS_RESULT { + pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, + pub ErrorCode: ::windows_core::HRESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_DATA_LOSS_RESULT {} + impl ::core::clone::Clone for FABRIC_PARTITION_DATA_LOSS_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_DATA_LOSS_RESULT") + .field("SelectedPartition", &self.SelectedPartition) + .field("ErrorCode", &self.ErrorCode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_RESULT { + fn eq(&self, other: &Self) -> bool { + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_RESULT {} + impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH { + pub PartitionId: ::windows_core::GUID, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub ReplicaHealthStates: *const FABRIC_REPLICA_HEALTH_STATE_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH") + .field("PartitionId", &self.PartitionId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("ReplicaHealthStates", &self.ReplicaHealthStates) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.ReplicaHealthStates == other.ReplicaHealthStates + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("PartitionId", &self.PartitionId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_EX2 { + pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_EX2") + .field("HealthStatistics", &self.HealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub ReplicasFilter: *const FABRIC_REPLICA_HEALTH_STATES_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("ReplicasFilter", &self.ReplicasFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.ReplicasFilter == other.ReplicasFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + pub HealthStatisticsFilter: *const FABRIC_PARTITION_HEALTH_STATISTICS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1") + .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_REPORT { + pub PartitionId: ::windows_core::GUID, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_REPORT") + .field("PartitionId", &self.PartitionId) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE { + pub PartitionId: ::windows_core::GUID, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE") + .field("PartitionId", &self.PartitionId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK { + pub PartitionId: ::windows_core::GUID, + pub HealthState: FABRIC_HEALTH_STATE, + pub ReplicaHealthStateChunks: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_CHUNK") + .field("PartitionId", &self.PartitionId) + .field("HealthState", &self.HealthState) + .field("ReplicaHealthStateChunks", &self.ReplicaHealthStateChunks) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.HealthState == other.HealthState + && self.ReplicaHealthStateChunks == other.ReplicaHealthStateChunks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub PartitionIdFilter: ::windows_core::GUID, + pub ReplicaFilters: *const FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("PartitionIdFilter", &self.PartitionIdFilter) + .field("ReplicaFilters", &self.ReplicaFilters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.PartitionIdFilter == other.PartitionIdFilter + && self.ReplicaFilters == other.ReplicaFilters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_PARTITION_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_PARTITION_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} + impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_HEALTH_STATISTICS_FILTER") + .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} + impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_LOAD_INFORMATION { + pub PartitionId: ::windows_core::GUID, + pub PrimaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, + pub SecondaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION {} + impl ::core::clone::Clone for FABRIC_PARTITION_LOAD_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_LOAD_INFORMATION") + .field("PartitionId", &self.PartitionId) + .field("PrimaryLoadMetricReports", &self.PrimaryLoadMetricReports) + .field( + "SecondaryLoadMetricReports", + &self.SecondaryLoadMetricReports, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.PrimaryLoadMetricReports == other.PrimaryLoadMetricReports + && self.SecondaryLoadMetricReports == other.SecondaryLoadMetricReports + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION {} + impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, + pub Result: *mut FABRIC_PARTITION_QUORUM_LOSS_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {} + impl ::core::clone::Clone for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_QUORUM_LOSS_PROGRESS") + .field("State", &self.State) + .field("Result", &self.Result) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.State == other.State + && self.Result == other.Result + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {} + impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_QUORUM_LOSS_RESULT { + pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, + pub ErrorCode: ::windows_core::HRESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} + impl ::core::clone::Clone for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_QUORUM_LOSS_RESULT") + .field("SelectedPartition", &self.SelectedPartition) + .field("ErrorCode", &self.ErrorCode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + fn eq(&self, other: &Self) -> bool { + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} + impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_RESTART_PROGRESS { + pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, + pub Result: *mut FABRIC_PARTITION_RESTART_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_RESTART_PROGRESS {} + impl ::core::clone::Clone for FABRIC_PARTITION_RESTART_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_RESTART_PROGRESS") + .field("State", &self.State) + .field("Result", &self.Result) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_RESTART_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.State == other.State + && self.Result == other.Result + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_PROGRESS {} + impl ::core::default::Default for FABRIC_PARTITION_RESTART_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_RESTART_RESULT { + pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, + pub ErrorCode: ::windows_core::HRESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_RESTART_RESULT {} + impl ::core::clone::Clone for FABRIC_PARTITION_RESTART_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_RESTART_RESULT") + .field("SelectedPartition", &self.SelectedPartition) + .field("ErrorCode", &self.ErrorCode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_RESTART_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_RESULT { + fn eq(&self, other: &Self) -> bool { + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_RESULT {} + impl ::core::default::Default for FABRIC_PARTITION_RESTART_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_SAFETY_CHECK { + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_PARTITION_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_SAFETY_CHECK") + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_PARTITION_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PARTITION_SELECTOR { + pub ServiceName: *mut u16, + pub PartitionSelectorType: FABRIC_PARTITION_SELECTOR_TYPE, + pub PartitionKey: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR {} + impl ::core::clone::Clone for FABRIC_PARTITION_SELECTOR { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PARTITION_SELECTOR") + .field("ServiceName", &self.ServiceName) + .field("PartitionSelectorType", &self.PartitionSelectorType) + .field("PartitionKey", &self.PartitionKey) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PARTITION_SELECTOR { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PARTITION_SELECTOR { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionSelectorType == other.PartitionSelectorType + && self.PartitionKey == other.PartitionKey + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PARTITION_SELECTOR {} + impl ::core::default::Default for FABRIC_PARTITION_SELECTOR { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + pub InvalidFaultDomain: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION") + .field("InvalidFaultDomain", &self.InvalidFaultDomain) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.InvalidFaultDomain == other.InvalidFaultDomain && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION") + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + pub PreferredPrimaryFaultDomain: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION") + .field( + "PreferredPrimaryFaultDomain", + &self.PreferredPrimaryFaultDomain, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PreferredPrimaryFaultDomain == other.PreferredPrimaryFaultDomain + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + pub RequiredFaultDomain: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION") + .field("RequiredFaultDomain", &self.RequiredFaultDomain) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.RequiredFaultDomain == other.RequiredFaultDomain && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION") + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, + pub RemoteReplicators: *mut FABRIC_REMOTE_REPLICATOR_STATUS_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT") + .field("ReplicationQueueStatus", &self.ReplicationQueueStatus) + .field("RemoteReplicators", &self.RemoteReplicators) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.ReplicationQueueStatus == other.ReplicationQueueStatus + && self.RemoteReplicators == other.RemoteReplicators + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROPERTY_BATCH_OPERATION { + pub Kind: FABRIC_PROPERTY_BATCH_OPERATION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROPERTY_BATCH_OPERATION {} + impl ::core::clone::Clone for FABRIC_PROPERTY_BATCH_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROPERTY_BATCH_OPERATION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROPERTY_BATCH_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROPERTY_BATCH_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_PROPERTY_BATCH_OPERATION {} + impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + pub CodeVersionFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION") + .field("CodeVersionFilter", &self.CodeVersionFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.CodeVersionFilter == other.CodeVersionFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + pub CodeVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM") + .field("CodeVersion", &self.CodeVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.CodeVersion == other.CodeVersion && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + pub ConfigVersionFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION") + .field("ConfigVersionFilter", &self.ConfigVersionFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ConfigVersionFilter == other.ConfigVersionFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + pub ConfigVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM") + .field("ConfigVersion", &self.ConfigVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ConfigVersion == other.ConfigVersion && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + pub BuildPath: ::windows_core::PCWSTR, + pub Async: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION") + .field("BuildPath", &self.BuildPath) + .field("Async", &self.Async) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.BuildPath == other.BuildPath + && self.Async == other.Async + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + pub Kind: FABRIC_PROVISION_APPLICATION_TYPE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE {} + impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE {} + impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + pub ApplicationPackageCleanupPolicy: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1") + .field( + "ApplicationPackageCleanupPolicy", + &self.ApplicationPackageCleanupPolicy, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationPackageCleanupPolicy == other.ApplicationPackageCleanupPolicy + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, + pub PropertyValue: *mut ::core::ffi::c_void, + pub PropertyCustomTypeId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PUT_CUSTOM_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("PropertyTypeId", &self.PropertyTypeId) + .field("PropertyValue", &self.PropertyValue) + .field("PropertyCustomTypeId", &self.PropertyCustomTypeId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.PropertyCustomTypeId == other.PropertyCustomTypeId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_PUT_PROPERTY_OPERATION { + pub PropertyName: ::windows_core::PCWSTR, + pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, + pub PropertyValue: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_PUT_PROPERTY_OPERATION {} + impl ::core::clone::Clone for FABRIC_PUT_PROPERTY_OPERATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_PUT_PROPERTY_OPERATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_PUT_PROPERTY_OPERATION") + .field("PropertyName", &self.PropertyName) + .field("PropertyTypeId", &self.PropertyTypeId) + .field("PropertyValue", &self.PropertyValue) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_PUT_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_PUT_PROPERTY_OPERATION { + fn eq(&self, other: &Self) -> bool { + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_PUT_PROPERTY_OPERATION {} + impl ::core::default::Default for FABRIC_PUT_PROPERTY_OPERATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_QUERY_PAGING_DESCRIPTION { + pub ContinuationToken: ::windows_core::PCWSTR, + pub MaxResults: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_QUERY_PAGING_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_QUERY_PAGING_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_QUERY_PAGING_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_QUERY_PAGING_DESCRIPTION") + .field("ContinuationToken", &self.ContinuationToken) + .field("MaxResults", &self.MaxResults) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_QUERY_PAGING_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_QUERY_PAGING_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken + && self.MaxResults == other.MaxResults + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_QUERY_PAGING_DESCRIPTION {} + impl ::core::default::Default for FABRIC_QUERY_PAGING_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + pub PreviousConfigurationRole: FABRIC_REPLICA_ROLE, + pub ReconfigurationPhase: FABRIC_RECONFIGURATION_PHASE, + pub ReconfigurationType: FABRIC_RECONFIGURATION_TYPE, + pub ReconfigurationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT") + .field("PreviousConfigurationRole", &self.PreviousConfigurationRole) + .field("ReconfigurationPhase", &self.ReconfigurationPhase) + .field("ReconfigurationType", &self.ReconfigurationType) + .field( + "ReconfigurationStartTimeUtc", + &self.ReconfigurationStartTimeUtc, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.PreviousConfigurationRole == other.PreviousConfigurationRole + && self.ReconfigurationPhase == other.ReconfigurationPhase + && self.ReconfigurationType == other.ReconfigurationType + && self.ReconfigurationStartTimeUtc == other.ReconfigurationStartTimeUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + pub AverageReceiveDurationMilliseconds: i64, + pub AverageApplyDurationMilliseconds: i64, + pub NotReceivedCount: i64, + pub ReceivedAndNotAppliedCount: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL {} + impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL") + .field( + "AverageReceiveDurationMilliseconds", + &self.AverageReceiveDurationMilliseconds, + ) + .field( + "AverageApplyDurationMilliseconds", + &self.AverageApplyDurationMilliseconds, + ) + .field("NotReceivedCount", &self.NotReceivedCount) + .field( + "ReceivedAndNotAppliedCount", + &self.ReceivedAndNotAppliedCount, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + fn eq(&self, other: &Self) -> bool { + self.AverageReceiveDurationMilliseconds == other.AverageReceiveDurationMilliseconds + && self.AverageApplyDurationMilliseconds == other.AverageApplyDurationMilliseconds + && self.NotReceivedCount == other.NotReceivedCount + && self.ReceivedAndNotAppliedCount == other.ReceivedAndNotAppliedCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL {} + impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + pub CopyStreamAcknowledgementDetails: *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, + pub ReplicationStreamAcknowledgementDetails: + *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS {} + impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS") + .field( + "CopyStreamAcknowledgementDetails", + &self.CopyStreamAcknowledgementDetails, + ) + .field( + "ReplicationStreamAcknowledgementDetails", + &self.ReplicationStreamAcknowledgementDetails, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + fn eq(&self, other: &Self) -> bool { + self.CopyStreamAcknowledgementDetails == other.CopyStreamAcknowledgementDetails + && self.ReplicationStreamAcknowledgementDetails + == other.ReplicationStreamAcknowledgementDetails + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS {} + impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOTE_REPLICATOR_STATUS { + pub ReplicaId: i64, + pub LastAcknowledgementProcessedTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub LastReceivedReplicationSequenceNumber: i64, + pub LastAppliedReplicationSequenceNumber: i64, + pub IsInBuild: ::windows::Win32::Foundation::BOOLEAN, + pub LastReceivedCopySequenceNumber: i64, + pub LastAppliedCopySequenceNumber: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS {} + impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS") + .field("ReplicaId", &self.ReplicaId) + .field( + "LastAcknowledgementProcessedTimeUtc", + &self.LastAcknowledgementProcessedTimeUtc, + ) + .field( + "LastReceivedReplicationSequenceNumber", + &self.LastReceivedReplicationSequenceNumber, + ) + .field( + "LastAppliedReplicationSequenceNumber", + &self.LastAppliedReplicationSequenceNumber, + ) + .field("IsInBuild", &self.IsInBuild) + .field( + "LastReceivedCopySequenceNumber", + &self.LastReceivedCopySequenceNumber, + ) + .field( + "LastAppliedCopySequenceNumber", + &self.LastAppliedCopySequenceNumber, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS { + fn eq(&self, other: &Self) -> bool { + self.ReplicaId == other.ReplicaId + && self.LastAcknowledgementProcessedTimeUtc + == other.LastAcknowledgementProcessedTimeUtc + && self.LastReceivedReplicationSequenceNumber + == other.LastReceivedReplicationSequenceNumber + && self.LastAppliedReplicationSequenceNumber + == other.LastAppliedReplicationSequenceNumber + && self.IsInBuild == other.IsInBuild + && self.LastReceivedCopySequenceNumber == other.LastReceivedCopySequenceNumber + && self.LastAppliedCopySequenceNumber == other.LastAppliedCopySequenceNumber + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS {} + impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + pub Count: u32, + pub Items: *mut FABRIC_REMOTE_REPLICATOR_STATUS, + } + impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} + impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} + impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REMOVE_REPLICA_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REMOVE_REPLICA_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOVE_REPLICA_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + pub ForceRemove: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1") + .field("ForceRemove", &self.ForceRemove) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ForceRemove == other.ForceRemove && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_APPROVE_DESCRIPTION { + pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub RepairTaskId: ::windows_core::PCWSTR, + pub Version: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_APPROVE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_APPROVE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_APPROVE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_APPROVE_DESCRIPTION") + .field("Scope", &self.Scope) + .field("RepairTaskId", &self.RepairTaskId) + .field("Version", &self.Version) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_APPROVE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_APPROVE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_APPROVE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_APPROVE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_CANCEL_DESCRIPTION { + pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub RepairTaskId: ::windows_core::PCWSTR, + pub Version: i64, + pub RequestAbort: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_CANCEL_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_CANCEL_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_CANCEL_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_CANCEL_DESCRIPTION") + .field("Scope", &self.Scope) + .field("RepairTaskId", &self.RepairTaskId) + .field("Version", &self.Version) + .field("RequestAbort", &self.RequestAbort) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_CANCEL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_CANCEL_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.RequestAbort == other.RequestAbort + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_CANCEL_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_CANCEL_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_DELETE_DESCRIPTION { + pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub RepairTaskId: ::windows_core::PCWSTR, + pub Version: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_DELETE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_DELETE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_DELETE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_DELETE_DESCRIPTION") + .field("Scope", &self.Scope) + .field("RepairTaskId", &self.RepairTaskId) + .field("Version", &self.Version) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_DELETE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_DELETE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_DELETE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_DELETE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_EXECUTOR_STATE { + pub Executor: ::windows_core::PCWSTR, + pub ExecutorData: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_EXECUTOR_STATE {} + impl ::core::clone::Clone for FABRIC_REPAIR_EXECUTOR_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_EXECUTOR_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_EXECUTOR_STATE") + .field("Executor", &self.Executor) + .field("ExecutorData", &self.ExecutorData) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_EXECUTOR_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_EXECUTOR_STATE { + fn eq(&self, other: &Self) -> bool { + self.Executor == other.Executor + && self.ExecutorData == other.ExecutorData + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_EXECUTOR_STATE {} + impl ::core::default::Default for FABRIC_REPAIR_EXECUTOR_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_IMPACT_DESCRIPTION { + pub Kind: FABRIC_REPAIR_IMPACT_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_IMPACT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_IMPACT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_IMPACT_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_IMPACT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_IMPACT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_IMPACT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_IMPACT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_NODE_IMPACT { + pub NodeName: ::windows_core::PCWSTR, + pub ImpactLevel: FABRIC_REPAIR_NODE_IMPACT_LEVEL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT {} + impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_NODE_IMPACT") + .field("NodeName", &self.NodeName) + .field("ImpactLevel", &self.ImpactLevel) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ImpactLevel == other.ImpactLevel + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT {} + impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_NODE_IMPACT_LIST { + pub Count: u32, + pub Items: *const FABRIC_REPAIR_NODE_IMPACT, + } + impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT_LIST {} + impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_NODE_IMPACT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT_LIST {} + impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_RESULT_DESCRIPTION { + pub ResultStatus: FABRIC_REPAIR_TASK_RESULT, + pub ResultCode: ::windows_core::HRESULT, + pub ResultDetails: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_RESULT_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_RESULT_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_RESULT_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_RESULT_DESCRIPTION") + .field("ResultStatus", &self.ResultStatus) + .field("ResultCode", &self.ResultCode) + .field("ResultDetails", &self.ResultDetails) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_RESULT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_RESULT_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ResultStatus == other.ResultStatus + && self.ResultCode == other.ResultCode + && self.ResultDetails == other.ResultDetails + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_RESULT_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_RESULT_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER { + pub Kind: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_SCOPE_IDENTIFIER {} + impl ::core::clone::Clone for FABRIC_REPAIR_SCOPE_IDENTIFIER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_SCOPE_IDENTIFIER") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_SCOPE_IDENTIFIER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_SCOPE_IDENTIFIER { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_SCOPE_IDENTIFIER {} + impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TARGET_DESCRIPTION { + pub Kind: FABRIC_REPAIR_TARGET_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TARGET_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_TARGET_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TARGET_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TARGET_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TARGET_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TARGET_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_TARGET_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK { + pub Scope: *const FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub TaskId: ::windows_core::PCWSTR, + pub Version: i64, + pub Description: ::windows_core::PCWSTR, + pub State: FABRIC_REPAIR_TASK_STATE, + pub Flags: u32, + pub Action: ::windows_core::PCWSTR, + pub Target: *const FABRIC_REPAIR_TARGET_DESCRIPTION, + pub ExecutorState: *mut FABRIC_REPAIR_EXECUTOR_STATE, + pub Impact: *mut FABRIC_REPAIR_IMPACT_DESCRIPTION, + pub Result: *mut FABRIC_REPAIR_RESULT_DESCRIPTION, + pub History: *const FABRIC_REPAIR_TASK_HISTORY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK") + .field("Scope", &self.Scope) + .field("TaskId", &self.TaskId) + .field("Version", &self.Version) + .field("Description", &self.Description) + .field("State", &self.State) + .field("Flags", &self.Flags) + .field("Action", &self.Action) + .field("Target", &self.Target) + .field("ExecutorState", &self.ExecutorState) + .field("Impact", &self.Impact) + .field("Result", &self.Result) + .field("History", &self.History) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.TaskId == other.TaskId + && self.Version == other.Version + && self.Description == other.Description + && self.State == other.State + && self.Flags == other.Flags + && self.Action == other.Action + && self.Target == other.Target + && self.ExecutorState == other.ExecutorState + && self.Impact == other.Impact + && self.Result == other.Result + && self.History == other.History + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK {} + impl ::core::default::Default for FABRIC_REPAIR_TASK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_EX1 { + pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, + pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, + pub PreparingHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, + pub RestoringHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_EX1 {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_EX1") + .field( + "PerformPreparingHealthCheck", + &self.PerformPreparingHealthCheck, + ) + .field( + "PerformRestoringHealthCheck", + &self.PerformRestoringHealthCheck, + ) + .field("PreparingHealthCheckState", &self.PreparingHealthCheckState) + .field("RestoringHealthCheckState", &self.RestoringHealthCheckState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PerformPreparingHealthCheck == other.PerformPreparingHealthCheck + && self.PerformRestoringHealthCheck == other.PerformRestoringHealthCheck + && self.PreparingHealthCheckState == other.PreparingHealthCheckState + && self.RestoringHealthCheckState == other.RestoringHealthCheckState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_EX1 {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub RepairTaskId: ::windows_core::PCWSTR, + pub Version: i64, + pub Flags: u32, + pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, + pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION") + .field("Scope", &self.Scope) + .field("RepairTaskId", &self.RepairTaskId) + .field("Version", &self.Version) + .field("Flags", &self.Flags) + .field( + "PerformPreparingHealthCheck", + &self.PerformPreparingHealthCheck, + ) + .field( + "PerformRestoringHealthCheck", + &self.PerformRestoringHealthCheck, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Flags == other.Flags + && self.PerformPreparingHealthCheck == other.PerformPreparingHealthCheck + && self.PerformRestoringHealthCheck == other.PerformRestoringHealthCheck + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_HISTORY { + pub CreatedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub ClaimedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub PreparingUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub ApprovedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub ExecutingUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub RestoringUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub CompletedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_HISTORY") + .field("CreatedUtcTimestamp", &self.CreatedUtcTimestamp) + .field("ClaimedUtcTimestamp", &self.ClaimedUtcTimestamp) + .field("PreparingUtcTimestamp", &self.PreparingUtcTimestamp) + .field("ApprovedUtcTimestamp", &self.ApprovedUtcTimestamp) + .field("ExecutingUtcTimestamp", &self.ExecutingUtcTimestamp) + .field("RestoringUtcTimestamp", &self.RestoringUtcTimestamp) + .field("CompletedUtcTimestamp", &self.CompletedUtcTimestamp) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY { + fn eq(&self, other: &Self) -> bool { + self.CreatedUtcTimestamp == other.CreatedUtcTimestamp + && self.ClaimedUtcTimestamp == other.ClaimedUtcTimestamp + && self.PreparingUtcTimestamp == other.PreparingUtcTimestamp + && self.ApprovedUtcTimestamp == other.ApprovedUtcTimestamp + && self.ExecutingUtcTimestamp == other.ExecutingUtcTimestamp + && self.RestoringUtcTimestamp == other.RestoringUtcTimestamp + && self.CompletedUtcTimestamp == other.CompletedUtcTimestamp + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { + pub PreparingHealthCheckStartUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub PreparingHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub RestoringHealthCheckStartUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub RestoringHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY_EX1 {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_HISTORY_EX1") + .field( + "PreparingHealthCheckStartUtcTimestamp", + &self.PreparingHealthCheckStartUtcTimestamp, + ) + .field( + "PreparingHealthCheckEndUtcTimestamp", + &self.PreparingHealthCheckEndUtcTimestamp, + ) + .field( + "RestoringHealthCheckStartUtcTimestamp", + &self.RestoringHealthCheckStartUtcTimestamp, + ) + .field( + "RestoringHealthCheckEndUtcTimestamp", + &self.RestoringHealthCheckEndUtcTimestamp, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PreparingHealthCheckStartUtcTimestamp + == other.PreparingHealthCheckStartUtcTimestamp + && self.PreparingHealthCheckEndUtcTimestamp + == other.PreparingHealthCheckEndUtcTimestamp + && self.RestoringHealthCheckStartUtcTimestamp + == other.RestoringHealthCheckStartUtcTimestamp + && self.RestoringHealthCheckEndUtcTimestamp + == other.RestoringHealthCheckEndUtcTimestamp + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY_EX1 {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_LIST { + pub Count: u32, + pub Items: *mut FABRIC_REPAIR_TASK, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_LIST {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_LIST {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, + pub TaskIdFilter: ::windows_core::PCWSTR, + pub StateFilter: u32, + pub ExecutorFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPAIR_TASK_QUERY_DESCRIPTION") + .field("Scope", &self.Scope) + .field("TaskIdFilter", &self.TaskIdFilter) + .field("StateFilter", &self.StateFilter) + .field("ExecutorFilter", &self.ExecutorFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Scope == other.Scope + && self.TaskIdFilter == other.TaskIdFilter + && self.StateFilter == other.StateFilter + && self.ExecutorFilter == other.ExecutorFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICAS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyReplicasPerPartition: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICAS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_REPLICAS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICAS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICAS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyReplicasPerPartition", + &self.MaxPercentUnhealthyReplicasPerPartition, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICAS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICAS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyReplicasPerPartition + == other.MaxPercentUnhealthyReplicasPerPartition + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICAS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_REPLICAS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_QUEUE_STATUS { + pub QueueUtilizationPercentage: u32, + pub QueueMemorySize: i64, + pub FirstSequenceNumber: i64, + pub CompletedSequenceNumber: i64, + pub CommittedSequenceNumber: i64, + pub LastSequenceNumber: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_QUEUE_STATUS {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_QUEUE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_QUEUE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_QUEUE_STATUS") + .field( + "QueueUtilizationPercentage", + &self.QueueUtilizationPercentage, + ) + .field("QueueMemorySize", &self.QueueMemorySize) + .field("FirstSequenceNumber", &self.FirstSequenceNumber) + .field("CompletedSequenceNumber", &self.CompletedSequenceNumber) + .field("CommittedSequenceNumber", &self.CommittedSequenceNumber) + .field("LastSequenceNumber", &self.LastSequenceNumber) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_QUEUE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_QUEUE_STATUS { + fn eq(&self, other: &Self) -> bool { + self.QueueUtilizationPercentage == other.QueueUtilizationPercentage + && self.QueueMemorySize == other.QueueMemorySize + && self.FirstSequenceNumber == other.FirstSequenceNumber + && self.CompletedSequenceNumber == other.CompletedSequenceNumber + && self.CommittedSequenceNumber == other.CommittedSequenceNumber + && self.LastSequenceNumber == other.LastSequenceNumber + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_QUEUE_STATUS {} + impl ::core::default::Default for FABRIC_REPLICATOR_QUEUE_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_SETTINGS { + pub Flags: u32, + pub RetryIntervalMilliseconds: u32, + pub BatchAcknowledgementIntervalMilliseconds: u32, + pub ReplicatorAddress: ::windows_core::PCWSTR, + pub RequireServiceAck: ::windows::Win32::Foundation::BOOLEAN, + pub InitialReplicationQueueSize: u32, + pub MaxReplicationQueueSize: u32, + pub InitialCopyQueueSize: u32, + pub MaxCopyQueueSize: u32, + pub SecurityCredentials: *const FABRIC_SECURITY_CREDENTIALS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_SETTINGS") + .field("Flags", &self.Flags) + .field("RetryIntervalMilliseconds", &self.RetryIntervalMilliseconds) + .field( + "BatchAcknowledgementIntervalMilliseconds", + &self.BatchAcknowledgementIntervalMilliseconds, + ) + .field("ReplicatorAddress", &self.ReplicatorAddress) + .field("RequireServiceAck", &self.RequireServiceAck) + .field( + "InitialReplicationQueueSize", + &self.InitialReplicationQueueSize, + ) + .field("MaxReplicationQueueSize", &self.MaxReplicationQueueSize) + .field("InitialCopyQueueSize", &self.InitialCopyQueueSize) + .field("MaxCopyQueueSize", &self.MaxCopyQueueSize) + .field("SecurityCredentials", &self.SecurityCredentials) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.Flags == other.Flags + && self.RetryIntervalMilliseconds == other.RetryIntervalMilliseconds + && self.BatchAcknowledgementIntervalMilliseconds + == other.BatchAcknowledgementIntervalMilliseconds + && self.ReplicatorAddress == other.ReplicatorAddress + && self.RequireServiceAck == other.RequireServiceAck + && self.InitialReplicationQueueSize == other.InitialReplicationQueueSize + && self.MaxReplicationQueueSize == other.MaxReplicationQueueSize + && self.InitialCopyQueueSize == other.InitialCopyQueueSize + && self.MaxCopyQueueSize == other.MaxCopyQueueSize + && self.SecurityCredentials == other.SecurityCredentials + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS {} + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_SETTINGS_EX1 { + pub MaxReplicationQueueMemorySize: u32, + pub SecondaryClearAcknowledgedOperations: ::windows::Win32::Foundation::BOOLEAN, + pub MaxReplicationMessageSize: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX1") + .field( + "MaxReplicationQueueMemorySize", + &self.MaxReplicationQueueMemorySize, + ) + .field( + "SecondaryClearAcknowledgedOperations", + &self.SecondaryClearAcknowledgedOperations, + ) + .field("MaxReplicationMessageSize", &self.MaxReplicationMessageSize) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.MaxReplicationQueueMemorySize == other.MaxReplicationQueueMemorySize + && self.SecondaryClearAcknowledgedOperations + == other.SecondaryClearAcknowledgedOperations + && self.MaxReplicationMessageSize == other.MaxReplicationMessageSize + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_SETTINGS_EX2 { + pub UseStreamFaultsAndEndOfStreamOperationAck: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX2 {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX2") + .field( + "UseStreamFaultsAndEndOfStreamOperationAck", + &self.UseStreamFaultsAndEndOfStreamOperationAck, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.UseStreamFaultsAndEndOfStreamOperationAck + == other.UseStreamFaultsAndEndOfStreamOperationAck + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX2 {} + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_SETTINGS_EX3 { + pub InitialPrimaryReplicationQueueSize: u32, + pub MaxPrimaryReplicationQueueSize: u32, + pub MaxPrimaryReplicationQueueMemorySize: u32, + pub InitialSecondaryReplicationQueueSize: u32, + pub MaxSecondaryReplicationQueueSize: u32, + pub MaxSecondaryReplicationQueueMemorySize: u32, + pub PrimaryWaitForPendingQuorumsTimeoutMilliseconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX3 {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX3") + .field( + "InitialPrimaryReplicationQueueSize", + &self.InitialPrimaryReplicationQueueSize, + ) + .field( + "MaxPrimaryReplicationQueueSize", + &self.MaxPrimaryReplicationQueueSize, + ) + .field( + "MaxPrimaryReplicationQueueMemorySize", + &self.MaxPrimaryReplicationQueueMemorySize, + ) + .field( + "InitialSecondaryReplicationQueueSize", + &self.InitialSecondaryReplicationQueueSize, + ) + .field( + "MaxSecondaryReplicationQueueSize", + &self.MaxSecondaryReplicationQueueSize, + ) + .field( + "MaxSecondaryReplicationQueueMemorySize", + &self.MaxSecondaryReplicationQueueMemorySize, + ) + .field( + "PrimaryWaitForPendingQuorumsTimeoutMilliseconds", + &self.PrimaryWaitForPendingQuorumsTimeoutMilliseconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX3 { + fn eq(&self, other: &Self) -> bool { + self.InitialPrimaryReplicationQueueSize == other.InitialPrimaryReplicationQueueSize + && self.MaxPrimaryReplicationQueueSize == other.MaxPrimaryReplicationQueueSize + && self.MaxPrimaryReplicationQueueMemorySize + == other.MaxPrimaryReplicationQueueMemorySize + && self.InitialSecondaryReplicationQueueSize + == other.InitialSecondaryReplicationQueueSize + && self.MaxSecondaryReplicationQueueSize == other.MaxSecondaryReplicationQueueSize + && self.MaxSecondaryReplicationQueueMemorySize + == other.MaxSecondaryReplicationQueueMemorySize + && self.PrimaryWaitForPendingQuorumsTimeoutMilliseconds + == other.PrimaryWaitForPendingQuorumsTimeoutMilliseconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX3 {} + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_SETTINGS_EX4 { + pub ReplicatorListenAddress: ::windows_core::PCWSTR, + pub ReplicatorPublishAddress: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX4 {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX4") + .field("ReplicatorListenAddress", &self.ReplicatorListenAddress) + .field("ReplicatorPublishAddress", &self.ReplicatorPublishAddress) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX4 { + fn eq(&self, other: &Self) -> bool { + self.ReplicatorListenAddress == other.ReplicatorListenAddress + && self.ReplicatorPublishAddress == other.ReplicatorPublishAddress + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX4 {} + impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + pub Role: FABRIC_REPLICA_ROLE, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICATOR_STATUS_QUERY_RESULT") + .field("Role", &self.Role) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.Role == other.Role && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK { + pub ReplicaOrInstanceId: i64, + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_CHUNK") + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub ReplicaOrInstanceIdFilter: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("ReplicaOrInstanceIdFilter", &self.ReplicaOrInstanceIdFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.ReplicaOrInstanceIdFilter == other.ReplicaOrInstanceIdFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_REPLICA_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_REPLICA_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_INFORMATION { + pub Id: i64, + pub Role: FABRIC_REPLICA_ROLE, + pub Status: FABRIC_REPLICA_STATUS, + pub ReplicatorAddress: ::windows_core::PCWSTR, + pub CurrentProgress: i64, + pub CatchUpCapability: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_INFORMATION {} + impl ::core::clone::Clone for FABRIC_REPLICA_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_INFORMATION") + .field("Id", &self.Id) + .field("Role", &self.Role) + .field("Status", &self.Status) + .field("ReplicatorAddress", &self.ReplicatorAddress) + .field("CurrentProgress", &self.CurrentProgress) + .field("CatchUpCapability", &self.CatchUpCapability) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Id == other.Id + && self.Role == other.Role + && self.Status == other.Status + && self.ReplicatorAddress == other.ReplicatorAddress + && self.CurrentProgress == other.CurrentProgress + && self.CatchUpCapability == other.CatchUpCapability + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION {} + impl ::core::default::Default for FABRIC_REPLICA_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_INFORMATION_EX1 { + pub MustCatchup: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_INFORMATION_EX1 {} + impl ::core::clone::Clone for FABRIC_REPLICA_INFORMATION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_INFORMATION_EX1") + .field("MustCatchup", &self.MustCatchup) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.MustCatchup == other.MustCatchup && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION_EX1 {} + impl ::core::default::Default for FABRIC_REPLICA_INFORMATION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_LOAD_INFORMATION { + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub LoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_LOAD_INFORMATION {} + impl ::core::clone::Clone for FABRIC_REPLICA_LOAD_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_LOAD_INFORMATION") + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("LoadMetricReports", &self.LoadMetricReports) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.LoadMetricReports == other.LoadMetricReports + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION {} + impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_SET_CONFIGURATION { + pub ReplicaCount: u32, + pub Replicas: *const FABRIC_REPLICA_INFORMATION, + pub WriteQuorum: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_SET_CONFIGURATION {} + impl ::core::clone::Clone for FABRIC_REPLICA_SET_CONFIGURATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_SET_CONFIGURATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_SET_CONFIGURATION") + .field("ReplicaCount", &self.ReplicaCount) + .field("Replicas", &self.Replicas) + .field("WriteQuorum", &self.WriteQuorum) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_SET_CONFIGURATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_SET_CONFIGURATION { + fn eq(&self, other: &Self) -> bool { + self.ReplicaCount == other.ReplicaCount + && self.Replicas == other.Replicas + && self.WriteQuorum == other.WriteQuorum + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_SET_CONFIGURATION {} + impl ::core::default::Default for FABRIC_REPLICA_SET_CONFIGURATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_REPLICA_STATUS_QUERY_RESULT { + pub Kind: FABRIC_SERVICE_REPLICA_KIND, + pub Value: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_REPLICA_STATUS_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_REPLICA_STATUS_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_REPLICA_STATUS_QUERY_RESULT") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_REPLICA_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_REPLICA_STATUS_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_REPLICA_STATUS_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_REPLICA_STATUS_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESOLVED_SERVICE_ENDPOINT { + pub Address: ::windows_core::PCWSTR, + pub Role: FABRIC_SERVICE_ENDPOINT_ROLE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESOLVED_SERVICE_ENDPOINT {} + impl ::core::clone::Clone for FABRIC_RESOLVED_SERVICE_ENDPOINT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_ENDPOINT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESOLVED_SERVICE_ENDPOINT") + .field("Address", &self.Address) + .field("Role", &self.Role) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_ENDPOINT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_ENDPOINT { + fn eq(&self, other: &Self) -> bool { + self.Address == other.Address + && self.Role == other.Role + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_ENDPOINT {} + impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_ENDPOINT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESOLVED_SERVICE_PARTITION { + pub Info: FABRIC_SERVICE_PARTITION_INFORMATION, + pub EndpointCount: u32, + pub Endpoints: *mut FABRIC_RESOLVED_SERVICE_ENDPOINT, + pub ServiceName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESOLVED_SERVICE_PARTITION {} + impl ::core::clone::Clone for FABRIC_RESOLVED_SERVICE_PARTITION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_PARTITION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESOLVED_SERVICE_PARTITION") + .field("Info", &self.Info) + .field("EndpointCount", &self.EndpointCount) + .field("Endpoints", &self.Endpoints) + .field("ServiceName", &self.ServiceName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_PARTITION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_PARTITION { + fn eq(&self, other: &Self) -> bool { + self.Info == other.Info + && self.EndpointCount == other.EndpointCount + && self.Endpoints == other.Endpoints + && self.ServiceName == other.ServiceName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_PARTITION {} + impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_PARTITION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("CodePackageName", &self.CodePackageName) + .field("CodePackageInstanceId", &self.CodePackageInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + pub Kind: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + pub NodeName: ::windows_core::PCWSTR, + pub ApplicationName: *mut u16, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME") + .field("NodeName", &self.NodeName) + .field("ApplicationName", &self.ApplicationName) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("CodePackageName", &self.CodePackageName) + .field("CodePackageInstanceId", &self.CodePackageInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} + impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1") + .field( + "ServicePackageActivationId", + &self.ServicePackageActivationId, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind + for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 + { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq + for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 + { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} + impl ::core::default::Default + for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 + { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_NODE_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_NODE_DESCRIPTION2 { + pub Kind: FABRIC_RESTART_NODE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + pub CreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_EX1") + .field("CreateFabricDump", &self.CreateFabricDump) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.CreateFabricDump == other.CreateFabricDump && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub ShouldCreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("ShouldCreateFabricDump", &self.ShouldCreateFabricDump) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.ShouldCreateFabricDump == other.ShouldCreateFabricDump + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_NODE_STATUS { + pub NodeResult: *mut FABRIC_NODE_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_NODE_STATUS {} + impl ::core::clone::Clone for FABRIC_RESTART_NODE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_NODE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_NODE_STATUS") + .field("NodeResult", &self.NodeResult) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_STATUS { + fn eq(&self, other: &Self) -> bool { + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_NODE_STATUS {} + impl ::core::default::Default for FABRIC_RESTART_NODE_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RESTART_REPLICA_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, + pub ReplicaOrInstanceId: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RESTART_REPLICA_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_RESTART_REPLICA_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RESTART_REPLICA_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RESTART_REPLICA_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("PartitionId", &self.PartitionId) + .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RESTART_REPLICA_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RESTART_REPLICA_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RESTART_REPLICA_DESCRIPTION {} + impl ::core::default::Default for FABRIC_RESTART_REPLICA_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + pub FailureAction: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION, + pub HealthCheckWaitDurationInSeconds: u32, + pub HealthCheckRetryTimeoutInSeconds: u32, + pub UpgradeTimeoutInSeconds: u32, + pub UpgradeDomainTimeoutInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_MONITORING_POLICY") + .field("FailureAction", &self.FailureAction) + .field( + "HealthCheckWaitDurationInSeconds", + &self.HealthCheckWaitDurationInSeconds, + ) + .field( + "HealthCheckRetryTimeoutInSeconds", + &self.HealthCheckRetryTimeoutInSeconds, + ) + .field("UpgradeTimeoutInSeconds", &self.UpgradeTimeoutInSeconds) + .field( + "UpgradeDomainTimeoutInSeconds", + &self.UpgradeDomainTimeoutInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + fn eq(&self, other: &Self) -> bool { + self.FailureAction == other.FailureAction + && self.HealthCheckWaitDurationInSeconds == other.HealthCheckWaitDurationInSeconds + && self.HealthCheckRetryTimeoutInSeconds == other.HealthCheckRetryTimeoutInSeconds + && self.UpgradeTimeoutInSeconds == other.UpgradeTimeoutInSeconds + && self.UpgradeDomainTimeoutInSeconds == other.UpgradeDomainTimeoutInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + pub HealthCheckStableDurationInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1") + .field( + "HealthCheckStableDurationInSeconds", + &self.HealthCheckStableDurationInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthCheckStableDurationInSeconds == other.HealthCheckStableDurationInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + pub RollingUpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, + pub ForceRestart: ::windows::Win32::Foundation::BOOLEAN, + pub UpgradeReplicaSetCheckTimeoutInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION") + .field("RollingUpgradeMode", &self.RollingUpgradeMode) + .field("ForceRestart", &self.ForceRestart) + .field( + "UpgradeReplicaSetCheckTimeoutInSeconds", + &self.UpgradeReplicaSetCheckTimeoutInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.RollingUpgradeMode == other.RollingUpgradeMode + && self.ForceRestart == other.ForceRestart + && self.UpgradeReplicaSetCheckTimeoutInSeconds + == other.UpgradeReplicaSetCheckTimeoutInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + pub MonitoringPolicy: *const FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, + pub HealthPolicy: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1") + .field("MonitoringPolicy", &self.MonitoringPolicy) + .field("HealthPolicy", &self.HealthPolicy) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.MonitoringPolicy == other.MonitoringPolicy + && self.HealthPolicy == other.HealthPolicy + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + pub EnableDeltaHealthEvaluation: ::windows::Win32::Foundation::BOOLEAN, + pub UpgradeHealthPolicy: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2") + .field( + "EnableDeltaHealthEvaluation", + &self.EnableDeltaHealthEvaluation, + ) + .field("UpgradeHealthPolicy", &self.UpgradeHealthPolicy) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.EnableDeltaHealthEvaluation == other.EnableDeltaHealthEvaluation + && self.UpgradeHealthPolicy == other.UpgradeHealthPolicy + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3") + .field( + "ApplicationHealthPolicyMap", + &self.ApplicationHealthPolicyMap, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_RUNAS_POLICY_DESCRIPTION { + pub UserName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_RUNAS_POLICY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_RUNAS_POLICY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_RUNAS_POLICY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_RUNAS_POLICY_DESCRIPTION") + .field("UserName", &self.UserName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_RUNAS_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_RUNAS_POLICY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.UserName == other.UserName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_RUNAS_POLICY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_RUNAS_POLICY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SAFETY_CHECK { + pub Kind: FABRIC_SAFETY_CHECK_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SAFETY_CHECK") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SAFETY_CHECK_LIST { + pub Count: u32, + pub Items: *const FABRIC_SAFETY_CHECK, + } + impl ::core::marker::Copy for FABRIC_SAFETY_CHECK_LIST {} + impl ::core::clone::Clone for FABRIC_SAFETY_CHECK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SAFETY_CHECK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SAFETY_CHECK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK_LIST {} + impl ::core::default::Default for FABRIC_SAFETY_CHECK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_MECHANISM { + pub ScalingMechanismKind: FABRIC_SCALING_MECHANISM_KIND, + pub ScalingMechanismDescription: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM {} + impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_MECHANISM") + .field("ScalingMechanismKind", &self.ScalingMechanismKind) + .field( + "ScalingMechanismDescription", + &self.ScalingMechanismDescription, + ) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM { + fn eq(&self, other: &Self) -> bool { + self.ScalingMechanismKind == other.ScalingMechanismKind + && self.ScalingMechanismDescription == other.ScalingMechanismDescription + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM {} + impl ::core::default::Default for FABRIC_SCALING_MECHANISM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + pub MaximumPartitionCount: i32, + pub MinimumPartitionCount: i32, + pub ScaleIncrement: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION {} + impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION") + .field("MaximumPartitionCount", &self.MaximumPartitionCount) + .field("MinimumPartitionCount", &self.MinimumPartitionCount) + .field("ScaleIncrement", &self.ScaleIncrement) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + fn eq(&self, other: &Self) -> bool { + self.MaximumPartitionCount == other.MaximumPartitionCount + && self.MinimumPartitionCount == other.MinimumPartitionCount + && self.ScaleIncrement == other.ScaleIncrement + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION {} + impl ::core::default::Default for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + pub MaximumInstanceCount: i32, + pub MinimumInstanceCount: i32, + pub ScaleIncrement: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT {} + impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT") + .field("MaximumInstanceCount", &self.MaximumInstanceCount) + .field("MinimumInstanceCount", &self.MinimumInstanceCount) + .field("ScaleIncrement", &self.ScaleIncrement) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + fn eq(&self, other: &Self) -> bool { + self.MaximumInstanceCount == other.MaximumInstanceCount + && self.MinimumInstanceCount == other.MinimumInstanceCount + && self.ScaleIncrement == other.ScaleIncrement + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT {} + impl ::core::default::Default for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_TRIGGER { + pub ScalingTriggerKind: FABRIC_SCALING_TRIGGER_KIND, + pub ScalingTriggerDescription: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER {} + impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_TRIGGER") + .field("ScalingTriggerKind", &self.ScalingTriggerKind) + .field("ScalingTriggerDescription", &self.ScalingTriggerDescription) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER { + fn eq(&self, other: &Self) -> bool { + self.ScalingTriggerKind == other.ScalingTriggerKind + && self.ScalingTriggerDescription == other.ScalingTriggerDescription + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER {} + impl ::core::default::Default for FABRIC_SCALING_TRIGGER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + pub MetricName: ::windows_core::PCWSTR, + pub LowerLoadThreshold: f64, + pub UpperLoadThreshold: f64, + pub ScaleIntervalInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD {} + impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD") + .field("MetricName", &self.MetricName) + .field("LowerLoadThreshold", &self.LowerLoadThreshold) + .field("UpperLoadThreshold", &self.UpperLoadThreshold) + .field("ScaleIntervalInSeconds", &self.ScaleIntervalInSeconds) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + fn eq(&self, other: &Self) -> bool { + self.MetricName == other.MetricName + && self.LowerLoadThreshold == other.LowerLoadThreshold + && self.UpperLoadThreshold == other.UpperLoadThreshold + && self.ScaleIntervalInSeconds == other.ScaleIntervalInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD {} + impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + pub MetricName: ::windows_core::PCWSTR, + pub LowerLoadThreshold: f64, + pub UpperLoadThreshold: f64, + pub ScaleIntervalInSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD {} + impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD") + .field("MetricName", &self.MetricName) + .field("LowerLoadThreshold", &self.LowerLoadThreshold) + .field("UpperLoadThreshold", &self.UpperLoadThreshold) + .field("ScaleIntervalInSeconds", &self.ScaleIntervalInSeconds) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + fn eq(&self, other: &Self) -> bool { + self.MetricName == other.MetricName + && self.LowerLoadThreshold == other.LowerLoadThreshold + && self.UpperLoadThreshold == other.UpperLoadThreshold + && self.ScaleIntervalInSeconds == other.ScaleIntervalInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD {} + impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + pub UseOnlyPrimaryLoad: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} + impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1") + .field("UseOnlyPrimaryLoad", &self.UseOnlyPrimaryLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UseOnlyPrimaryLoad == other.UseOnlyPrimaryLoad && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} + impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, + pub LastReplicationOperationReceivedTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub IsInBuild: ::windows::Win32::Foundation::BOOLEAN, + pub CopyQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, + pub LastCopyOperationReceivedTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub LastAcknowledgementSentTimeUtc: ::windows::Win32::Foundation::FILETIME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT") + .field("ReplicationQueueStatus", &self.ReplicationQueueStatus) + .field( + "LastReplicationOperationReceivedTimeUtc", + &self.LastReplicationOperationReceivedTimeUtc, + ) + .field("IsInBuild", &self.IsInBuild) + .field("CopyQueueStatus", &self.CopyQueueStatus) + .field( + "LastCopyOperationReceivedTimeUtc", + &self.LastCopyOperationReceivedTimeUtc, + ) + .field( + "LastAcknowledgementSentTimeUtc", + &self.LastAcknowledgementSentTimeUtc, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.ReplicationQueueStatus == other.ReplicationQueueStatus + && self.LastReplicationOperationReceivedTimeUtc + == other.LastReplicationOperationReceivedTimeUtc + && self.IsInBuild == other.IsInBuild + && self.CopyQueueStatus == other.CopyQueueStatus + && self.LastCopyOperationReceivedTimeUtc == other.LastCopyOperationReceivedTimeUtc + && self.LastAcknowledgementSentTimeUtc == other.LastAcknowledgementSentTimeUtc + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECRET { + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + pub Kind: ::windows_core::PCWSTR, + pub ContentType: ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_SECRET {} + impl ::core::clone::Clone for FABRIC_SECRET { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECRET { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECRET") + .field("Name", &self.Name) + .field("Version", &self.Version) + .field("Value", &self.Value) + .field("Kind", &self.Kind) + .field("ContentType", &self.ContentType) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECRET { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECRET { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Version == other.Version + && self.Value == other.Value + && self.Kind == other.Kind + && self.ContentType == other.ContentType + } + } + impl ::core::cmp::Eq for FABRIC_SECRET {} + impl ::core::default::Default for FABRIC_SECRET { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECRET_LIST { + pub Count: u32, + pub Items: *mut FABRIC_SECRET, + } + impl ::core::marker::Copy for FABRIC_SECRET_LIST {} + impl ::core::clone::Clone for FABRIC_SECRET_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECRET_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECRET_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECRET_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECRET_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SECRET_LIST {} + impl ::core::default::Default for FABRIC_SECRET_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECRET_REFERENCE { + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_SECRET_REFERENCE {} + impl ::core::clone::Clone for FABRIC_SECRET_REFERENCE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECRET_REFERENCE") + .field("Name", &self.Name) + .field("Version", &self.Version) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECRET_REFERENCE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Version == other.Version + } + } + impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE {} + impl ::core::default::Default for FABRIC_SECRET_REFERENCE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECRET_REFERENCE_LIST { + pub Count: u32, + pub Items: *mut FABRIC_SECRET_REFERENCE, + } + impl ::core::marker::Copy for FABRIC_SECRET_REFERENCE_LIST {} + impl ::core::clone::Clone for FABRIC_SECRET_REFERENCE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECRET_REFERENCE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECRET_REFERENCE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE_LIST {} + impl ::core::default::Default for FABRIC_SECRET_REFERENCE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECURITY_CREDENTIALS { + pub Kind: FABRIC_SECURITY_CREDENTIAL_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SECURITY_CREDENTIALS {} + impl ::core::clone::Clone for FABRIC_SECURITY_CREDENTIALS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIALS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECURITY_CREDENTIALS") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECURITY_CREDENTIALS { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SECURITY_CREDENTIALS {} + impl ::core::default::Default for FABRIC_SECURITY_CREDENTIALS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECURITY_GROUP_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Sid: ::windows_core::PCWSTR, + pub DomainGroupMembers: *const FABRIC_STRING_LIST, + pub SystemGroupMembers: *const FABRIC_STRING_LIST, + pub DomainUserMembers: *const FABRIC_STRING_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SECURITY_GROUP_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SECURITY_GROUP_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECURITY_GROUP_DESCRIPTION") + .field("Name", &self.Name) + .field("Sid", &self.Sid) + .field("DomainGroupMembers", &self.DomainGroupMembers) + .field("SystemGroupMembers", &self.SystemGroupMembers) + .field("DomainUserMembers", &self.DomainUserMembers) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Sid == other.Sid + && self.DomainGroupMembers == other.DomainGroupMembers + && self.SystemGroupMembers == other.SystemGroupMembers + && self.DomainUserMembers == other.DomainUserMembers + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SECURITY_GROUP_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECURITY_GROUP_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECURITY_USER_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Sid: ::windows_core::PCWSTR, + pub ParentSystemGroups: *const FABRIC_STRING_LIST, + pub ParentApplicationGroups: *const FABRIC_STRING_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SECURITY_USER_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SECURITY_USER_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECURITY_USER_DESCRIPTION") + .field("Name", &self.Name) + .field("Sid", &self.Sid) + .field("ParentSystemGroups", &self.ParentSystemGroups) + .field("ParentApplicationGroups", &self.ParentApplicationGroups) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Sid == other.Sid + && self.ParentSystemGroups == other.ParentSystemGroups + && self.ParentApplicationGroups == other.ParentApplicationGroups + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SECURITY_USER_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SECURITY_USER_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SECURITY_USER_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SECURITY_USER_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SEED_NODE_SAFETY_CHECK { + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SEED_NODE_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_SEED_NODE_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SEED_NODE_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SEED_NODE_SAFETY_CHECK") + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SEED_NODE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SEED_NODE_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SEED_NODE_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_SEED_NODE_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SELECTED_PARTITION { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SELECTED_PARTITION {} + impl ::core::clone::Clone for FABRIC_SELECTED_PARTITION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SELECTED_PARTITION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SELECTED_PARTITION") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SELECTED_PARTITION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SELECTED_PARTITION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SELECTED_PARTITION {} + impl ::core::default::Default for FABRIC_SELECTED_PARTITION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICES_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyServices: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICES_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_SERVICES_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICES_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICES_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyServices", + &self.MaxPercentUnhealthyServices, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICES_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ServiceTypeName == other.ServiceTypeName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyServices == other.MaxPercentUnhealthyServices + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICES_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_SERVICES_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_CORRELATION_DESCRIPTION { + pub ServiceName: *mut u16, + pub Scheme: FABRIC_SERVICE_CORRELATION_SCHEME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_CORRELATION_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_CORRELATION_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("Scheme", &self.Scheme) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.Scheme == other.Scheme + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_CORRELATION_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_DESCRIPTION { + pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceName: *mut u16, + pub ServiceDnsName: ::windows_core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, + pub InitializationDataSize: u32, + pub InitializationData: *mut u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceName", &self.ServiceName) + .field("ServiceDnsName", &self.ServiceDnsName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field( + "ServicePackageActivationMode", + &self.ServicePackageActivationMode, + ) + .field("InitializationDataSize", &self.InitializationDataSize) + .field("InitializationData", &self.InitializationData) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceDnsName == other.ServiceDnsName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_DESCRIPTION { + pub Description: *mut FABRIC_SERVICE_DESCRIPTION, + pub MemberCount: u32, + pub MemberDescriptions: *mut FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_DESCRIPTION") + .field("Description", &self.Description) + .field("MemberCount", &self.MemberCount) + .field("MemberDescriptions", &self.MemberDescriptions) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.MemberCount == other.MemberCount + && self.MemberDescriptions == other.MemberDescriptions + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, + pub InitializationDataSize: u32, + pub InitializationData: *mut u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field( + "ServicePackageActivationMode", + &self.ServicePackageActivationMode, + ) + .field("InitializationDataSize", &self.InitializationDataSize) + .field("InitializationData", &self.InitializationData) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + pub ServiceType: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub InitializationDataSize: u32, + pub InitializationData: *const u8, + pub MetricCount: u32, + pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION") + .field("ServiceType", &self.ServiceType) + .field("ServiceName", &self.ServiceName) + .field("InitializationDataSize", &self.InitializationDataSize) + .field("InitializationData", &self.InitializationData) + .field("MetricCount", &self.MetricCount) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceType == other.ServiceType + && self.ServiceName == other.ServiceName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + pub ServiceType: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM") + .field("ServiceType", &self.ServiceType) + .field("ServiceName", &self.ServiceName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceType == other.ServiceType + && self.ServiceName == other.ServiceName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceNameFilter: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceNameFilter", &self.ServiceNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceNameFilter == other.ServiceNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub Members: *mut FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("Members", &self.Members) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.Members == other.Members + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ServiceGroupTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field( + "ServiceGroupTypeNameFilter", + &self.ServiceGroupTypeNameFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ServiceGroupTypeNameFilter == other.ServiceGroupTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + pub ServiceGroupMemberTypeDescription: + *mut FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM") + .field( + "ServiceGroupMemberTypeDescription", + &self.ServiceGroupMemberTypeDescription, + ) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("ServiceManifestName", &self.ServiceManifestName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceGroupMemberTypeDescription == other.ServiceGroupMemberTypeDescription + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + pub Description: *const FABRIC_SERVICE_TYPE_DESCRIPTION, + pub Members: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, + pub UseImplicitFactory: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION") + .field("Description", &self.Description) + .field("Members", &self.Members) + .field("UseImplicitFactory", &self.UseImplicitFactory) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.Members == other.Members + && self.UseImplicitFactory == other.UseImplicitFactory + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + pub ServiceTypeName: ::windows_core::PCWSTR, + pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION") + .field("ServiceTypeName", &self.ServiceTypeName) + .field("LoadMetrics", &self.LoadMetrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeName == other.ServiceTypeName + && self.LoadMetrics == other.LoadMetrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + pub Description: *mut FABRIC_SERVICE_UPDATE_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION") + .field("Description", &self.Description) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH { + pub ServiceName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub PartitionHealthStates: *const FABRIC_PARTITION_HEALTH_STATE_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH") + .field("ServiceName", &self.ServiceName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("PartitionHealthStates", &self.PartitionHealthStates) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.PartitionHealthStates == other.PartitionHealthStates + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub ServiceName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("ServiceName", &self.ServiceName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_EX2 { + pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EX2 {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_EX2") + .field("HealthStatistics", &self.HealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX2 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX2 {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + pub ServiceName: *mut u16, + pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, + pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, + pub PartitionsFilter: *const FABRIC_PARTITION_HEALTH_STATES_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("HealthPolicy", &self.HealthPolicy) + .field("EventsFilter", &self.EventsFilter) + .field("PartitionsFilter", &self.PartitionsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.PartitionsFilter == other.PartitionsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + pub HealthStatisticsFilter: *const FABRIC_SERVICE_HEALTH_STATISTICS_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1") + .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_REPORT { + pub ServiceName: *mut u16, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_REPORT") + .field("ServiceName", &self.ServiceName) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE { + pub ServiceName: *mut u16, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE") + .field("ServiceName", &self.ServiceName) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATES_FILTER { + pub HealthStateFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATES_FILTER {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATES_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATES_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATES_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATES_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATES_FILTER {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATES_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK { + pub ServiceName: *mut u16, + pub HealthState: FABRIC_HEALTH_STATE, + pub PartitionHealthStateChunks: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_CHUNK {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_CHUNK") + .field("ServiceName", &self.ServiceName) + .field("HealthState", &self.HealthState) + .field( + "PartitionHealthStateChunks", + &self.PartitionHealthStateChunks, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.HealthState == other.HealthState + && self.PartitionHealthStateChunks == other.PartitionHealthStateChunks + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK, + pub TotalCount: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .field("TotalCount", &self.TotalCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER { + pub HealthStateFilter: u32, + pub ServiceNameFilter: *mut u16, + pub PartitionFilters: *const FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_FILTER {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_FILTER") + .field("HealthStateFilter", &self.HealthStateFilter) + .field("ServiceNameFilter", &self.ServiceNameFilter) + .field("PartitionFilters", &self.PartitionFilters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER { + fn eq(&self, other: &Self) -> bool { + self.HealthStateFilter == other.HealthStateFilter + && self.ServiceNameFilter == other.ServiceNameFilter + && self.PartitionFilters == other.PartitionFilters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_HEALTH_STATE_FILTER, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATE_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_HEALTH_STATE, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} + impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_HEALTH_STATISTICS_FILTER") + .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + fn eq(&self, other: &Self) -> bool { + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} + impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub Weight: FABRIC_SERVICE_LOAD_METRIC_WEIGHT, + pub PrimaryDefaultLoad: u32, + pub SecondaryDefaultLoad: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION") + .field("Name", &self.Name) + .field("Weight", &self.Weight) + .field("PrimaryDefaultLoad", &self.PrimaryDefaultLoad) + .field("SecondaryDefaultLoad", &self.SecondaryDefaultLoad) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.Weight == other.Weight + && self.PrimaryDefaultLoad == other.PrimaryDefaultLoad + && self.SecondaryDefaultLoad == other.SecondaryDefaultLoad + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_NAME_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_NAME_QUERY_RESULT { + pub ServiceName: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_NAME_QUERY_RESULT {} + impl ::core::clone::Clone for FABRIC_SERVICE_NAME_QUERY_RESULT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_RESULT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_NAME_QUERY_RESULT") + .field("ServiceName", &self.ServiceName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_RESULT { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_RESULT {} + impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_RESULT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_NOTIFICATION { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub EndpointCount: u32, + pub Endpoints: *mut FABRIC_RESOLVED_SERVICE_ENDPOINT, + pub PartitionInfo: *mut FABRIC_SERVICE_PARTITION_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION {} + impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_NOTIFICATION") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("EndpointCount", &self.EndpointCount) + .field("Endpoints", &self.Endpoints) + .field("PartitionInfo", &self.PartitionInfo) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.EndpointCount == other.EndpointCount + && self.Endpoints == other.Endpoints + && self.PartitionInfo == other.PartitionInfo + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION {} + impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + pub Name: *mut u16, + pub Flags: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION") + .field("Name", &self.Name) + .field("Flags", &self.Flags) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Flags == other.Flags && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PARTITION_INFORMATION { + pub Kind: FABRIC_SERVICE_PARTITION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_INFORMATION {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PARTITION_INFORMATION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_INFORMATION {} + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + pub ServiceName: *mut u16, + pub PartitionIdFilter: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("PartitionIdFilter", &self.PartitionIdFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionIdFilter == other.PartitionIdFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + pub Type: FABRIC_PLACEMENT_POLICY_TYPE, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION") + .field("Type", &self.Type) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Type == other.Type && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + pub PolicyCount: u32, + pub Policies: *mut FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_PLACEMENT_POLICY_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_PLACEMENT_POLICY_LIST") + .field("PolicyCount", &self.PolicyCount) + .field("Policies", &self.Policies) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + fn eq(&self, other: &Self) -> bool { + self.PolicyCount == other.PolicyCount && self.Policies == other.Policies + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceNameFilter: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceNameFilter", &self.ServiceNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceNameFilter == other.ServiceNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX1") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX2") + .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeNameFilter == other.ServiceTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + pub MaxResults: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX3") + .field("MaxResults", &self.MaxResults) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_RESULT_ITEM { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_RESULT_ITEM") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + pub PartitionId: ::windows_core::GUID, + pub ReplicaIdOrInstanceIdFilter: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION") + .field("PartitionId", &self.PartitionId) + .field( + "ReplicaIdOrInstanceIdFilter", + &self.ReplicaIdOrInstanceIdFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaIdOrInstanceIdFilter == other.ReplicaIdOrInstanceIdFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + pub ReplicaStatusFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1") + .field("ReplicaStatusFilter", &self.ReplicaStatusFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ReplicaStatusFilter == other.ReplicaStatusFilter && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + pub ContinuationToken: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2") + .field("ContinuationToken", &self.ContinuationToken) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_SCALING_POLICY { + pub ServiceScalingPolicyTrigger: FABRIC_SCALING_TRIGGER, + pub ServiceScalingPolicyMechanism: FABRIC_SCALING_MECHANISM, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_SCALING_POLICY {} + impl ::core::clone::Clone for FABRIC_SERVICE_SCALING_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_SCALING_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_SCALING_POLICY") + .field( + "ServiceScalingPolicyTrigger", + &self.ServiceScalingPolicyTrigger, + ) + .field( + "ServiceScalingPolicyMechanism", + &self.ServiceScalingPolicyMechanism, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_SCALING_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_SCALING_POLICY { + fn eq(&self, other: &Self) -> bool { + self.ServiceScalingPolicyTrigger == other.ServiceScalingPolicyTrigger + && self.ServiceScalingPolicyMechanism == other.ServiceScalingPolicyMechanism + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_SCALING_POLICY {} + impl ::core::default::Default for FABRIC_SERVICE_SCALING_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_DESCRIPTION { + pub Kind: FABRIC_SERVICE_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION") + .field("Name", &self.Name) + .field("Value", &self.Value) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY { + pub MaxPercentUnhealthyServices: u8, + pub MaxPercentUnhealthyPartitionsPerService: u8, + pub MaxPercentUnhealthyReplicasPerPartition: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY") + .field( + "MaxPercentUnhealthyServices", + &self.MaxPercentUnhealthyServices, + ) + .field( + "MaxPercentUnhealthyPartitionsPerService", + &self.MaxPercentUnhealthyPartitionsPerService, + ) + .field( + "MaxPercentUnhealthyReplicasPerPartition", + &self.MaxPercentUnhealthyReplicasPerPartition, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + fn eq(&self, other: &Self) -> bool { + self.MaxPercentUnhealthyServices == other.MaxPercentUnhealthyServices + && self.MaxPercentUnhealthyPartitionsPerService + == other.MaxPercentUnhealthyPartitionsPerService + && self.MaxPercentUnhealthyReplicasPerPartition + == other.MaxPercentUnhealthyReplicasPerPartition + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + pub Count: u32, + pub Items: *mut FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM") + .field("ServiceTypeName", &self.ServiceTypeName) + .field("ServiceTypeHealthPolicy", &self.ServiceTypeHealthPolicy) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeName == other.ServiceTypeName + && self.ServiceTypeHealthPolicy == other.ServiceTypeHealthPolicy + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ServiceTypeNameFilter == other.ServiceTypeNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + pub ServiceTypeDescription: *mut FABRIC_SERVICE_TYPE_DESCRIPTION, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM") + .field("ServiceTypeDescription", &self.ServiceTypeDescription) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeDescription == other.ServiceTypeDescription + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + pub ServiceManifestName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1") + .field("ServiceManifestName", &self.ServiceManifestName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2") + .field("IsServiceGroup", &self.IsServiceGroup) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *const FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM, + } + impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {} + impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SERVICE_UPDATE_DESCRIPTION { + pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SERVICE_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SERVICE_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SERVICE_UPDATE_DESCRIPTION") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SERVICE_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SERVICE_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SINGLETON_PARTITION_INFORMATION { + pub Id: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SINGLETON_PARTITION_INFORMATION {} + impl ::core::clone::Clone for FABRIC_SINGLETON_PARTITION_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SINGLETON_PARTITION_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SINGLETON_PARTITION_INFORMATION") + .field("Id", &self.Id) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SINGLETON_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SINGLETON_PARTITION_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.Id == other.Id && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SINGLETON_PARTITION_INFORMATION {} + impl ::core::default::Default for FABRIC_SINGLETON_PARTITION_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STARTED_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STARTED_EVENT {} + impl ::core::clone::Clone for FABRIC_STARTED_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STARTED_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STARTED_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("ChaosParameters", &self.ChaosParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STARTED_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STARTED_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.ChaosParameters == other.ChaosParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STARTED_EVENT {} + impl ::core::default::Default for FABRIC_STARTED_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub ClusterConfigPath: ::windows_core::PCWSTR, + pub RollbackOnFailure: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_APPROVED_UPGRADES_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("ClusterConfigPath", &self.ClusterConfigPath) + .field("RollbackOnFailure", &self.RollbackOnFailure) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.ClusterConfigPath == other.ClusterConfigPath + && self.RollbackOnFailure == other.RollbackOnFailure + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_CHAOS_DESCRIPTION { + pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_CHAOS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_CHAOS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_CHAOS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_CHAOS_DESCRIPTION") + .field("ChaosParameters", &self.ChaosParameters) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_CHAOS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_CHAOS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ChaosParameters == other.ChaosParameters && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_CHAOS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_CHAOS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_NODE_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, + pub ClusterConnectionPort: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_NODE_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) + .field("ClusterConnectionPort", &self.ClusterConnectionPort) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.ClusterConnectionPort == other.ClusterConnectionPort + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_NODE_DESCRIPTION2 { + pub Kind: FABRIC_START_NODE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_NODE_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, + pub ClusterConnectionPort: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) + .field("ClusterConnectionPort", &self.ClusterConnectionPort) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.ClusterConnectionPort == other.ClusterConnectionPort + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_NODE_STATUS { + pub NodeResult: *mut FABRIC_NODE_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_NODE_STATUS {} + impl ::core::clone::Clone for FABRIC_START_NODE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_NODE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_NODE_STATUS") + .field("NodeResult", &self.NodeResult) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_NODE_STATUS { + fn eq(&self, other: &Self) -> bool { + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_NODE_STATUS {} + impl ::core::default::Default for FABRIC_START_NODE_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, + pub DataLossMode: FABRIC_DATA_LOSS_MODE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("PartitionSelector", &self.PartitionSelector) + .field("DataLossMode", &self.DataLossMode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.DataLossMode == other.DataLossMode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, + pub QuorumLossMode: FABRIC_QUORUM_LOSS_MODE, + pub QuorumLossDurationInMilliSeconds: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("PartitionSelector", &self.PartitionSelector) + .field("QuorumLossMode", &self.QuorumLossMode) + .field( + "QuorumLossDurationInMilliSeconds", + &self.QuorumLossDurationInMilliSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.QuorumLossMode == other.QuorumLossMode + && self.QuorumLossDurationInMilliSeconds == other.QuorumLossDurationInMilliSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_PARTITION_RESTART_DESCRIPTION { + pub OperationId: ::windows_core::GUID, + pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, + pub RestartPartitionMode: FABRIC_RESTART_PARTITION_MODE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_PARTITION_RESTART_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_PARTITION_RESTART_DESCRIPTION") + .field("OperationId", &self.OperationId) + .field("PartitionSelector", &self.PartitionSelector) + .field("RestartPartitionMode", &self.RestartPartitionMode) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.RestartPartitionMode == other.RestartPartitionMode + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_PARTITION_RESTART_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_UPGRADE_DESCRIPTION { + pub ClusterConfig: ::windows_core::PCWSTR, + pub HealthCheckRetryTimeoutInSeconds: u32, + pub HealthCheckWaitDurationInSeconds: u32, + pub HealthCheckStableDurationInSeconds: u32, + pub UpgradeDomainTimeoutInSeconds: u32, + pub UpgradeTimeoutInSeconds: u32, + pub MaxPercentUnhealthyApplications: u8, + pub MaxPercentUnhealthyNodes: u8, + pub MaxPercentDeltaUnhealthyNodes: u8, + pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_UPGRADE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_START_UPGRADE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_UPGRADE_DESCRIPTION") + .field("ClusterConfig", &self.ClusterConfig) + .field( + "HealthCheckRetryTimeoutInSeconds", + &self.HealthCheckRetryTimeoutInSeconds, + ) + .field( + "HealthCheckWaitDurationInSeconds", + &self.HealthCheckWaitDurationInSeconds, + ) + .field( + "HealthCheckStableDurationInSeconds", + &self.HealthCheckStableDurationInSeconds, + ) + .field( + "UpgradeDomainTimeoutInSeconds", + &self.UpgradeDomainTimeoutInSeconds, + ) + .field("UpgradeTimeoutInSeconds", &self.UpgradeTimeoutInSeconds) + .field( + "MaxPercentUnhealthyApplications", + &self.MaxPercentUnhealthyApplications, + ) + .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) + .field( + "MaxPercentDeltaUnhealthyNodes", + &self.MaxPercentDeltaUnhealthyNodes, + ) + .field( + "MaxPercentUpgradeDomainDeltaUnhealthyNodes", + &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ClusterConfig == other.ClusterConfig + && self.HealthCheckRetryTimeoutInSeconds == other.HealthCheckRetryTimeoutInSeconds + && self.HealthCheckWaitDurationInSeconds == other.HealthCheckWaitDurationInSeconds + && self.HealthCheckStableDurationInSeconds + == other.HealthCheckStableDurationInSeconds + && self.UpgradeDomainTimeoutInSeconds == other.UpgradeDomainTimeoutInSeconds + && self.UpgradeTimeoutInSeconds == other.UpgradeTimeoutInSeconds + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_START_UPGRADE_DESCRIPTION_EX1") + .field( + "ApplicationHealthPolicyMap", + &self.ApplicationHealthPolicyMap, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub InitializationDataSize: u32, + pub InitializationData: *mut u8, + pub PartitionScheme: FABRIC_PARTITION_SCHEME, + pub PartitionSchemeDescription: *mut ::core::ffi::c_void, + pub TargetReplicaSetSize: i32, + pub MinReplicaSetSize: i32, + pub PlacementConstraints: ::windows_core::PCWSTR, + pub CorrelationCount: u32, + pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, + pub MetricCount: u32, + pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("InitializationDataSize", &self.InitializationDataSize) + .field("InitializationData", &self.InitializationData) + .field("PartitionScheme", &self.PartitionScheme) + .field( + "PartitionSchemeDescription", + &self.PartitionSchemeDescription, + ) + .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) + .field("MinReplicaSetSize", &self.MinReplicaSetSize) + .field("PlacementConstraints", &self.PlacementConstraints) + .field("CorrelationCount", &self.CorrelationCount) + .field("Correlations", &self.Correlations) + .field("MetricCount", &self.MetricCount) + .field("Metrics", &self.Metrics) + .field("HasPersistedState", &self.HasPersistedState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.PartitionScheme == other.PartitionScheme + && self.PartitionSchemeDescription == other.PartitionSchemeDescription + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.MinReplicaSetSize == other.MinReplicaSetSize + && self.PlacementConstraints == other.PlacementConstraints + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.HasPersistedState == other.HasPersistedState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub FailoverSettings: *mut FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1") + .field("PolicyList", &self.PolicyList) + .field("FailoverSettings", &self.FailoverSettings) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PolicyList == other.PolicyList + && self.FailoverSettings == other.FailoverSettings + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, + pub DefaultMoveCost: FABRIC_MOVE_COST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2") + .field( + "IsDefaultMoveCostSpecified", + &self.IsDefaultMoveCostSpecified, + ) + .field("DefaultMoveCost", &self.DefaultMoveCost) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsDefaultMoveCostSpecified == other.IsDefaultMoveCostSpecified + && self.DefaultMoveCost == other.DefaultMoveCost + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, + pub ServiceDnsName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3") + .field( + "ServicePackageActivationMode", + &self.ServicePackageActivationMode, + ) + .field("ServiceDnsName", &self.ServiceDnsName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.ServiceDnsName == other.ServiceDnsName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + pub ScalingPolicyCount: u32, + pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4") + .field("ScalingPolicyCount", &self.ScalingPolicyCount) + .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + fn eq(&self, other: &Self) -> bool { + self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + pub Flags: u32, + pub ReplicaRestartWaitDurationSeconds: u32, + pub QuorumLossWaitDurationSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS") + .field("Flags", &self.Flags) + .field( + "ReplicaRestartWaitDurationSeconds", + &self.ReplicaRestartWaitDurationSeconds, + ) + .field( + "QuorumLossWaitDurationSeconds", + &self.QuorumLossWaitDurationSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + fn eq(&self, other: &Self) -> bool { + self.Flags == other.Flags + && self.ReplicaRestartWaitDurationSeconds == other.ReplicaRestartWaitDurationSeconds + && self.QuorumLossWaitDurationSeconds == other.QuorumLossWaitDurationSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + pub StandByReplicaKeepDurationSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1") + .field( + "StandByReplicaKeepDurationSeconds", + &self.StandByReplicaKeepDurationSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.StandByReplicaKeepDurationSeconds == other.StandByReplicaKeepDurationSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, + pub TargetReplicaSetSize: u32, + pub MinReplicaSetSize: u32, + pub HealthState: FABRIC_HEALTH_STATE, + pub PartitionStatus: FABRIC_QUERY_SERVICE_PARTITION_STATUS, + pub LastQuorumLossDurationInSeconds: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM") + .field("PartitionInformation", &self.PartitionInformation) + .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) + .field("MinReplicaSetSize", &self.MinReplicaSetSize) + .field("HealthState", &self.HealthState) + .field("PartitionStatus", &self.PartitionStatus) + .field( + "LastQuorumLossDurationInSeconds", + &self.LastQuorumLossDurationInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.PartitionInformation == other.PartitionInformation + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.MinReplicaSetSize == other.MinReplicaSetSize + && self.HealthState == other.HealthState + && self.PartitionStatus == other.PartitionStatus + && self.LastQuorumLossDurationInSeconds == other.LastQuorumLossDurationInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + pub PrimaryEpoch: FABRIC_EPOCH, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1") + .field("PrimaryEpoch", &self.PrimaryEpoch) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PrimaryEpoch == other.PrimaryEpoch && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("HasPersistedState", &self.HasPersistedState) + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.HasPersistedState == other.HasPersistedState + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1") + .field("ServiceStatus", &self.ServiceStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServiceStatus == other.ServiceStatus && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2") + .field("IsServiceGroup", &self.IsServiceGroup) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH") + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT") + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + pub PartitionId: ::windows_core::GUID, + pub ReplicaId: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE") + .field("PartitionId", &self.PartitionId) + .field("ReplicaId", &self.ReplicaId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + pub ReplicaId: i64, + pub ReplicaRole: FABRIC_REPLICA_ROLE, + pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub ReplicaAddress: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub LastInBuildDurationInSeconds: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM") + .field("ReplicaId", &self.ReplicaId) + .field("ReplicaRole", &self.ReplicaRole) + .field("ReplicaStatus", &self.ReplicaStatus) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("ReplicaAddress", &self.ReplicaAddress) + .field("NodeName", &self.NodeName) + .field( + "LastInBuildDurationInSeconds", + &self.LastInBuildDurationInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ReplicaId == other.ReplicaId + && self.ReplicaRole == other.ReplicaRole + && self.ReplicaStatus == other.ReplicaStatus + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ReplicaAddress == other.ReplicaAddress + && self.NodeName == other.NodeName + && self.LastInBuildDurationInSeconds == other.LastInBuildDurationInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + pub ServiceTypeName: ::windows_core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, + pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, + pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, + pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION") + .field("ServiceTypeName", &self.ServiceTypeName) + .field("PlacementConstraints", &self.PlacementConstraints) + .field("LoadMetrics", &self.LoadMetrics) + .field("Extensions", &self.Extensions) + .field("HasPersistedState", &self.HasPersistedState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeName == other.ServiceTypeName + && self.PlacementConstraints == other.PlacementConstraints + && self.LoadMetrics == other.LoadMetrics + && self.Extensions == other.Extensions + && self.HasPersistedState == other.HasPersistedState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1") + .field("PolicyList", &self.PolicyList) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + pub Flags: u32, + pub TargetReplicaSetSize: i32, + pub ReplicaRestartWaitDurationSeconds: u32, + pub QuorumLossWaitDurationSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION") + .field("Flags", &self.Flags) + .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) + .field( + "ReplicaRestartWaitDurationSeconds", + &self.ReplicaRestartWaitDurationSeconds, + ) + .field( + "QuorumLossWaitDurationSeconds", + &self.QuorumLossWaitDurationSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Flags == other.Flags + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.ReplicaRestartWaitDurationSeconds == other.ReplicaRestartWaitDurationSeconds + && self.QuorumLossWaitDurationSeconds == other.QuorumLossWaitDurationSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + pub StandByReplicaKeepDurationSeconds: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1") + .field( + "StandByReplicaKeepDurationSeconds", + &self.StandByReplicaKeepDurationSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.StandByReplicaKeepDurationSeconds == other.StandByReplicaKeepDurationSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + pub MinReplicaSetSize: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2") + .field("MinReplicaSetSize", &self.MinReplicaSetSize) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.MinReplicaSetSize == other.MinReplicaSetSize && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + pub PlacementConstraints: ::windows_core::PCWSTR, + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub CorrelationCount: u32, + pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, + pub MetricCount: u32, + pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3") + .field("PlacementConstraints", &self.PlacementConstraints) + .field("PolicyList", &self.PolicyList) + .field("CorrelationCount", &self.CorrelationCount) + .field("Correlations", &self.Correlations) + .field("MetricCount", &self.MetricCount) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.PlacementConstraints == other.PlacementConstraints + && self.PolicyList == other.PolicyList + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + pub DefaultMoveCost: FABRIC_MOVE_COST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4") + .field("DefaultMoveCost", &self.DefaultMoveCost) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + fn eq(&self, other: &Self) -> bool { + self.DefaultMoveCost == other.DefaultMoveCost && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, + pub RepartitionDescription: *mut ::core::ffi::c_void, + pub ScalingPolicyCount: u32, + pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 {} + impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5") + .field("RepartitionKind", &self.RepartitionKind) + .field("RepartitionDescription", &self.RepartitionDescription) + .field("ScalingPolicyCount", &self.ScalingPolicyCount) + .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + fn eq(&self, other: &Self) -> bool { + self.RepartitionKind == other.RepartitionKind + && self.RepartitionDescription == other.RepartitionDescription + && self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 {} + impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION { + pub ApplicationName: *mut u16, + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub InitializationDataSize: u32, + pub InitializationData: *mut u8, + pub PartitionScheme: FABRIC_PARTITION_SCHEME, + pub PartitionSchemeDescription: *mut ::core::ffi::c_void, + pub InstanceCount: i32, + pub PlacementConstraints: ::windows_core::PCWSTR, + pub CorrelationCount: u32, + pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, + pub MetricCount: u32, + pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION") + .field("ApplicationName", &self.ApplicationName) + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("InitializationDataSize", &self.InitializationDataSize) + .field("InitializationData", &self.InitializationData) + .field("PartitionScheme", &self.PartitionScheme) + .field( + "PartitionSchemeDescription", + &self.PartitionSchemeDescription, + ) + .field("InstanceCount", &self.InstanceCount) + .field("PlacementConstraints", &self.PlacementConstraints) + .field("CorrelationCount", &self.CorrelationCount) + .field("Correlations", &self.Correlations) + .field("MetricCount", &self.MetricCount) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.PartitionScheme == other.PartitionScheme + && self.PartitionSchemeDescription == other.PartitionSchemeDescription + && self.InstanceCount == other.InstanceCount + && self.PlacementConstraints == other.PlacementConstraints + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1") + .field("PolicyList", &self.PolicyList) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, + pub DefaultMoveCost: FABRIC_MOVE_COST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2") + .field( + "IsDefaultMoveCostSpecified", + &self.IsDefaultMoveCostSpecified, + ) + .field("DefaultMoveCost", &self.DefaultMoveCost) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsDefaultMoveCostSpecified == other.IsDefaultMoveCostSpecified + && self.DefaultMoveCost == other.DefaultMoveCost + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, + pub ServiceDnsName: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3") + .field( + "ServicePackageActivationMode", + &self.ServicePackageActivationMode, + ) + .field("ServiceDnsName", &self.ServiceDnsName) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.ServiceDnsName == other.ServiceDnsName + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + pub ScalingPolicyCount: u32, + pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4") + .field("ScalingPolicyCount", &self.ScalingPolicyCount) + .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + fn eq(&self, other: &Self) -> bool { + self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + pub PartitionId: ::windows_core::GUID, + pub InstanceId: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH") + .field("PartitionId", &self.PartitionId) + .field("InstanceId", &self.InstanceId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("HealthEvents", &self.HealthEvents) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + pub PartitionId: ::windows_core::GUID, + pub InstanceId: i64, + pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT") + .field("PartitionId", &self.PartitionId) + .field("InstanceId", &self.InstanceId) + .field("HealthInformation", &self.HealthInformation) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + pub PartitionId: ::windows_core::GUID, + pub InstanceId: i64, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE") + .field("PartitionId", &self.PartitionId) + .field("InstanceId", &self.InstanceId) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1") + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + fn eq(&self, other: &Self) -> bool { + self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + pub InstanceId: i64, + pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub ReplicaAddress: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub LastInBuildDurationInSeconds: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM") + .field("InstanceId", &self.InstanceId) + .field("ReplicaStatus", &self.ReplicaStatus) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("ReplicaAddress", &self.ReplicaAddress) + .field("NodeName", &self.NodeName) + .field( + "LastInBuildDurationInSeconds", + &self.LastInBuildDurationInSeconds, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.InstanceId == other.InstanceId + && self.ReplicaStatus == other.ReplicaStatus + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ReplicaAddress == other.ReplicaAddress + && self.NodeName == other.NodeName + && self.LastInBuildDurationInSeconds == other.LastInBuildDurationInSeconds + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, + pub InstanceCount: u32, + pub HealthState: FABRIC_HEALTH_STATE, + pub PartitionStatus: FABRIC_QUERY_SERVICE_PARTITION_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM") + .field("PartitionInformation", &self.PartitionInformation) + .field("InstanceCount", &self.InstanceCount) + .field("HealthState", &self.HealthState) + .field("PartitionStatus", &self.PartitionStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.PartitionInformation == other.PartitionInformation + && self.InstanceCount == other.InstanceCount + && self.HealthState == other.HealthState + && self.PartitionStatus == other.PartitionStatus + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + pub ServiceName: *mut u16, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub HealthState: FABRIC_HEALTH_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM") + .field("ServiceName", &self.ServiceName) + .field("ServiceTypeName", &self.ServiceTypeName) + .field("ServiceManifestVersion", &self.ServiceManifestVersion) + .field("HealthState", &self.HealthState) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1") + .field("ServiceStatus", &self.ServiceStatus) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ServiceStatus == other.ServiceStatus && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2") + .field("IsServiceGroup", &self.IsServiceGroup) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn eq(&self, other: &Self) -> bool { + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + pub ServiceTypeName: ::windows_core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, + pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, + pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, + pub UseImplicitHost: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION") + .field("ServiceTypeName", &self.ServiceTypeName) + .field("PlacementConstraints", &self.PlacementConstraints) + .field("LoadMetrics", &self.LoadMetrics) + .field("Extensions", &self.Extensions) + .field("UseImplicitHost", &self.UseImplicitHost) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceTypeName == other.ServiceTypeName + && self.PlacementConstraints == other.PlacementConstraints + && self.LoadMetrics == other.LoadMetrics + && self.Extensions == other.Extensions + && self.UseImplicitHost == other.UseImplicitHost + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1") + .field("PolicyList", &self.PolicyList) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + pub Flags: u32, + pub InstanceCount: i32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION") + .field("Flags", &self.Flags) + .field("InstanceCount", &self.InstanceCount) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Flags == other.Flags + && self.InstanceCount == other.InstanceCount + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + pub PlacementConstraints: ::windows_core::PCWSTR, + pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, + pub CorrelationCount: u32, + pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, + pub MetricCount: u32, + pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1") + .field("PlacementConstraints", &self.PlacementConstraints) + .field("PolicyList", &self.PolicyList) + .field("CorrelationCount", &self.CorrelationCount) + .field("Correlations", &self.Correlations) + .field("MetricCount", &self.MetricCount) + .field("Metrics", &self.Metrics) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.PlacementConstraints == other.PlacementConstraints + && self.PolicyList == other.PolicyList + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + pub DefaultMoveCost: FABRIC_MOVE_COST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2") + .field("DefaultMoveCost", &self.DefaultMoveCost) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.DefaultMoveCost == other.DefaultMoveCost && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, + pub RepartitionDescription: *mut ::core::ffi::c_void, + pub ScalingPolicyCount: u32, + pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 {} + impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3") + .field("RepartitionKind", &self.RepartitionKind) + .field("RepartitionDescription", &self.RepartitionDescription) + .field("ScalingPolicyCount", &self.ScalingPolicyCount) + .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn eq(&self, other: &Self) -> bool { + self.RepartitionKind == other.RepartitionKind + && self.RepartitionDescription == other.RepartitionDescription + && self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 {} + impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STOPPED_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub Reason: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STOPPED_EVENT {} + impl ::core::clone::Clone for FABRIC_STOPPED_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STOPPED_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STOPPED_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("Reason", &self.Reason) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STOPPED_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STOPPED_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STOPPED_EVENT {} + impl ::core::default::Default for FABRIC_STOPPED_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STOP_NODE_DESCRIPTION { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STOP_NODE_DESCRIPTION2 { + pub Kind: FABRIC_STOP_NODE_DESCRIPTION_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION2 {} + impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION2") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION2 { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION2 {} + impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + pub NodeName: ::windows_core::PCWSTR, + pub NodeInstanceId: u64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME") + .field("NodeName", &self.NodeName) + .field("NodeInstanceId", &self.NodeInstanceId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + fn eq(&self, other: &Self) -> bool { + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME {} + impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STOP_NODE_STATUS { + pub NodeResult: *mut FABRIC_NODE_RESULT, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STOP_NODE_STATUS {} + impl ::core::clone::Clone for FABRIC_STOP_NODE_STATUS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STOP_NODE_STATUS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STOP_NODE_STATUS") + .field("NodeResult", &self.NodeResult) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STOP_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_STATUS { + fn eq(&self, other: &Self) -> bool { + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STOP_NODE_STATUS {} + impl ::core::default::Default for FABRIC_STOP_NODE_STATUS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STORE_BACKUP_INFO { + pub BackupFolder: ::windows_core::PCWSTR, + pub BackupOption: FABRIC_STORE_BACKUP_OPTION, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STORE_BACKUP_INFO {} + impl ::core::clone::Clone for FABRIC_STORE_BACKUP_INFO { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STORE_BACKUP_INFO") + .field("BackupFolder", &self.BackupFolder) + .field("BackupOption", &self.BackupOption) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO { + fn eq(&self, other: &Self) -> bool { + self.BackupFolder == other.BackupFolder + && self.BackupOption == other.BackupOption + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO {} + impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STORE_BACKUP_INFO_EX1 { + pub BackupChainId: ::windows_core::GUID, + pub BackupIndex: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_STORE_BACKUP_INFO_EX1 {} + impl ::core::clone::Clone for FABRIC_STORE_BACKUP_INFO_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STORE_BACKUP_INFO_EX1") + .field("BackupChainId", &self.BackupChainId) + .field("BackupIndex", &self.BackupIndex) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO_EX1 { + fn eq(&self, other: &Self) -> bool { + self.BackupChainId == other.BackupChainId + && self.BackupIndex == other.BackupIndex + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO_EX1 {} + impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STRING_LIST { + pub Count: u32, + pub Items: *const ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_STRING_LIST {} + impl ::core::clone::Clone for FABRIC_STRING_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STRING_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STRING_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STRING_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STRING_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_STRING_LIST {} + impl ::core::default::Default for FABRIC_STRING_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_STRING_MAP { + pub Count: u32, + pub Items: *const FABRIC_APPLICATION_PARAMETER, + } + impl ::core::marker::Copy for FABRIC_STRING_MAP {} + impl ::core::clone::Clone for FABRIC_STRING_MAP { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_STRING_MAP { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_STRING_MAP") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_STRING_MAP { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_STRING_MAP { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_STRING_MAP {} + impl ::core::default::Default for FABRIC_STRING_MAP { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + pub SystemServiceNameFilter: *mut u16, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION") + .field("SystemServiceNameFilter", &self.SystemServiceNameFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.SystemServiceNameFilter == other.SystemServiceNameFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + pub TestCommandStateFilter: FABRIC_TEST_COMMAND_STATE_FILTER, + pub TestCommandTypeFilter: FABRIC_TEST_COMMAND_TYPE_FILTER, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_TEST_COMMAND_LIST_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_TEST_COMMAND_LIST_DESCRIPTION") + .field("TestCommandStateFilter", &self.TestCommandStateFilter) + .field("TestCommandTypeFilter", &self.TestCommandTypeFilter) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.TestCommandStateFilter == other.TestCommandStateFilter + && self.TestCommandTypeFilter == other.TestCommandTypeFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION {} + impl ::core::default::Default for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_TEST_ERROR_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub Reason: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_TEST_ERROR_EVENT {} + impl ::core::clone::Clone for FABRIC_TEST_ERROR_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_TEST_ERROR_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_TEST_ERROR_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("Reason", &self.Reason) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_TEST_ERROR_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_TEST_ERROR_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_TEST_ERROR_EVENT {} + impl ::core::default::Default for FABRIC_TEST_ERROR_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + pub PartitionCount: i32, + pub LowKey: i64, + pub HighKey: i64, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION") + .field("PartitionCount", &self.PartitionCount) + .field("LowKey", &self.LowKey) + .field("HighKey", &self.HighKey) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.PartitionCount == other.PartitionCount + && self.LowKey == other.LowKey + && self.HighKey == other.HighKey + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UNPLACED_REPLICA_INFORMATION { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub UnplacedReplicaReasons: *const FABRIC_STRING_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION {} + impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("UnplacedReplicaReasons", &self.UnplacedReplicaReasons) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.UnplacedReplicaReasons == other.UnplacedReplicaReasons + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION {} + impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + pub Count: u32, + pub Items: *const ::windows_core::PCWSTR, + } + impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} + impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} + impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + pub ServiceName: *mut u16, + pub PartitionId: ::windows_core::GUID, + pub OnlyQueryPrimaries: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION") + .field("ServiceName", &self.ServiceName) + .field("PartitionId", &self.PartitionId) + .field("OnlyQueryPrimaries", &self.OnlyQueryPrimaries) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.OnlyQueryPrimaries == other.OnlyQueryPrimaries + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub Async: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION") + .field("ApplicationTypeName", &self.ApplicationTypeName) + .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) + .field("Async", &self.Async) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.Async == other.Async + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DESCRIPTION { + pub CodeVersion: ::windows_core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, + pub UpgradeKind: FABRIC_UPGRADE_KIND, + pub UpgradePolicyDescription: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DESCRIPTION") + .field("CodeVersion", &self.CodeVersion) + .field("ConfigVersion", &self.ConfigVersion) + .field("UpgradeKind", &self.UpgradeKind) + .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.CodeVersion == other.CodeVersion + && self.ConfigVersion == other.ConfigVersion + && self.UpgradeKind == other.UpgradeKind + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UPGRADE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UpgradeDomainName: ::windows_core::PCWSTR, + pub BaselineErrorCount: u32, + pub BaselineTotalCount: u32, + pub TotalCount: u32, + pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UpgradeDomainName", &self.UpgradeDomainName) + .field("BaselineErrorCount", &self.BaselineErrorCount) + .field("BaselineTotalCount", &self.BaselineTotalCount) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUpgradeDomainDeltaUnhealthyNodes", + &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, + ) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.BaselineErrorCount == other.BaselineErrorCount + && self.BaselineTotalCount == other.BaselineTotalCount + && self.TotalCount == other.TotalCount + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UpgradeDomainName: ::windows_core::PCWSTR, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyDeployedApplications: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UpgradeDomainName", &self.UpgradeDomainName) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field( + "MaxPercentUnhealthyDeployedApplications", + &self.MaxPercentUnhealthyDeployedApplications, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + pub Description: ::windows_core::PCWSTR, + pub AggregatedHealthState: FABRIC_HEALTH_STATE, + pub UpgradeDomainName: ::windows_core::PCWSTR, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub TotalCount: u32, + pub MaxPercentUnhealthyNodes: u8, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION") + .field("Description", &self.Description) + .field("AggregatedHealthState", &self.AggregatedHealthState) + .field("UpgradeDomainName", &self.UpgradeDomainName) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field("TotalCount", &self.TotalCount) + .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + fn eq(&self, other: &Self) -> bool { + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_PROGRESS { + pub UpgradeDomainName: ::windows_core::PCWSTR, + pub NodeProgressList: *mut FABRIC_NODE_UPGRADE_PROGRESS_LIST, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_PROGRESS {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_PROGRESS") + .field("UpgradeDomainName", &self.UpgradeDomainName) + .field("NodeProgressList", &self.NodeProgressList) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.UpgradeDomainName == other.UpgradeDomainName + && self.NodeProgressList == other.NodeProgressList + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_PROGRESS {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + pub Name: ::windows_core::PCWSTR, + pub State: FABRIC_UPGRADE_DOMAIN_STATE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION") + .field("Name", &self.Name) + .field("State", &self.State) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name && self.State == other.State && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + pub Count: u32, + pub Items: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST {} + impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST {} + impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + pub CurrentCodeVersion: ::windows_core::PCWSTR, + pub CurrentManifestVersion: ::windows_core::PCWSTR, + pub TargetCodeVersion: ::windows_core::PCWSTR, + pub TargetManifestVersion: ::windows_core::PCWSTR, + pub PendingUpgradeType: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} + impl ::core::clone::Clone for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE") + .field("CurrentCodeVersion", &self.CurrentCodeVersion) + .field("CurrentManifestVersion", &self.CurrentManifestVersion) + .field("TargetCodeVersion", &self.TargetCodeVersion) + .field("TargetManifestVersion", &self.TargetManifestVersion) + .field("PendingUpgradeType", &self.PendingUpgradeType) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + fn eq(&self, other: &Self) -> bool { + self.CurrentCodeVersion == other.CurrentCodeVersion + && self.CurrentManifestVersion == other.CurrentManifestVersion + && self.TargetCodeVersion == other.TargetCodeVersion + && self.TargetManifestVersion == other.TargetManifestVersion + && self.PendingUpgradeType == other.PendingUpgradeType + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} + impl ::core::default::Default for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + pub PartitionId: ::windows_core::GUID, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_PARTITION_SAFETY_CHECK") + .field("PartitionId", &self.PartitionId) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_PROGRESS { + pub UpgradeDescription: *const FABRIC_UPGRADE_DESCRIPTION, + pub UpgradeState: FABRIC_UPGRADE_STATE, + pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, + pub NextUpgradeDomain: ::windows_core::PCWSTR, + pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, + pub UpgradeDurationInSeconds: u32, + pub CurrentUpgradeDomainDurationInSeconds: u32, + pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, + pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_PROGRESS {} + impl ::core::clone::Clone for FABRIC_UPGRADE_PROGRESS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_PROGRESS") + .field("UpgradeDescription", &self.UpgradeDescription) + .field("UpgradeState", &self.UpgradeState) + .field("UpgradeMode", &self.UpgradeMode) + .field("NextUpgradeDomain", &self.NextUpgradeDomain) + .field("UpgradeDomains", &self.UpgradeDomains) + .field("UpgradeDurationInSeconds", &self.UpgradeDurationInSeconds) + .field( + "CurrentUpgradeDomainDurationInSeconds", + &self.CurrentUpgradeDomainDurationInSeconds, + ) + .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) + .field( + "CurrentUpgradeDomainProgress", + &self.CurrentUpgradeDomainProgress, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS { + fn eq(&self, other: &Self) -> bool { + self.UpgradeDescription == other.UpgradeDescription + && self.UpgradeState == other.UpgradeState + && self.UpgradeMode == other.UpgradeMode + && self.NextUpgradeDomain == other.NextUpgradeDomain + && self.UpgradeDomains == other.UpgradeDomains + && self.UpgradeDurationInSeconds == other.UpgradeDurationInSeconds + && self.CurrentUpgradeDomainDurationInSeconds + == other.CurrentUpgradeDomainDurationInSeconds + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.CurrentUpgradeDomainProgress == other.CurrentUpgradeDomainProgress + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS {} + impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_PROGRESS_EX1 { + pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, + pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, + pub FailureReason: FABRIC_UPGRADE_FAILURE_REASON, + pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_PROGRESS_EX1 {} + impl ::core::clone::Clone for FABRIC_UPGRADE_PROGRESS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_PROGRESS_EX1") + .field("StartTimestampUtc", &self.StartTimestampUtc) + .field("FailureTimestampUtc", &self.FailureTimestampUtc) + .field("FailureReason", &self.FailureReason) + .field( + "UpgradeDomainProgressAtFailure", + &self.UpgradeDomainProgressAtFailure, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.StartTimestampUtc == other.StartTimestampUtc + && self.FailureTimestampUtc == other.FailureTimestampUtc + && self.FailureReason == other.FailureReason + && self.UpgradeDomainProgressAtFailure == other.UpgradeDomainProgressAtFailure + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS_EX1 {} + impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_SAFETY_CHECK { + pub Kind: FABRIC_UPGRADE_SAFETY_CHECK_KIND, + pub Value: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_SAFETY_CHECK") + .field("Kind", &self.Kind) + .field("Value", &self.Value) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.Kind == other.Kind && self.Value == other.Value + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_SAFETY_CHECK_LIST { + pub Count: u32, + pub Items: *const FABRIC_UPGRADE_SAFETY_CHECK, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK_LIST {} + impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_SAFETY_CHECK_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK_LIST {} + impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK {} + impl ::core::clone::Clone for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK") + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + fn eq(&self, other: &Self) -> bool { + self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK {} + impl ::core::default::Default for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_UPGRADE_UPDATE_DESCRIPTION { + pub UpgradeKind: FABRIC_UPGRADE_KIND, + pub UpdateFlags: u32, + pub UpgradePolicyDescription: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_UPGRADE_UPDATE_DESCRIPTION {} + impl ::core::clone::Clone for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_UPGRADE_UPDATE_DESCRIPTION") + .field("UpgradeKind", &self.UpgradeKind) + .field("UpdateFlags", &self.UpdateFlags) + .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.UpgradeKind == other.UpgradeKind + && self.UpdateFlags == other.UpdateFlags + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_UPGRADE_UPDATE_DESCRIPTION {} + impl ::core::default::Default for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_VALIDATION_FAILED_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub Reason: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_VALIDATION_FAILED_EVENT {} + impl ::core::clone::Clone for FABRIC_VALIDATION_FAILED_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_VALIDATION_FAILED_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_VALIDATION_FAILED_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("Reason", &self.Reason) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_VALIDATION_FAILED_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_VALIDATION_FAILED_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_VALIDATION_FAILED_EVENT {} + impl ::core::default::Default for FABRIC_VALIDATION_FAILED_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_WAITING_EVENT { + pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, + pub Reason: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_WAITING_EVENT {} + impl ::core::clone::Clone for FABRIC_WAITING_EVENT { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_WAITING_EVENT { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_WAITING_EVENT") + .field("TimeStampUtc", &self.TimeStampUtc) + .field("Reason", &self.Reason) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_WAITING_EVENT { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_WAITING_EVENT { + fn eq(&self, other: &Self) -> bool { + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_WAITING_EVENT {} + impl ::core::default::Default for FABRIC_WAITING_EVENT { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_WINDOWS_CREDENTIALS { + pub RemoteSpn: ::windows_core::PCWSTR, + pub RemoteIdentityCount: u32, + pub RemoteIdentities: *const ::windows_core::PCWSTR, + pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_WINDOWS_CREDENTIALS {} + impl ::core::clone::Clone for FABRIC_WINDOWS_CREDENTIALS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_WINDOWS_CREDENTIALS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_WINDOWS_CREDENTIALS") + .field("RemoteSpn", &self.RemoteSpn) + .field("RemoteIdentityCount", &self.RemoteIdentityCount) + .field("RemoteIdentities", &self.RemoteIdentities) + .field("ProtectionLevel", &self.ProtectionLevel) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_WINDOWS_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_WINDOWS_CREDENTIALS { + fn eq(&self, other: &Self) -> bool { + self.RemoteSpn == other.RemoteSpn + && self.RemoteIdentityCount == other.RemoteIdentityCount + && self.RemoteIdentities == other.RemoteIdentities + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_WINDOWS_CREDENTIALS {} + impl ::core::default::Default for FABRIC_WINDOWS_CREDENTIALS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_CREDENTIALS { + pub AllowedCommonNameCount: u32, + pub AllowedCommonNames: *const ::windows_core::PCWSTR, + pub FindType: FABRIC_X509_FIND_TYPE, + pub FindValue: *mut ::core::ffi::c_void, + pub StoreLocation: FABRIC_X509_STORE_LOCATION, + pub StoreName: ::windows_core::PCWSTR, + pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS {} + impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_CREDENTIALS") + .field("AllowedCommonNameCount", &self.AllowedCommonNameCount) + .field("AllowedCommonNames", &self.AllowedCommonNames) + .field("FindType", &self.FindType) + .field("FindValue", &self.FindValue) + .field("StoreLocation", &self.StoreLocation) + .field("StoreName", &self.StoreName) + .field("ProtectionLevel", &self.ProtectionLevel) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS { + fn eq(&self, other: &Self) -> bool { + self.AllowedCommonNameCount == other.AllowedCommonNameCount + && self.AllowedCommonNames == other.AllowedCommonNames + && self.FindType == other.FindType + && self.FindValue == other.FindValue + && self.StoreLocation == other.StoreLocation + && self.StoreName == other.StoreName + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS {} + impl ::core::default::Default for FABRIC_X509_CREDENTIALS { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_CREDENTIALS2 { + pub CertLoadPath: ::windows_core::PCWSTR, + pub RemoteCertThumbprintCount: u32, + pub RemoteCertThumbprints: *const ::windows_core::PCWSTR, + pub RemoteX509NameCount: u32, + pub RemoteX509Names: *mut FABRIC_X509_NAME, + pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS2 {} + impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_CREDENTIALS2") + .field("CertLoadPath", &self.CertLoadPath) + .field("RemoteCertThumbprintCount", &self.RemoteCertThumbprintCount) + .field("RemoteCertThumbprints", &self.RemoteCertThumbprints) + .field("RemoteX509NameCount", &self.RemoteX509NameCount) + .field("RemoteX509Names", &self.RemoteX509Names) + .field("ProtectionLevel", &self.ProtectionLevel) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS2 { + fn eq(&self, other: &Self) -> bool { + self.CertLoadPath == other.CertLoadPath + && self.RemoteCertThumbprintCount == other.RemoteCertThumbprintCount + && self.RemoteCertThumbprints == other.RemoteCertThumbprints + && self.RemoteX509NameCount == other.RemoteX509NameCount + && self.RemoteX509Names == other.RemoteX509Names + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS2 {} + impl ::core::default::Default for FABRIC_X509_CREDENTIALS2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_CREDENTIALS_EX1 { + pub IssuerThumbprintCount: u32, + pub IssuerThumbprints: *const ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX1 {} + impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_CREDENTIALS_EX1") + .field("IssuerThumbprintCount", &self.IssuerThumbprintCount) + .field("IssuerThumbprints", &self.IssuerThumbprints) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX1 { + fn eq(&self, other: &Self) -> bool { + self.IssuerThumbprintCount == other.IssuerThumbprintCount + && self.IssuerThumbprints == other.IssuerThumbprints + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX1 {} + impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_CREDENTIALS_EX2 { + pub RemoteCertThumbprintCount: u32, + pub RemoteCertThumbprints: *const ::windows_core::PCWSTR, + pub RemoteX509NameCount: u32, + pub RemoteX509Names: *mut FABRIC_X509_NAME, + pub FindValueSecondary: *mut ::core::ffi::c_void, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX2 {} + impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_CREDENTIALS_EX2") + .field("RemoteCertThumbprintCount", &self.RemoteCertThumbprintCount) + .field("RemoteCertThumbprints", &self.RemoteCertThumbprints) + .field("RemoteX509NameCount", &self.RemoteX509NameCount) + .field("RemoteX509Names", &self.RemoteX509Names) + .field("FindValueSecondary", &self.FindValueSecondary) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX2 { + fn eq(&self, other: &Self) -> bool { + self.RemoteCertThumbprintCount == other.RemoteCertThumbprintCount + && self.RemoteCertThumbprints == other.RemoteCertThumbprints + && self.RemoteX509NameCount == other.RemoteX509NameCount + && self.RemoteX509Names == other.RemoteX509Names + && self.FindValueSecondary == other.FindValueSecondary + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX2 {} + impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_CREDENTIALS_EX3 { + pub RemoteCertIssuerCount: u32, + pub RemoteCertIssuers: *mut FABRIC_X509_ISSUER_NAME, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX3 {} + impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX3 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX3 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_CREDENTIALS_EX3") + .field("RemoteCertIssuerCount", &self.RemoteCertIssuerCount) + .field("RemoteCertIssuers", &self.RemoteCertIssuers) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX3 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX3 { + fn eq(&self, other: &Self) -> bool { + self.RemoteCertIssuerCount == other.RemoteCertIssuerCount + && self.RemoteCertIssuers == other.RemoteCertIssuers + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX3 {} + impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX3 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_ISSUER_NAME { + pub Name: ::windows_core::PCWSTR, + pub IssuerStoreCount: u32, + pub IssuerStores: *const ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_ISSUER_NAME {} + impl ::core::clone::Clone for FABRIC_X509_ISSUER_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_ISSUER_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_ISSUER_NAME") + .field("Name", &self.Name) + .field("IssuerStoreCount", &self.IssuerStoreCount) + .field("IssuerStores", &self.IssuerStores) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_ISSUER_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_ISSUER_NAME { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.IssuerStoreCount == other.IssuerStoreCount + && self.IssuerStores == other.IssuerStores + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_ISSUER_NAME {} + impl ::core::default::Default for FABRIC_X509_ISSUER_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct FABRIC_X509_NAME { + pub Name: ::windows_core::PCWSTR, + pub IssuerCertThumbprint: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for FABRIC_X509_NAME {} + impl ::core::clone::Clone for FABRIC_X509_NAME { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for FABRIC_X509_NAME { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("FABRIC_X509_NAME") + .field("Name", &self.Name) + .field("IssuerCertThumbprint", &self.IssuerCertThumbprint) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for FABRIC_X509_NAME { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for FABRIC_X509_NAME { + fn eq(&self, other: &Self) -> bool { + self.Name == other.Name + && self.IssuerCertThumbprint == other.IssuerCertThumbprint + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for FABRIC_X509_NAME {} + impl ::core::default::Default for FABRIC_X509_NAME { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, + pub MaxResults: i32, + pub ContinuationToken: ::windows_core::PCWSTR, + pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} + impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION") + .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) + .field("MaxResults", &self.MaxResults) + .field("ContinuationToken", &self.ContinuationToken) + .field( + "ExcludeApplicationParameters", + &self.ExcludeApplicationParameters, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.MaxResults == other.MaxResults + && self.ContinuationToken == other.ContinuationToken + && self.ExcludeApplicationParameters == other.ExcludeApplicationParameters + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} + impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + pub ApplicationTypeVersionFilter: ::windows_core::PCWSTR, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} + impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1") + .field( + "ApplicationTypeVersionFilter", + &self.ApplicationTypeVersionFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeVersionFilter == other.ApplicationTypeVersionFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} + impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + pub ApplicationTypeDefinitionKindFilter: u32, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 {} + impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2") + .field( + "ApplicationTypeDefinitionKindFilter", + &self.ApplicationTypeDefinitionKindFilter, + ) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + fn eq(&self, other: &Self) -> bool { + self.ApplicationTypeDefinitionKindFilter == other.ApplicationTypeDefinitionKindFilter + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 {} + impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct TEST_COMMAND_QUERY_RESULT_ITEM { + pub OperationId: ::windows_core::GUID, + pub TestCommandState: FABRIC_TEST_COMMAND_PROGRESS_STATE, + pub TestCommandType: FABRIC_TEST_COMMAND_TYPE, + pub Reserved: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for TEST_COMMAND_QUERY_RESULT_ITEM {} + impl ::core::clone::Clone for TEST_COMMAND_QUERY_RESULT_ITEM { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_ITEM { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TEST_COMMAND_QUERY_RESULT_ITEM") + .field("OperationId", &self.OperationId) + .field("TestCommandState", &self.TestCommandState) + .field("TestCommandType", &self.TestCommandType) + .field("Reserved", &self.Reserved) + .finish() + } + } + impl ::windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_ITEM { + fn eq(&self, other: &Self) -> bool { + self.OperationId == other.OperationId + && self.TestCommandState == other.TestCommandState + && self.TestCommandType == other.TestCommandType + && self.Reserved == other.Reserved + } + } + impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_ITEM {} + impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_ITEM { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } + #[repr(C)] + pub struct TEST_COMMAND_QUERY_RESULT_LIST { + pub Count: u32, + pub Items: *mut ::core::ffi::c_void, + } + impl ::core::marker::Copy for TEST_COMMAND_QUERY_RESULT_LIST {} + impl ::core::clone::Clone for TEST_COMMAND_QUERY_RESULT_LIST { + fn clone(&self) -> Self { + *self + } + } + impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_LIST { + fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { + f.debug_struct("TEST_COMMAND_QUERY_RESULT_LIST") + .field("Count", &self.Count) + .field("Items", &self.Items) + .finish() + } + } + impl ::windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; + } + impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_LIST { + fn eq(&self, other: &Self) -> bool { + self.Count == other.Count && self.Items == other.Items + } + } + impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_LIST {} + impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_LIST { + fn default() -> Self { + unsafe { ::core::mem::zeroed() } + } + } +} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs deleted file mode 100644 index 6f4c324c..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs +++ /dev/null @@ -1,14512 +0,0 @@ -pub trait IFabricApplicationHealthResult_Impl: Sized { - fn get_ApplicationHealth(&self) -> *mut super::super::FABRIC_APPLICATION_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricApplicationHealthResult {} -impl IFabricApplicationHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricApplicationHealthResult_Vtbl { - unsafe extern "system" fn get_ApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationHealth: get_ApplicationHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricApplicationManagementClient_Impl: Sized { - fn BeginProvisionApplicationType( - &self, - applicationbuildpath: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProvisionApplicationType( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginCreateApplication( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateApplication( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUpgradeApplication( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpgradeApplication( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetApplicationUpgradeProgress( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationUpgradeProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginMoveNextApplicationUpgradeDomain( - &self, - progress: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMoveNextApplicationUpgradeDomain( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteApplication( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteApplication( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUnprovisionApplicationType( - &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUnprovisionApplicationType( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient {} -impl IFabricApplicationManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient_Vtbl { - unsafe extern "system" fn BeginProvisionApplicationType< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationbuildpath: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProvisionApplicationType( - ::core::mem::transmute(&applicationbuildpath), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProvisionApplicationType< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProvisionApplicationType(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginCreateApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateApplication( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateApplication(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUpgradeApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpgradeApplication( - ::core::mem::transmute_copy(&upgradedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpgradeApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpgradeApplication(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetApplicationUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationUpgradeProgress( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationUpgradeProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - progress: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMoveNextApplicationUpgradeDomain( - ::core::mem::transmute(&progress), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndMoveNextApplicationUpgradeDomain(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeleteApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteApplication( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteApplication(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUnprovisionApplicationType< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUnprovisionApplicationType( - ::core::mem::transmute(&applicationtypename), - ::core::mem::transmute(&applicationtypeversion), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUnprovisionApplicationType< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUnprovisionApplicationType(::core::mem::transmute(&context)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginProvisionApplicationType: BeginProvisionApplicationType::, - EndProvisionApplicationType: EndProvisionApplicationType::, - BeginCreateApplication: BeginCreateApplication::, - EndCreateApplication: EndCreateApplication::, - BeginUpgradeApplication: BeginUpgradeApplication::, - EndUpgradeApplication: EndUpgradeApplication::, - BeginGetApplicationUpgradeProgress: BeginGetApplicationUpgradeProgress::< - Identity, - Impl, - OFFSET, - >, - EndGetApplicationUpgradeProgress: EndGetApplicationUpgradeProgress::< - Identity, - Impl, - OFFSET, - >, - BeginMoveNextApplicationUpgradeDomain: BeginMoveNextApplicationUpgradeDomain::< - Identity, - Impl, - OFFSET, - >, - EndMoveNextApplicationUpgradeDomain: EndMoveNextApplicationUpgradeDomain::< - Identity, - Impl, - OFFSET, - >, - BeginDeleteApplication: BeginDeleteApplication::, - EndDeleteApplication: EndDeleteApplication::, - BeginUnprovisionApplicationType: BeginUnprovisionApplicationType::< - Identity, - Impl, - OFFSET, - >, - EndUnprovisionApplicationType: EndUnprovisionApplicationType::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricApplicationManagementClient10_Impl: - Sized + IFabricApplicationManagementClient9_Impl -{ - fn BeginProvisionApplicationType3( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProvisionApplicationType3( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient10 {} -impl IFabricApplicationManagementClient10_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient10_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient10_Vtbl { - unsafe extern "system" fn BeginProvisionApplicationType3< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProvisionApplicationType3( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProvisionApplicationType3< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProvisionApplicationType3(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient9_Vtbl::new::(), - BeginProvisionApplicationType3: BeginProvisionApplicationType3::, - EndProvisionApplicationType3: EndProvisionApplicationType3::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient2_Impl: - Sized + IFabricApplicationManagementClient_Impl -{ - fn BeginGetApplicationManifest( - &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationManifest( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginMoveNextApplicationUpgradeDomain2( - &self, - applicationname: *const u16, - nextupgradedomain: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMoveNextApplicationUpgradeDomain2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient2 {} -impl IFabricApplicationManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient2_Vtbl { - unsafe extern "system" fn BeginGetApplicationManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationManifest( - ::core::mem::transmute(&applicationtypename), - ::core::mem::transmute(&applicationtypeversion), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationManifest(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - nextupgradedomain: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMoveNextApplicationUpgradeDomain2( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute(&nextupgradedomain), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndMoveNextApplicationUpgradeDomain2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient_Vtbl::new::(), - BeginGetApplicationManifest: BeginGetApplicationManifest::, - EndGetApplicationManifest: EndGetApplicationManifest::, - BeginMoveNextApplicationUpgradeDomain2: BeginMoveNextApplicationUpgradeDomain2::< - Identity, - Impl, - OFFSET, - >, - EndMoveNextApplicationUpgradeDomain2: EndMoveNextApplicationUpgradeDomain2::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient3_Impl: - Sized + IFabricApplicationManagementClient2_Impl -{ - fn BeginUpdateApplicationUpgrade( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateApplicationUpgrade( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRestartDeployedCodePackage( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestartDeployedCodePackage( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn CopyApplicationPackage( - &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - applicationpackagepath: &::windows::core::PCWSTR, - applicationpackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; - fn RemoveApplicationPackage( - &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - applicationpackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient3 {} -impl IFabricApplicationManagementClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient3_Vtbl { - unsafe extern "system" fn BeginUpdateApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateApplicationUpgrade( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateApplicationUpgrade(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestartDeployedCodePackage( - ::core::mem::transmute_copy(&restartcodepackagedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRestartDeployedCodePackage(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn CopyApplicationPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - applicationpackagepath: ::windows::core::PCWSTR, - applicationpackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CopyApplicationPackage( - ::core::mem::transmute(&imagestoreconnectionstring), - ::core::mem::transmute(&applicationpackagepath), - ::core::mem::transmute(&applicationpackagepathinimagestore), - ) - .into() - } - unsafe extern "system" fn RemoveApplicationPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - applicationpackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveApplicationPackage( - ::core::mem::transmute(&imagestoreconnectionstring), - ::core::mem::transmute(&applicationpackagepathinimagestore), - ) - .into() - } - Self { - base__: IFabricApplicationManagementClient2_Vtbl::new::(), - BeginUpdateApplicationUpgrade: BeginUpdateApplicationUpgrade::, - EndUpdateApplicationUpgrade: EndUpdateApplicationUpgrade::, - BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::< - Identity, - Impl, - OFFSET, - >, - EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, - CopyApplicationPackage: CopyApplicationPackage::, - RemoveApplicationPackage: RemoveApplicationPackage::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient4_Impl: - Sized + IFabricApplicationManagementClient3_Impl -{ - fn BeginDeployServicePackageToNode( - &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - servicemanifestname: &::windows::core::PCWSTR, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeployServicePackageToNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient4 {} -impl IFabricApplicationManagementClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient4_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient4_Vtbl { - unsafe extern "system" fn BeginDeployServicePackageToNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeployServicePackageToNode( - ::core::mem::transmute(&applicationtypename), - ::core::mem::transmute(&applicationtypeversion), - ::core::mem::transmute(&servicemanifestname), - ::core::mem::transmute_copy(&sharingpolicy), - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeployServicePackageToNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeployServicePackageToNode(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient3_Vtbl::new::(), - BeginDeployServicePackageToNode: BeginDeployServicePackageToNode::< - Identity, - Impl, - OFFSET, - >, - EndDeployServicePackageToNode: EndDeployServicePackageToNode::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient5_Impl: - Sized + IFabricApplicationManagementClient4_Impl -{ - fn BeginRollbackApplicationUpgrade( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRollbackApplicationUpgrade( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient5 {} -impl IFabricApplicationManagementClient5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient5_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient5_Vtbl { - unsafe extern "system" fn BeginRollbackApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRollbackApplicationUpgrade( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRollbackApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRollbackApplicationUpgrade(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient4_Vtbl::new::(), - BeginRollbackApplicationUpgrade: BeginRollbackApplicationUpgrade::< - Identity, - Impl, - OFFSET, - >, - EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient6_Impl: - Sized + IFabricApplicationManagementClient5_Impl -{ - fn BeginUpdateApplication( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateApplication( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient6 {} -impl IFabricApplicationManagementClient6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient6_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient6_Vtbl { - unsafe extern "system" fn BeginUpdateApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationupdatedescription : *const super::super:: FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateApplication( - ::core::mem::transmute_copy(&applicationupdatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateApplication< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateApplication(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient5_Vtbl::new::(), - BeginUpdateApplication: BeginUpdateApplication::, - EndUpdateApplication: EndUpdateApplication::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient7_Impl: - Sized + IFabricApplicationManagementClient6_Impl -{ - fn BeginDeleteApplication2( - &self, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteApplication2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient7 {} -impl IFabricApplicationManagementClient7_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient7_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient7_Vtbl { - unsafe extern "system" fn BeginDeleteApplication2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteApplication2( - ::core::mem::transmute_copy(&deletedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteApplication2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteApplication2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient6_Vtbl::new::(), - BeginDeleteApplication2: BeginDeleteApplication2::, - EndDeleteApplication2: EndDeleteApplication2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient8_Impl: - Sized + IFabricApplicationManagementClient7_Impl -{ - fn BeginProvisionApplicationType2( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProvisionApplicationType2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient8 {} -impl IFabricApplicationManagementClient8_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient8_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient8_Vtbl { - unsafe extern "system" fn BeginProvisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProvisionApplicationType2( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProvisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProvisionApplicationType2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient7_Vtbl::new::(), - BeginProvisionApplicationType2: BeginProvisionApplicationType2::, - EndProvisionApplicationType2: EndProvisionApplicationType2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationManagementClient9_Impl: - Sized + IFabricApplicationManagementClient8_Impl -{ - fn BeginUnprovisionApplicationType2( - &self, - description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUnprovisionApplicationType2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient9 {} -impl IFabricApplicationManagementClient9_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient9_Impl, - const OFFSET: isize, - >() -> IFabricApplicationManagementClient9_Vtbl { - unsafe extern "system" fn BeginUnprovisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUnprovisionApplicationType2( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUnprovisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUnprovisionApplicationType2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricApplicationManagementClient8_Vtbl::new::(), - BeginUnprovisionApplicationType2: BeginUnprovisionApplicationType2::< - Identity, - Impl, - OFFSET, - >, - EndUnprovisionApplicationType2: EndUnprovisionApplicationType2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationUpgradeProgressResult_Impl: Sized { - fn get_ApplicationName(&self) -> *mut u16; - fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR; - fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR; - fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE; - fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; - fn GetChangedUpgradeDomains( - &self, - previousprogress: &::core::option::Option, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult {} -impl IFabricApplicationUpgradeProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricApplicationUpgradeProgressResult_Vtbl { - unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut u16 { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationName() - } - unsafe extern "system" fn get_ApplicationTypeName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationTypeName() - } - unsafe extern "system" fn get_TargetApplicationTypeVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_TargetApplicationTypeVersion() - } - unsafe extern "system" fn get_UpgradeState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_UpgradeState() - } - unsafe extern "system" fn GetUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetUpgradeDomains( - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - previousprogress: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetChangedUpgradeDomains( - ::core::mem::transmute(&previousprogress), - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, - get_ApplicationTypeName: get_ApplicationTypeName::, - get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::< - Identity, - Impl, - OFFSET, - >, - get_UpgradeState: get_UpgradeState::, - GetUpgradeDomains: GetUpgradeDomains::, - GetChangedUpgradeDomains: GetChangedUpgradeDomains::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricApplicationUpgradeProgressResult2_Impl: - Sized + IFabricApplicationUpgradeProgressResult_Impl -{ - fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; - fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} -impl IFabricApplicationUpgradeProgressResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult2_Impl, - const OFFSET: isize, - >() -> IFabricApplicationUpgradeProgressResult2_Vtbl { - unsafe extern "system" fn get_RollingUpgradeMode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_RollingUpgradeMode() - } - unsafe extern "system" fn get_NextUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NextUpgradeDomain() - } - Self { - base__: IFabricApplicationUpgradeProgressResult_Vtbl::new::(), - get_RollingUpgradeMode: get_RollingUpgradeMode::, - get_NextUpgradeDomain: get_NextUpgradeDomain::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricApplicationUpgradeProgressResult3_Impl: - Sized + IFabricApplicationUpgradeProgressResult2_Impl -{ - fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} -impl IFabricApplicationUpgradeProgressResult3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult3_Impl, - const OFFSET: isize, - >() -> IFabricApplicationUpgradeProgressResult3_Vtbl { - unsafe extern "system" fn get_UpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricApplicationUpgradeProgressResult3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_UpgradeProgress() - } - Self { - base__: IFabricApplicationUpgradeProgressResult2_Vtbl::new::(), - get_UpgradeProgress: get_UpgradeProgress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricChaosDescriptionResult_Impl: Sized { - fn get_ChaosDescriptionResult(&self) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION; -} -impl ::windows::core::RuntimeName for IFabricChaosDescriptionResult {} -impl IFabricChaosDescriptionResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosDescriptionResult_Impl, - const OFFSET: isize, - >() -> IFabricChaosDescriptionResult_Vtbl { - unsafe extern "system" fn get_ChaosDescriptionResult< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosDescriptionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ChaosDescriptionResult() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ChaosDescriptionResult: get_ChaosDescriptionResult::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricChaosEventsSegmentResult_Impl: Sized { - fn get_ChaosEventsSegmentResult(&self) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT; -} -impl ::windows::core::RuntimeName for IFabricChaosEventsSegmentResult {} -impl IFabricChaosEventsSegmentResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosEventsSegmentResult_Impl, - const OFFSET: isize, - >() -> IFabricChaosEventsSegmentResult_Vtbl { - unsafe extern "system" fn get_ChaosEventsSegmentResult< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosEventsSegmentResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ChaosEventsSegmentResult() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricChaosReportResult_Impl: Sized { - fn get_ChaosReportResult(&self) -> *mut super::super::FABRIC_CHAOS_REPORT; -} -impl ::windows::core::RuntimeName for IFabricChaosReportResult {} -impl IFabricChaosReportResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosReportResult_Impl, - const OFFSET: isize, - >() -> IFabricChaosReportResult_Vtbl { - unsafe extern "system" fn get_ChaosReportResult< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosReportResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_REPORT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ChaosReportResult() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ChaosReportResult: get_ChaosReportResult::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricChaosScheduleDescriptionResult_Impl: Sized { - fn get_ChaosScheduleDescriptionResult( - &self, - ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION; -} -impl ::windows::core::RuntimeName for IFabricChaosScheduleDescriptionResult {} -impl IFabricChaosScheduleDescriptionResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosScheduleDescriptionResult_Impl, - const OFFSET: isize, - >() -> IFabricChaosScheduleDescriptionResult_Vtbl { - unsafe extern "system" fn get_ChaosScheduleDescriptionResult< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricChaosScheduleDescriptionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ChaosScheduleDescriptionResult() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClientConnectionEventHandler_Impl: Sized { - fn OnConnected( - &self, - __midl__ifabricclientconnectioneventhandler0000: &::core::option::Option< - IFabricGatewayInformationResult, - >, - ) -> ::windows::core::Result<()>; - fn OnDisconnected( - &self, - __midl__ifabricclientconnectioneventhandler0001: &::core::option::Option< - IFabricGatewayInformationResult, - >, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClientConnectionEventHandler {} -impl IFabricClientConnectionEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientConnectionEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricClientConnectionEventHandler_Vtbl { - unsafe extern "system" fn OnConnected< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientConnectionEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnConnected(::core::mem::transmute( - &__midl__ifabricclientconnectioneventhandler0000, - )) - .into() - } - unsafe extern "system" fn OnDisconnected< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientConnectionEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDisconnected(::core::mem::transmute( - &__midl__ifabricclientconnectioneventhandler0001, - )) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnConnected: OnConnected::, - OnDisconnected: OnDisconnected::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClientConnectionEventHandler2_Impl: - Sized + IFabricClientConnectionEventHandler_Impl -{ - fn OnClaimsRetrieval( - &self, - metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricClientConnectionEventHandler2 {} -impl IFabricClientConnectionEventHandler2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientConnectionEventHandler2_Impl, - const OFFSET: isize, - >() -> IFabricClientConnectionEventHandler2_Vtbl { - unsafe extern "system" fn OnClaimsRetrieval< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientConnectionEventHandler2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - token: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.OnClaimsRetrieval(::core::mem::transmute_copy(&metadata)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(token, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricClientConnectionEventHandler_Vtbl::new::(), - OnClaimsRetrieval: OnClaimsRetrieval::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClientSettings_Impl: Sized { - fn SetSecurityCredentials( - &self, - securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()>; - fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClientSettings {} -impl IFabricClientSettings_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings_Impl, - const OFFSET: isize, - >() -> IFabricClientSettings_Vtbl { - unsafe extern "system" fn SetSecurityCredentials< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetSecurityCredentials(::core::mem::transmute_copy(&securitycredentials)) - .into() - } - unsafe extern "system" fn SetKeepAlive< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - keepaliveintervalinseconds: u32, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetKeepAlive(::core::mem::transmute_copy(&keepaliveintervalinseconds)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - SetSecurityCredentials: SetSecurityCredentials::, - SetKeepAlive: SetKeepAlive::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClientSettings2_Impl: Sized + IFabricClientSettings_Impl { - fn GetSettings(&self) -> ::windows::core::Result; - fn SetSettings( - &self, - fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClientSettings2 {} -impl IFabricClientSettings2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings2_Impl, - const OFFSET: isize, - >() -> IFabricClientSettings2_Vtbl { - unsafe extern "system" fn GetSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSettings() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn SetSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettings2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.SetSettings(::core::mem::transmute_copy(&fabricclientsettings)) - .into() - } - Self { - base__: IFabricClientSettings_Vtbl::new::(), - GetSettings: GetSettings::, - SetSettings: SetSettings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClientSettingsResult_Impl: Sized { - fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS; -} -impl ::windows::core::RuntimeName for IFabricClientSettingsResult {} -impl IFabricClientSettingsResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettingsResult_Impl, - const OFFSET: isize, - >() -> IFabricClientSettingsResult_Vtbl { - unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClientSettingsResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLIENT_SETTINGS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Settings() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Settings: get_Settings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClusterHealthResult_Impl: Sized { - fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricClusterHealthResult {} -impl IFabricClusterHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricClusterHealthResult_Vtbl { - unsafe extern "system" fn get_ClusterHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLUSTER_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ClusterHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ClusterHealth: get_ClusterHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClusterManagementClient_Impl: Sized { - fn BeginNodeStateRemoved( - &self, - nodename: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndNodeStateRemoved( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRecoverPartitions( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRecoverPartitions( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient {} -impl IFabricClusterManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient_Vtbl { - unsafe extern "system" fn BeginNodeStateRemoved< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginNodeStateRemoved( - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndNodeStateRemoved< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndNodeStateRemoved(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginRecoverPartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRecoverPartitions( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRecoverPartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRecoverPartitions(::core::mem::transmute(&context)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginNodeStateRemoved: BeginNodeStateRemoved::, - EndNodeStateRemoved: EndNodeStateRemoved::, - BeginRecoverPartitions: BeginRecoverPartitions::, - EndRecoverPartitions: EndRecoverPartitions::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricClusterManagementClient10_Impl: - Sized + IFabricClusterManagementClient9_Impl -{ - fn BeginGetClusterConfiguration2( - &self, - apiversion: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterConfiguration2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient10 {} -impl IFabricClusterManagementClient10_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient10_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient10_Vtbl { - unsafe extern "system" fn BeginGetClusterConfiguration2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - apiversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterConfiguration2( - ::core::mem::transmute(&apiversion), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterConfiguration2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterConfiguration2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricClusterManagementClient9_Vtbl::new::(), - BeginGetClusterConfiguration2: BeginGetClusterConfiguration2::, - EndGetClusterConfiguration2: EndGetClusterConfiguration2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient2_Impl: - Sized + IFabricClusterManagementClient_Impl -{ - fn BeginDeactivateNode( - &self, - nodename: &::windows::core::PCWSTR, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeactivateNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginActivateNode( - &self, - nodename: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndActivateNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginProvisionFabric( - &self, - codefilepath: &::windows::core::PCWSTR, - clustermanifestfilepath: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProvisionFabric( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUpgradeFabric( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpgradeFabric( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetFabricUpgradeProgress( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetFabricUpgradeProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginMoveNextFabricUpgradeDomain( - &self, - progress: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMoveNextFabricUpgradeDomain( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginMoveNextFabricUpgradeDomain2( - &self, - nextupgradedomain: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMoveNextFabricUpgradeDomain2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUnprovisionFabric( - &self, - codeversion: &::windows::core::PCWSTR, - configversion: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUnprovisionFabric( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetClusterManifest( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterManifest( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginRecoverPartition( - &self, - partitionid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRecoverPartition( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRecoverServicePartitions( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRecoverServicePartitions( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRecoverSystemPartitions( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRecoverSystemPartitions( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient2 {} -impl IFabricClusterManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient2_Vtbl { - unsafe extern "system" fn BeginDeactivateNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeactivateNode( - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&intent), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeactivateNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeactivateNode(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginActivateNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginActivateNode( - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndActivateNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndActivateNode(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginProvisionFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codefilepath: ::windows::core::PCWSTR, - clustermanifestfilepath: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProvisionFabric( - ::core::mem::transmute(&codefilepath), - ::core::mem::transmute(&clustermanifestfilepath), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProvisionFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProvisionFabric(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUpgradeFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpgradeFabric( - ::core::mem::transmute_copy(&upgradedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpgradeFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpgradeFabric(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetFabricUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetFabricUpgradeProgress( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetFabricUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetFabricUpgradeProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - progress: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMoveNextFabricUpgradeDomain( - ::core::mem::transmute(&progress), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveNextFabricUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndMoveNextFabricUpgradeDomain(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - nextupgradedomain: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMoveNextFabricUpgradeDomain2( - ::core::mem::transmute(&nextupgradedomain), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndMoveNextFabricUpgradeDomain2(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUnprovisionFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codeversion: ::windows::core::PCWSTR, - configversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUnprovisionFabric( - ::core::mem::transmute(&codeversion), - ::core::mem::transmute(&configversion), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUnprovisionFabric< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUnprovisionFabric(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetClusterManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterManifest( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterManifest(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginRecoverPartition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRecoverPartition( - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRecoverPartition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRecoverPartition(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginRecoverServicePartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRecoverServicePartitions( - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRecoverServicePartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRecoverServicePartitions(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginRecoverSystemPartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRecoverSystemPartitions( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRecoverSystemPartitions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRecoverSystemPartitions(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricClusterManagementClient_Vtbl::new::(), - BeginDeactivateNode: BeginDeactivateNode::, - EndDeactivateNode: EndDeactivateNode::, - BeginActivateNode: BeginActivateNode::, - EndActivateNode: EndActivateNode::, - BeginProvisionFabric: BeginProvisionFabric::, - EndProvisionFabric: EndProvisionFabric::, - BeginUpgradeFabric: BeginUpgradeFabric::, - EndUpgradeFabric: EndUpgradeFabric::, - BeginGetFabricUpgradeProgress: BeginGetFabricUpgradeProgress::, - EndGetFabricUpgradeProgress: EndGetFabricUpgradeProgress::, - BeginMoveNextFabricUpgradeDomain: BeginMoveNextFabricUpgradeDomain::< - Identity, - Impl, - OFFSET, - >, - EndMoveNextFabricUpgradeDomain: EndMoveNextFabricUpgradeDomain::, - BeginMoveNextFabricUpgradeDomain2: BeginMoveNextFabricUpgradeDomain2::< - Identity, - Impl, - OFFSET, - >, - EndMoveNextFabricUpgradeDomain2: EndMoveNextFabricUpgradeDomain2::< - Identity, - Impl, - OFFSET, - >, - BeginUnprovisionFabric: BeginUnprovisionFabric::, - EndUnprovisionFabric: EndUnprovisionFabric::, - BeginGetClusterManifest: BeginGetClusterManifest::, - EndGetClusterManifest: EndGetClusterManifest::, - BeginRecoverPartition: BeginRecoverPartition::, - EndRecoverPartition: EndRecoverPartition::, - BeginRecoverServicePartitions: BeginRecoverServicePartitions::, - EndRecoverServicePartitions: EndRecoverServicePartitions::, - BeginRecoverSystemPartitions: BeginRecoverSystemPartitions::, - EndRecoverSystemPartitions: EndRecoverSystemPartitions::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient3_Impl: - Sized + IFabricClusterManagementClient2_Impl -{ - fn BeginUpdateFabricUpgrade( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateFabricUpgrade( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginStopNode( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStopNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRestartNode( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestartNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginStartNode( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn CopyClusterPackage( - &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - clustermanifestpath: &::windows::core::PCWSTR, - clustermanifestpathinimagestore: &::windows::core::PCWSTR, - codepackagepath: &::windows::core::PCWSTR, - codepackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; - fn RemoveClusterPackage( - &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - clustermanifestpathinimagestore: &::windows::core::PCWSTR, - codepackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient3 {} -impl IFabricClusterManagementClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient3_Vtbl { - unsafe extern "system" fn BeginUpdateFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateFabricUpgrade( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateFabricUpgrade(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginStopNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStopNode( - ::core::mem::transmute_copy(&stopnodedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStopNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStopNode(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginRestartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestartNode( - ::core::mem::transmute_copy(&restartnodedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRestartNode(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginStartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartNode( - ::core::mem::transmute_copy(&startnodedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartNode(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn CopyClusterPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - clustermanifestpath: ::windows::core::PCWSTR, - clustermanifestpathinimagestore: ::windows::core::PCWSTR, - codepackagepath: ::windows::core::PCWSTR, - codepackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CopyClusterPackage( - ::core::mem::transmute(&imagestoreconnectionstring), - ::core::mem::transmute(&clustermanifestpath), - ::core::mem::transmute(&clustermanifestpathinimagestore), - ::core::mem::transmute(&codepackagepath), - ::core::mem::transmute(&codepackagepathinimagestore), - ) - .into() - } - unsafe extern "system" fn RemoveClusterPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - clustermanifestpathinimagestore: ::windows::core::PCWSTR, - codepackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveClusterPackage( - ::core::mem::transmute(&imagestoreconnectionstring), - ::core::mem::transmute(&clustermanifestpathinimagestore), - ::core::mem::transmute(&codepackagepathinimagestore), - ) - .into() - } - Self { - base__: IFabricClusterManagementClient2_Vtbl::new::(), - BeginUpdateFabricUpgrade: BeginUpdateFabricUpgrade::, - EndUpdateFabricUpgrade: EndUpdateFabricUpgrade::, - BeginStopNode: BeginStopNode::, - EndStopNode: EndStopNode::, - BeginRestartNode: BeginRestartNode::, - EndRestartNode: EndRestartNode::, - BeginStartNode: BeginStartNode::, - EndStartNode: EndStartNode::, - CopyClusterPackage: CopyClusterPackage::, - RemoveClusterPackage: RemoveClusterPackage::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient4_Impl: - Sized + IFabricClusterManagementClient3_Impl -{ - fn BeginRollbackFabricUpgrade( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRollbackFabricUpgrade( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient4 {} -impl IFabricClusterManagementClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient4_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient4_Vtbl { - unsafe extern "system" fn BeginRollbackFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRollbackFabricUpgrade( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRollbackFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRollbackFabricUpgrade(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricClusterManagementClient3_Vtbl::new::(), - BeginRollbackFabricUpgrade: BeginRollbackFabricUpgrade::, - EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient5_Impl: - Sized + IFabricClusterManagementClient4_Impl -{ - fn BeginResetPartitionLoad( - &self, - partitionid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndResetPartitionLoad( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient5 {} -impl IFabricClusterManagementClient5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient5_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient5_Vtbl { - unsafe extern "system" fn BeginResetPartitionLoad< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginResetPartitionLoad( - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndResetPartitionLoad< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndResetPartitionLoad(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricClusterManagementClient4_Vtbl::new::(), - BeginResetPartitionLoad: BeginResetPartitionLoad::, - EndResetPartitionLoad: EndResetPartitionLoad::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient6_Impl: - Sized + IFabricClusterManagementClient5_Impl -{ - fn BeginToggleVerboseServicePlacementHealthReporting( - &self, - enabled: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndToggleVerboseServicePlacementHealthReporting( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient6 {} -impl IFabricClusterManagementClient6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient6_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient6_Vtbl { - unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - enabled: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginToggleVerboseServicePlacementHealthReporting( - ::core::mem::transmute_copy(&enabled), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndToggleVerboseServicePlacementHealthReporting(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricClusterManagementClient5_Vtbl::new::(), - BeginToggleVerboseServicePlacementHealthReporting: - BeginToggleVerboseServicePlacementHealthReporting::, - EndToggleVerboseServicePlacementHealthReporting: - EndToggleVerboseServicePlacementHealthReporting::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient7_Impl: - Sized + IFabricClusterManagementClient6_Impl -{ - fn BeginUpgradeConfiguration( - &self, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpgradeConfiguration( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetClusterConfigurationUpgradeStatus( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterConfigurationUpgradeStatus( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetClusterConfiguration( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterConfiguration( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetUpgradesPendingApproval( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetUpgradesPendingApproval( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginStartApprovedUpgrades( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartApprovedUpgrades( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient7 {} -impl IFabricClusterManagementClient7_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient7_Vtbl { - unsafe extern "system" fn BeginUpgradeConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpgradeConfiguration( - ::core::mem::transmute_copy(&startupgradedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpgradeConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpgradeConfiguration(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterConfigurationUpgradeStatus( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterConfigurationUpgradeStatus(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetClusterConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterConfiguration( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterConfiguration(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetUpgradesPendingApproval< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetUpgradesPendingApproval( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetUpgradesPendingApproval< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndGetUpgradesPendingApproval(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginStartApprovedUpgrades< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartApprovedUpgrades( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartApprovedUpgrades< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartApprovedUpgrades(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricClusterManagementClient6_Vtbl::new::(), - BeginUpgradeConfiguration: BeginUpgradeConfiguration::, - EndUpgradeConfiguration: EndUpgradeConfiguration::, - BeginGetClusterConfigurationUpgradeStatus: BeginGetClusterConfigurationUpgradeStatus::< - Identity, - Impl, - OFFSET, - >, - EndGetClusterConfigurationUpgradeStatus: EndGetClusterConfigurationUpgradeStatus::< - Identity, - Impl, - OFFSET, - >, - BeginGetClusterConfiguration: BeginGetClusterConfiguration::, - EndGetClusterConfiguration: EndGetClusterConfiguration::, - BeginGetUpgradesPendingApproval: BeginGetUpgradesPendingApproval::< - Identity, - Impl, - OFFSET, - >, - EndGetUpgradesPendingApproval: EndGetUpgradesPendingApproval::, - BeginStartApprovedUpgrades: BeginStartApprovedUpgrades::, - EndStartApprovedUpgrades: EndStartApprovedUpgrades::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient8_Impl: - Sized + IFabricClusterManagementClient7_Impl -{ - fn BeginGetClusterManifest2( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterManifest2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient8 {} -impl IFabricClusterManagementClient8_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient8_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient8_Vtbl { - unsafe extern "system" fn BeginGetClusterManifest2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterManifest2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterManifest2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterManifest2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricClusterManagementClient7_Vtbl::new::(), - BeginGetClusterManifest2: BeginGetClusterManifest2::, - EndGetClusterManifest2: EndGetClusterManifest2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricClusterManagementClient9_Impl: - Sized + IFabricClusterManagementClient8_Impl -{ - fn BeginGetUpgradeOrchestrationServiceState( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetUpgradeOrchestrationServiceState( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginSetUpgradeOrchestrationServiceState( - &self, - state: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndSetUpgradeOrchestrationServiceState( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricClusterManagementClient9 {} -impl IFabricClusterManagementClient9_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient9_Impl, - const OFFSET: isize, - >() -> IFabricClusterManagementClient9_Vtbl { - unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetUpgradeOrchestrationServiceState( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetUpgradeOrchestrationServiceState(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - state: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginSetUpgradeOrchestrationServiceState( - ::core::mem::transmute(&state), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricClusterManagementClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndSetUpgradeOrchestrationServiceState(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricClusterManagementClient8_Vtbl::new::(), - BeginGetUpgradeOrchestrationServiceState: BeginGetUpgradeOrchestrationServiceState::< - Identity, - Impl, - OFFSET, - >, - EndGetUpgradeOrchestrationServiceState: EndGetUpgradeOrchestrationServiceState::< - Identity, - Impl, - OFFSET, - >, - BeginSetUpgradeOrchestrationServiceState: BeginSetUpgradeOrchestrationServiceState::< - Identity, - Impl, - OFFSET, - >, - EndSetUpgradeOrchestrationServiceState: EndSetUpgradeOrchestrationServiceState::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricDeployedApplicationHealthResult_Impl: Sized { - fn get_DeployedApplicationHealth( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricDeployedApplicationHealthResult {} -impl IFabricDeployedApplicationHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDeployedApplicationHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricDeployedApplicationHealthResult_Vtbl { - unsafe extern "system" fn get_DeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDeployedApplicationHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedApplicationHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedApplicationHealth: get_DeployedApplicationHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricDeployedServicePackageHealthResult_Impl: Sized { - fn get_DeployedServicePackageHealth( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricDeployedServicePackageHealthResult {} -impl IFabricDeployedServicePackageHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDeployedServicePackageHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricDeployedServicePackageHealthResult_Vtbl { - unsafe extern "system" fn get_DeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDeployedServicePackageHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedServicePackageHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricFaultManagementClient_Impl: Sized { - fn BeginRestartNode( - &self, - description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestartNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginStartNode( - &self, - description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginStopNode( - &self, - description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStopNode( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginRestartDeployedCodePackage( - &self, - description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestartDeployedCodePackage( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginMovePrimary( - &self, - description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMovePrimary( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginMoveSecondary( - &self, - description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndMoveSecondary( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricFaultManagementClient {} -impl IFabricFaultManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricFaultManagementClient_Vtbl { - unsafe extern "system" fn BeginRestartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestartNode( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndRestartNode(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginStartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartNode( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndStartNode(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginStopNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStopNode( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStopNode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndStopNode(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestartDeployedCodePackage( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndRestartDeployedCodePackage(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMovePrimary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMovePrimary( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMovePrimary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndMovePrimary(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginMoveSecondary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginMoveSecondary( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndMoveSecondary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricFaultManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndMoveSecondary(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginRestartNode: BeginRestartNode::, - EndRestartNode: EndRestartNode::, - BeginStartNode: BeginStartNode::, - EndStartNode: EndStartNode::, - BeginStopNode: BeginStopNode::, - EndStopNode: EndStopNode::, - BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::< - Identity, - Impl, - OFFSET, - >, - EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::, - BeginMovePrimary: BeginMovePrimary::, - EndMovePrimary: EndMovePrimary::, - BeginMoveSecondary: BeginMoveSecondary::, - EndMoveSecondary: EndMoveSecondary::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGatewayInformationResult_Impl: Sized { - fn get_GatewayInformation(&self) -> *mut super::super::FABRIC_GATEWAY_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGatewayInformationResult {} -impl IFabricGatewayInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGatewayInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGatewayInformationResult_Vtbl { - unsafe extern "system" fn get_GatewayInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGatewayInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_GATEWAY_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_GatewayInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_GatewayInformation: get_GatewayInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationListResult_Impl: Sized { - fn get_ApplicationList(&self) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationListResult {} -impl IFabricGetApplicationListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationListResult_Vtbl { - unsafe extern "system" fn get_ApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationList: get_ApplicationList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationListResult2_Impl: - Sized + IFabricGetApplicationListResult_Impl -{ - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationListResult2 {} -impl IFabricGetApplicationListResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationListResult2_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationListResult2_Vtbl { - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationListResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: IFabricGetApplicationListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetApplicationLoadInformationResult_Impl: Sized { - fn get_ApplicationLoadInformation( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationLoadInformationResult {} -impl IFabricGetApplicationLoadInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationLoadInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationLoadInformationResult_Vtbl { - unsafe extern "system" fn get_ApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationLoadInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationLoadInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationLoadInformation: get_ApplicationLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationNameResult_Impl: Sized { - fn get_ApplicationName(&self) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationNameResult {} -impl IFabricGetApplicationNameResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationNameResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationNameResult_Vtbl { - unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationNameResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationName() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationNetworkListResult_Impl: Sized { - fn get_ApplicationNetworkList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationNetworkListResult {} -impl IFabricGetApplicationNetworkListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationNetworkListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationNetworkListResult_Vtbl { - unsafe extern "system" fn get_ApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationNetworkList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationNetworkList: get_ApplicationNetworkList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationTypeListResult_Impl: Sized { - fn get_ApplicationTypeList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationTypeListResult {} -impl IFabricGetApplicationTypeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationTypeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationTypeListResult_Vtbl { - unsafe extern "system" fn get_ApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationTypeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationTypeList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationTypeList: get_ApplicationTypeList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetApplicationTypePagedListResult_Impl: Sized { - fn get_ApplicationTypePagedList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetApplicationTypePagedListResult {} -impl IFabricGetApplicationTypePagedListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationTypePagedListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetApplicationTypePagedListResult_Vtbl { - unsafe extern "system" fn get_ApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationTypePagedListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationTypePagedList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetApplicationTypePagedListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ApplicationTypePagedList: get_ApplicationTypePagedList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetClusterHealthChunkResult_Impl: Sized { - fn get_ClusterHealthChunk(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK; -} -impl ::windows::core::RuntimeName for IFabricGetClusterHealthChunkResult {} -impl IFabricGetClusterHealthChunkResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetClusterHealthChunkResult_Impl, - const OFFSET: isize, - >() -> IFabricGetClusterHealthChunkResult_Vtbl { - unsafe extern "system" fn get_ClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetClusterHealthChunkResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ClusterHealthChunk() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ClusterHealthChunk: get_ClusterHealthChunk::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetClusterLoadInformationResult_Impl: Sized { - fn get_ClusterLoadInformation(&self) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetClusterLoadInformationResult {} -impl IFabricGetClusterLoadInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetClusterLoadInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetClusterLoadInformationResult_Vtbl { - unsafe extern "system" fn get_ClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetClusterLoadInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ClusterLoadInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ClusterLoadInformation: get_ClusterLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedApplicationListResult_Impl: Sized { - fn get_DeployedApplicationList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedApplicationListResult {} -impl IFabricGetDeployedApplicationListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedApplicationListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedApplicationListResult_Vtbl { - unsafe extern "system" fn get_DeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedApplicationListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedApplicationList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedApplicationList: get_DeployedApplicationList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedApplicationPagedListResult_Impl: Sized { - fn get_DeployedApplicationPagedList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} -impl IFabricGetDeployedApplicationPagedListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedApplicationPagedListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedApplicationPagedListResult_Vtbl { - unsafe extern "system" fn get_DeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedApplicationPagedListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedApplicationPagedList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedApplicationPagedListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::< - Identity, - Impl, - OFFSET, - >, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedCodePackageListResult_Impl: Sized { - fn get_DeployedCodePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedCodePackageListResult {} -impl IFabricGetDeployedCodePackageListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedCodePackageListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedCodePackageListResult_Vtbl { - unsafe extern "system" fn get_DeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedCodePackageListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedCodePackageList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedCodePackageList: get_DeployedCodePackageList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: Sized { - fn get_DeployedNetworkCodePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} -impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedNetworkCodePackageListResult_Vtbl { - unsafe extern "system" fn get_DeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedNetworkCodePackageList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::< - Identity, - Impl, - OFFSET, - >, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedNetworkListResult_Impl: Sized { - fn get_DeployedNetworkList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedNetworkListResult {} -impl IFabricGetDeployedNetworkListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedNetworkListResult_Vtbl { - unsafe extern "system" fn get_DeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedNetworkList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedNetworkList: get_DeployedNetworkList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedReplicaListResult_Impl: Sized { - fn get_DeployedReplicaList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedReplicaListResult {} -impl IFabricGetDeployedReplicaListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedReplicaListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedReplicaListResult_Vtbl { - unsafe extern "system" fn get_DeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedReplicaListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedReplicaList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedReplicaList: get_DeployedReplicaList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServicePackageListResult_Impl: Sized { - fn get_DeployedServicePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedServicePackageListResult {} -impl IFabricGetDeployedServicePackageListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServicePackageListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedServicePackageListResult_Vtbl { - unsafe extern "system" fn get_DeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServicePackageListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedServicePackageList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedServicePackageList: get_DeployedServicePackageList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: Sized { - fn get_ReplicaDetail( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} -impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedServiceReplicaDetailResult_Vtbl { - unsafe extern "system" fn get_ReplicaDetail< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicaDetail() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicaDetail: get_ReplicaDetail::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetDeployedServiceTypeListResult_Impl: Sized { - fn get_DeployedServiceTypeList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} -impl IFabricGetDeployedServiceTypeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServiceTypeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetDeployedServiceTypeListResult_Vtbl { - unsafe extern "system" fn get_DeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetDeployedServiceTypeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_DeployedServiceTypeList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_DeployedServiceTypeList: get_DeployedServiceTypeList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkApplicationListResult_Impl: Sized { - fn get_NetworkApplicationList( - &self, - ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetNetworkApplicationListResult {} -impl IFabricGetNetworkApplicationListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkApplicationListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetNetworkApplicationListResult_Vtbl { - unsafe extern "system" fn get_NetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkApplicationListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NetworkApplicationList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkApplicationListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NetworkApplicationList: get_NetworkApplicationList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkListResult_Impl: Sized { - fn get_NetworkList(&self) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetNetworkListResult {} -impl IFabricGetNetworkListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetNetworkListResult_Vtbl { - unsafe extern "system" fn get_NetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NetworkList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NetworkList: get_NetworkList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNetworkNodeListResult_Impl: Sized { - fn get_NetworkNodeList(&self) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST; - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetNetworkNodeListResult {} -impl IFabricGetNetworkNodeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkNodeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetNetworkNodeListResult_Vtbl { - unsafe extern "system" fn get_NetworkNodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkNodeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NetworkNodeList() - } - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNetworkNodeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NetworkNodeList: get_NetworkNodeList::, - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNodeListResult_Impl: Sized { - fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetNodeListResult {} -impl IFabricGetNodeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetNodeListResult_Vtbl { - unsafe extern "system" fn get_NodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NodeList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NodeList: get_NodeList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetNodeListResult2_Impl: Sized + IFabricGetNodeListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetNodeListResult2 {} -impl IFabricGetNodeListResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeListResult2_Impl, - const OFFSET: isize, - >() -> IFabricGetNodeListResult2_Vtbl { - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeListResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: IFabricGetNodeListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetNodeLoadInformationResult_Impl: Sized { - fn get_NodeLoadInformation(&self) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetNodeLoadInformationResult {} -impl IFabricGetNodeLoadInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeLoadInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetNodeLoadInformationResult_Vtbl { - unsafe extern "system" fn get_NodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetNodeLoadInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NodeLoadInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NodeLoadInformation: get_NodeLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetPartitionListResult_Impl: Sized { - fn get_PartitionList(&self) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetPartitionListResult {} -impl IFabricGetPartitionListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetPartitionListResult_Vtbl { - unsafe extern "system" fn get_PartitionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PartitionList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_PartitionList: get_PartitionList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetPartitionListResult2_Impl: Sized + IFabricGetPartitionListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetPartitionListResult2 {} -impl IFabricGetPartitionListResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionListResult2_Impl, - const OFFSET: isize, - >() -> IFabricGetPartitionListResult2_Vtbl { - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionListResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: IFabricGetPartitionListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetPartitionLoadInformationResult_Impl: Sized { - fn get_PartitionLoadInformation(&self) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetPartitionLoadInformationResult {} -impl IFabricGetPartitionLoadInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionLoadInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetPartitionLoadInformationResult_Vtbl { - unsafe extern "system" fn get_PartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetPartitionLoadInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PartitionLoadInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_PartitionLoadInformation: get_PartitionLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetProvisionedCodeVersionListResult_Impl: Sized { - fn get_ProvisionedCodeVersionList( - &self, - ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} -impl IFabricGetProvisionedCodeVersionListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetProvisionedCodeVersionListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetProvisionedCodeVersionListResult_Vtbl { - unsafe extern "system" fn get_ProvisionedCodeVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetProvisionedCodeVersionListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ProvisionedCodeVersionList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetProvisionedConfigVersionListResult_Impl: Sized { - fn get_ProvisionedConfigVersionList( - &self, - ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} -impl IFabricGetProvisionedConfigVersionListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetProvisionedConfigVersionListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetProvisionedConfigVersionListResult_Vtbl { - unsafe extern "system" fn get_ProvisionedConfigVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetProvisionedConfigVersionListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ProvisionedConfigVersionList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetRepairTaskListResult_Impl: Sized { - fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetRepairTaskListResult {} -impl IFabricGetRepairTaskListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetRepairTaskListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetRepairTaskListResult_Vtbl { - unsafe extern "system" fn get_Tasks< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetRepairTaskListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPAIR_TASK_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Tasks() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Tasks: get_Tasks::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetReplicaListResult_Impl: Sized { - fn get_ReplicaList(&self) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetReplicaListResult {} -impl IFabricGetReplicaListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetReplicaListResult_Vtbl { - unsafe extern "system" fn get_ReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicaList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicaList: get_ReplicaList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetReplicaListResult2_Impl: Sized + IFabricGetReplicaListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetReplicaListResult2 {} -impl IFabricGetReplicaListResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaListResult2_Impl, - const OFFSET: isize, - >() -> IFabricGetReplicaListResult2_Vtbl { - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaListResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: IFabricGetReplicaListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetReplicaLoadInformationResult_Impl: Sized { - fn get_ReplicaLoadInformation(&self) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetReplicaLoadInformationResult {} -impl IFabricGetReplicaLoadInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaLoadInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetReplicaLoadInformationResult_Vtbl { - unsafe extern "system" fn get_ReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicaLoadInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicaLoadInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicaLoadInformation: get_ReplicaLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: Sized { - fn get_Policy(&self) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY; -} -impl ::windows::core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} -impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, - const OFFSET: isize, - >() -> IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { - unsafe extern "system" fn get_Policy< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Policy() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Policy: get_Policy::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceGroupMemberListResult_Impl: Sized { - fn get_ServiceGroupMemberList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetServiceGroupMemberListResult {} -impl IFabricGetServiceGroupMemberListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceGroupMemberListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceGroupMemberListResult_Vtbl { - unsafe extern "system" fn get_ServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceGroupMemberListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceGroupMemberList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceGroupMemberList: get_ServiceGroupMemberList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: Sized { - fn get_ServiceGroupMemberTypeList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} -impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceGroupMemberTypeListResult_Vtbl { - unsafe extern "system" fn get_ServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceGroupMemberTypeList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceListResult_Impl: Sized { - fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetServiceListResult {} -impl IFabricGetServiceListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceListResult_Vtbl { - unsafe extern "system" fn get_ServiceList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceList: get_ServiceList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceListResult2_Impl: Sized + IFabricGetServiceListResult_Impl { - fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; -} -impl ::windows::core::RuntimeName for IFabricGetServiceListResult2 {} -impl IFabricGetServiceListResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceListResult2_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceListResult2_Vtbl { - unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceListResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PagingStatus() - } - Self { - base__: IFabricGetServiceListResult_Vtbl::new::(), - get_PagingStatus: get_PagingStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricGetServiceNameResult_Impl: Sized { - fn get_ServiceName(&self) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT; -} -impl ::windows::core::RuntimeName for IFabricGetServiceNameResult {} -impl IFabricGetServiceNameResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceNameResult_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceNameResult_Vtbl { - unsafe extern "system" fn get_ServiceName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceNameResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceName() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceName: get_ServiceName::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetServiceTypeListResult_Impl: Sized { - fn get_ServiceTypeList(&self) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricGetServiceTypeListResult {} -impl IFabricGetServiceTypeListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceTypeListResult_Impl, - const OFFSET: isize, - >() -> IFabricGetServiceTypeListResult_Vtbl { - unsafe extern "system" fn get_ServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetServiceTypeListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceTypeList() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceTypeList: get_ServiceTypeList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetUnplacedReplicaInformationResult_Impl: Sized { - fn get_UnplacedReplicaInformation( - &self, - ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION; -} -impl ::windows::core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} -impl IFabricGetUnplacedReplicaInformationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetUnplacedReplicaInformationResult_Impl, - const OFFSET: isize, - >() -> IFabricGetUnplacedReplicaInformationResult_Vtbl { - unsafe extern "system" fn get_UnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetUnplacedReplicaInformationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_UnplacedReplicaInformation() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricHealthClient_Impl: Sized { - fn ReportHealth( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()>; - fn BeginGetClusterHealth( - &self, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetNodeHealth( - &self, - nodename: &::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNodeHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationHealth( - &self, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetServiceHealth( - &self, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetPartitionHealth( - &self, - partitionid: &::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetReplicaHealth( - &self, - partitionid: &::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetReplicaHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedApplicationHealth( - &self, - applicationname: *const u16, - nodename: &::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedApplicationHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedServicePackageHealth( - &self, - applicationname: *const u16, - servicemanifestname: &::windows::core::PCWSTR, - nodename: &::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedServicePackageHealth( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricHealthClient {} -impl IFabricHealthClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >() -> IFabricHealthClient_Vtbl { - unsafe extern "system" fn ReportHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportHealth(::core::mem::transmute_copy(&healthreport)) - .into() - } - unsafe extern "system" fn BeginGetClusterHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterHealth( - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetNodeHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNodeHealth( - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNodeHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationHealth( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetServiceHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceHealth( - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetPartitionHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionHealth( - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetReplicaHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetReplicaHealth( - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&replicaid), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetReplicaHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetReplicaHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedApplicationHealth( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedApplicationHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicemanifestname: ::windows::core::PCWSTR, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedServicePackageHealth( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute(&servicemanifestname), - ::core::mem::transmute(&nodename), - ::core::mem::transmute_copy(&healthpolicy), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageHealth(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - ReportHealth: ReportHealth::, - BeginGetClusterHealth: BeginGetClusterHealth::, - EndGetClusterHealth: EndGetClusterHealth::, - BeginGetNodeHealth: BeginGetNodeHealth::, - EndGetNodeHealth: EndGetNodeHealth::, - BeginGetApplicationHealth: BeginGetApplicationHealth::, - EndGetApplicationHealth: EndGetApplicationHealth::, - BeginGetServiceHealth: BeginGetServiceHealth::, - EndGetServiceHealth: EndGetServiceHealth::, - BeginGetPartitionHealth: BeginGetPartitionHealth::, - EndGetPartitionHealth: EndGetPartitionHealth::, - BeginGetReplicaHealth: BeginGetReplicaHealth::, - EndGetReplicaHealth: EndGetReplicaHealth::, - BeginGetDeployedApplicationHealth: BeginGetDeployedApplicationHealth::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedApplicationHealth: EndGetDeployedApplicationHealth::< - Identity, - Impl, - OFFSET, - >, - BeginGetDeployedServicePackageHealth: BeginGetDeployedServicePackageHealth::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedServicePackageHealth: EndGetDeployedServicePackageHealth::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricHealthClient2_Impl: Sized + IFabricHealthClient_Impl { - fn BeginGetClusterHealth2( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetNodeHealth2( - &self, - querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNodeHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationHealth2( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetServiceHealth2( - &self, - querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetPartitionHealth2( - &self, - querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetReplicaHealth2( - &self, - querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetReplicaHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedApplicationHealth2( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedApplicationHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedServicePackageHealth2( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedServicePackageHealth2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricHealthClient2 {} -impl IFabricHealthClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >() -> IFabricHealthClient2_Vtbl { - unsafe extern "system" fn BeginGetClusterHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetNodeHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNodeHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNodeHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetServiceHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetReplicaHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetReplicaHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedApplicationHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedApplicationHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedServicePackageHealth2( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageHealth2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricHealthClient_Vtbl::new::(), - BeginGetClusterHealth2: BeginGetClusterHealth2::, - EndGetClusterHealth2: EndGetClusterHealth2::, - BeginGetNodeHealth2: BeginGetNodeHealth2::, - EndGetNodeHealth2: EndGetNodeHealth2::, - BeginGetApplicationHealth2: BeginGetApplicationHealth2::, - EndGetApplicationHealth2: EndGetApplicationHealth2::, - BeginGetServiceHealth2: BeginGetServiceHealth2::, - EndGetServiceHealth2: EndGetServiceHealth2::, - BeginGetPartitionHealth2: BeginGetPartitionHealth2::, - EndGetPartitionHealth2: EndGetPartitionHealth2::, - BeginGetReplicaHealth2: BeginGetReplicaHealth2::, - EndGetReplicaHealth2: EndGetReplicaHealth2::, - BeginGetDeployedApplicationHealth2: BeginGetDeployedApplicationHealth2::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedApplicationHealth2: EndGetDeployedApplicationHealth2::< - Identity, - Impl, - OFFSET, - >, - BeginGetDeployedServicePackageHealth2: BeginGetDeployedServicePackageHealth2::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedServicePackageHealth2: EndGetDeployedServicePackageHealth2::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricHealthClient3_Impl: Sized + IFabricHealthClient2_Impl { - fn BeginGetClusterHealthChunk( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterHealthChunk( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricHealthClient3 {} -impl IFabricHealthClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient3_Impl, - const OFFSET: isize, - >() -> IFabricHealthClient3_Vtbl { - unsafe extern "system" fn BeginGetClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterHealthChunk( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterHealthChunk(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricHealthClient2_Vtbl::new::(), - BeginGetClusterHealthChunk: BeginGetClusterHealthChunk::, - EndGetClusterHealthChunk: EndGetClusterHealthChunk::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricHealthClient4_Impl: Sized + IFabricHealthClient3_Impl { - fn ReportHealth2( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricHealthClient4 {} -impl IFabricHealthClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient4_Impl, - const OFFSET: isize, - >() -> IFabricHealthClient4_Vtbl { - unsafe extern "system" fn ReportHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricHealthClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportHealth2( - ::core::mem::transmute_copy(&healthreport), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - Self { - base__: IFabricHealthClient3_Vtbl::new::(), - ReportHealth2: ReportHealth2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricInfrastructureServiceClient_Impl: Sized { - fn BeginInvokeInfrastructureCommand( - &self, - servicename: *const u16, - command: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndInvokeInfrastructureCommand( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginInvokeInfrastructureQuery( - &self, - servicename: *const u16, - command: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndInvokeInfrastructureQuery( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricInfrastructureServiceClient {} -impl IFabricInfrastructureServiceClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricInfrastructureServiceClient_Impl, - const OFFSET: isize, - >() -> IFabricInfrastructureServiceClient_Vtbl { - unsafe extern "system" fn BeginInvokeInfrastructureCommand< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricInfrastructureServiceClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - command: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginInvokeInfrastructureCommand( - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute(&command), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndInvokeInfrastructureCommand< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricInfrastructureServiceClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndInvokeInfrastructureCommand(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginInvokeInfrastructureQuery< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricInfrastructureServiceClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - command: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginInvokeInfrastructureQuery( - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute(&command), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndInvokeInfrastructureQuery< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricInfrastructureServiceClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndInvokeInfrastructureQuery(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::< - Identity, - Impl, - OFFSET, - >, - EndInvokeInfrastructureCommand: EndInvokeInfrastructureCommand::, - BeginInvokeInfrastructureQuery: BeginInvokeInfrastructureQuery::, - EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricMovePrimaryResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT; -} -impl ::windows::core::RuntimeName for IFabricMovePrimaryResult {} -impl IFabricMovePrimaryResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricMovePrimaryResult_Impl, - const OFFSET: isize, - >() -> IFabricMovePrimaryResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricMovePrimaryResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricMoveSecondaryResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT; -} -impl ::windows::core::RuntimeName for IFabricMoveSecondaryResult {} -impl IFabricMoveSecondaryResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricMoveSecondaryResult_Impl, - const OFFSET: isize, - >() -> IFabricMoveSecondaryResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricMoveSecondaryResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricNameEnumerationResult_Impl: Sized { - fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; - fn GetNames( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricNameEnumerationResult {} -impl IFabricNameEnumerationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNameEnumerationResult_Impl, - const OFFSET: isize, - >() -> IFabricNameEnumerationResult_Vtbl { - unsafe extern "system" fn get_EnumerationStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNameEnumerationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ENUMERATION_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_EnumerationStatus() - } - unsafe extern "system" fn GetNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNameEnumerationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetNames( - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_EnumerationStatus: get_EnumerationStatus::, - GetNames: GetNames::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricNetworkManagementClient_Impl: Sized { - fn BeginCreateNetwork( - &self, - networkname: &::windows::core::PCWSTR, - description: *const super::super::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateNetwork( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteNetwork( - &self, - deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteNetwork( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetNetworkList( - &self, - querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNetworkList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetNetworkApplicationList( - &self, - querydescription: *const super::super::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNetworkApplicationList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetNetworkNodeList( - &self, - querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNetworkNodeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationNetworkList( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationNetworkList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedNetworkList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedNetworkList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedNetworkCodePackageList( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedNetworkCodePackageList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricNetworkManagementClient {} -impl IFabricNetworkManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricNetworkManagementClient_Vtbl { - unsafe extern "system" fn BeginCreateNetwork< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - networkname: ::windows::core::PCWSTR, - description: *const super::super::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateNetwork( - ::core::mem::transmute(&networkname), - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateNetwork< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateNetwork(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeleteNetwork< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteNetwork( - ::core::mem::transmute_copy(&deletedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteNetwork< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteNetwork(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNetworkList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNetworkList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetNetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNetworkApplicationList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNetworkApplicationList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetNetworkNodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNetworkNodeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNetworkNodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNetworkNodeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationNetworkList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationNetworkList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedNetworkList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedNetworkList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedNetworkCodePackageList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNetworkManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedNetworkCodePackageList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginCreateNetwork: BeginCreateNetwork::, - EndCreateNetwork: EndCreateNetwork::, - BeginDeleteNetwork: BeginDeleteNetwork::, - EndDeleteNetwork: EndDeleteNetwork::, - BeginGetNetworkList: BeginGetNetworkList::, - EndGetNetworkList: EndGetNetworkList::, - BeginGetNetworkApplicationList: BeginGetNetworkApplicationList::, - EndGetNetworkApplicationList: EndGetNetworkApplicationList::, - BeginGetNetworkNodeList: BeginGetNetworkNodeList::, - EndGetNetworkNodeList: EndGetNetworkNodeList::, - BeginGetApplicationNetworkList: BeginGetApplicationNetworkList::, - EndGetApplicationNetworkList: EndGetApplicationNetworkList::, - BeginGetDeployedNetworkList: BeginGetDeployedNetworkList::, - EndGetDeployedNetworkList: EndGetDeployedNetworkList::, - BeginGetDeployedNetworkCodePackageList: BeginGetDeployedNetworkCodePackageList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedNetworkCodePackageList: EndGetDeployedNetworkCodePackageList::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricNodeHealthResult_Impl: Sized { - fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricNodeHealthResult {} -impl IFabricNodeHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricNodeHealthResult_Vtbl { - unsafe extern "system" fn get_NodeHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NodeHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NodeHealth: get_NodeHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricNodeTransitionProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricNodeTransitionProgressResult {} -impl IFabricNodeTransitionProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeTransitionProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricNodeTransitionProgressResult_Vtbl { - unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeTransitionProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Progress() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricOrchestrationUpgradeStatusResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} -impl IFabricOrchestrationUpgradeStatusResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOrchestrationUpgradeStatusResult_Impl, - const OFFSET: isize, - >() -> IFabricOrchestrationUpgradeStatusResult_Vtbl { - unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOrchestrationUpgradeStatusResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Progress() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionDataLossProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricPartitionDataLossProgressResult {} -impl IFabricPartitionDataLossProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionDataLossProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricPartitionDataLossProgressResult_Vtbl { - unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionDataLossProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Progress() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionHealthResult_Impl: Sized { - fn get_PartitionHealth(&self) -> *mut super::super::FABRIC_PARTITION_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricPartitionHealthResult {} -impl IFabricPartitionHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricPartitionHealthResult_Vtbl { - unsafe extern "system" fn get_PartitionHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PartitionHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_PartitionHealth: get_PartitionHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionQuorumLossProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} -impl IFabricPartitionQuorumLossProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionQuorumLossProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricPartitionQuorumLossProgressResult_Vtbl { - unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionQuorumLossProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Progress() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPartitionRestartProgressResult_Impl: Sized { - fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricPartitionRestartProgressResult {} -impl IFabricPartitionRestartProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionRestartProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricPartitionRestartProgressResult_Vtbl { - unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPartitionRestartProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Progress() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Progress: get_Progress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyBatchResult_Impl: Sized { - fn GetProperty( - &self, - operationindexinrequest: u32, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricPropertyBatchResult {} -impl IFabricPropertyBatchResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyBatchResult_Impl, - const OFFSET: isize, - >() -> IFabricPropertyBatchResult_Vtbl { - unsafe extern "system" fn GetProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyBatchResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationindexinrequest: u32, - property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetProperty(::core::mem::transmute_copy(&operationindexinrequest)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(property, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetProperty: GetProperty::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyEnumerationResult_Impl: Sized { - fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; - fn get_PropertyCount(&self) -> u32; - fn GetProperty(&self, index: u32) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricPropertyEnumerationResult {} -impl IFabricPropertyEnumerationResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyEnumerationResult_Impl, - const OFFSET: isize, - >() -> IFabricPropertyEnumerationResult_Vtbl { - unsafe extern "system" fn get_EnumerationStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyEnumerationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ENUMERATION_STATUS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_EnumerationStatus() - } - unsafe extern "system" fn get_PropertyCount< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyEnumerationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> u32 { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_PropertyCount() - } - unsafe extern "system" fn GetProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyEnumerationResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - index: u32, - property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetProperty(::core::mem::transmute_copy(&index)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(property, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_EnumerationStatus: get_EnumerationStatus::, - get_PropertyCount: get_PropertyCount::, - GetProperty: GetProperty::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyManagementClient_Impl: Sized { - fn BeginCreateName( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateName( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteName( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteName( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginNameExists( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndNameExists( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginEnumerateSubNames( - &self, - name: *const u16, - previousresult: &::core::option::Option, - recursive: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndEnumerateSubNames( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginPutPropertyBinary( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - datalength: u32, - data: *const u8, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutPropertyBinary( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginPutPropertyInt64( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: i64, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutPropertyInt64( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginPutPropertyDouble( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: f64, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutPropertyDouble( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginPutPropertyWString( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutPropertyWString( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginPutPropertyGuid( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutPropertyGuid( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteProperty( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteProperty( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetPropertyMetadata( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPropertyMetadata( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetProperty( - &self, - name: *const u16, - propertyname: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetProperty( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginSubmitPropertyBatch( - &self, - name: *const u16, - operationcount: u32, - operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndSubmitPropertyBatch( - &self, - context: &::core::option::Option, - failedoperationindexinrequest: *mut u32, - result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginEnumerateProperties( - &self, - name: *const u16, - includevalues: ::windows::Win32::Foundation::BOOLEAN, - previousresult: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndEnumerateProperties( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricPropertyManagementClient {} -impl IFabricPropertyManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricPropertyManagementClient_Vtbl { - unsafe extern "system" fn BeginCreateName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateName( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateName(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginDeleteName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteName( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteName(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginNameExists< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginNameExists( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndNameExists< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - value: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndNameExists(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginEnumerateSubNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - previousresult: *mut ::core::ffi::c_void, - recursive: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginEnumerateSubNames( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&previousresult), - ::core::mem::transmute_copy(&recursive), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndEnumerateSubNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndEnumerateSubNames(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginPutPropertyBinary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - datalength: u32, - data: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutPropertyBinary( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&datalength), - ::core::mem::transmute_copy(&data), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutPropertyBinary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutPropertyBinary(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginPutPropertyInt64< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: i64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutPropertyInt64( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&data), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutPropertyInt64< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutPropertyInt64(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginPutPropertyDouble< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: f64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutPropertyDouble( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&data), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutPropertyDouble< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutPropertyDouble(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginPutPropertyWString< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutPropertyWString( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute(&data), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutPropertyWString< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutPropertyWString(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginPutPropertyGuid< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutPropertyGuid( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&data), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutPropertyGuid< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutPropertyGuid(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeleteProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteProperty( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteProperty(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetPropertyMetadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPropertyMetadata( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPropertyMetadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPropertyMetadata(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetProperty( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&propertyname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetProperty< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetProperty(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginSubmitPropertyBatch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - operationcount: u32, - operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginSubmitPropertyBatch( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&operationcount), - ::core::mem::transmute_copy(&operations), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndSubmitPropertyBatch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - failedoperationindexinrequest: *mut u32, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndSubmitPropertyBatch( - ::core::mem::transmute(&context), - ::core::mem::transmute_copy(&failedoperationindexinrequest), - ::core::mem::transmute_copy(&result), - ) - .into() - } - unsafe extern "system" fn BeginEnumerateProperties< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - includevalues: ::windows::Win32::Foundation::BOOLEAN, - previousresult: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginEnumerateProperties( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&includevalues), - ::core::mem::transmute(&previousresult), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndEnumerateProperties< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndEnumerateProperties(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginCreateName: BeginCreateName::, - EndCreateName: EndCreateName::, - BeginDeleteName: BeginDeleteName::, - EndDeleteName: EndDeleteName::, - BeginNameExists: BeginNameExists::, - EndNameExists: EndNameExists::, - BeginEnumerateSubNames: BeginEnumerateSubNames::, - EndEnumerateSubNames: EndEnumerateSubNames::, - BeginPutPropertyBinary: BeginPutPropertyBinary::, - EndPutPropertyBinary: EndPutPropertyBinary::, - BeginPutPropertyInt64: BeginPutPropertyInt64::, - EndPutPropertyInt64: EndPutPropertyInt64::, - BeginPutPropertyDouble: BeginPutPropertyDouble::, - EndPutPropertyDouble: EndPutPropertyDouble::, - BeginPutPropertyWString: BeginPutPropertyWString::, - EndPutPropertyWString: EndPutPropertyWString::, - BeginPutPropertyGuid: BeginPutPropertyGuid::, - EndPutPropertyGuid: EndPutPropertyGuid::, - BeginDeleteProperty: BeginDeleteProperty::, - EndDeleteProperty: EndDeleteProperty::, - BeginGetPropertyMetadata: BeginGetPropertyMetadata::, - EndGetPropertyMetadata: EndGetPropertyMetadata::, - BeginGetProperty: BeginGetProperty::, - EndGetProperty: EndGetProperty::, - BeginSubmitPropertyBatch: BeginSubmitPropertyBatch::, - EndSubmitPropertyBatch: EndSubmitPropertyBatch::, - BeginEnumerateProperties: BeginEnumerateProperties::, - EndEnumerateProperties: EndEnumerateProperties::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyManagementClient2_Impl: - Sized + IFabricPropertyManagementClient_Impl -{ - fn BeginPutCustomPropertyOperation( - &self, - name: *const u16, - propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPutCustomPropertyOperation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricPropertyManagementClient2 {} -impl IFabricPropertyManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricPropertyManagementClient2_Vtbl { - unsafe extern "system" fn BeginPutCustomPropertyOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPutCustomPropertyOperation( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&propertyoperation), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPutCustomPropertyOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndPutCustomPropertyOperation(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricPropertyManagementClient_Vtbl::new::(), - BeginPutCustomPropertyOperation: BeginPutCustomPropertyOperation::< - Identity, - Impl, - OFFSET, - >, - EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricPropertyMetadataResult_Impl: Sized { - fn get_Metadata(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA; -} -impl ::windows::core::RuntimeName for IFabricPropertyMetadataResult {} -impl IFabricPropertyMetadataResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyMetadataResult_Impl, - const OFFSET: isize, - >() -> IFabricPropertyMetadataResult_Vtbl { - unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyMetadataResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Metadata() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Metadata: get_Metadata::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricPropertyValueResult_Impl: Sized { - fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY; - fn GetValueAsBinary( - &self, - bytecount: *mut u32, - bufferedvalue: *mut *mut u8, - ) -> ::windows::core::Result<()>; - fn GetValueAsInt64(&self) -> ::windows::core::Result; - fn GetValueAsDouble(&self) -> ::windows::core::Result; - fn GetValueAsWString(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetValueAsGuid(&self) -> ::windows::core::Result<::windows::core::GUID>; -} -impl ::windows::core::RuntimeName for IFabricPropertyValueResult {} -impl IFabricPropertyValueResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >() -> IFabricPropertyValueResult_Vtbl { - unsafe extern "system" fn get_Property< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NAMED_PROPERTY { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Property() - } - unsafe extern "system" fn GetValueAsBinary< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - bytecount: *mut u32, - bufferedvalue: *mut *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetValueAsBinary( - ::core::mem::transmute_copy(&bytecount), - ::core::mem::transmute_copy(&bufferedvalue), - ) - .into() - } - unsafe extern "system" fn GetValueAsInt64< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - value: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetValueAsInt64() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetValueAsDouble< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - value: *mut f64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetValueAsDouble() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetValueAsWString< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetValueAsWString() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetValueAsGuid< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPropertyValueResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - value: *mut ::windows::core::GUID, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetValueAsGuid() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Property: get_Property::, - GetValueAsBinary: GetValueAsBinary::, - GetValueAsInt64: GetValueAsInt64::, - GetValueAsDouble: GetValueAsDouble::, - GetValueAsWString: GetValueAsWString::, - GetValueAsGuid: GetValueAsGuid::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricQueryClient_Impl: Sized { - fn BeginGetNodeList( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNodeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationTypeList( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationTypeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetServiceTypeList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceTypeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationList( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetServiceList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetPartitionList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetReplicaList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetReplicaList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedApplicationList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedApplicationList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedServicePackageList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedServicePackageList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedServiceTypeList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedServiceTypeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedCodePackageList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedCodePackageList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetDeployedReplicaList( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedReplicaList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient {} -impl IFabricQueryClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient_Vtbl { - unsafe extern "system" fn BeginGetNodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNodeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNodeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationTypeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationTypeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceTypeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceTypeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetServiceList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetPartitionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetReplicaList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetReplicaList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedApplicationList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedApplicationList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedServicePackageList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedServiceTypeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedServiceTypeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedCodePackageList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedCodePackageList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetDeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedReplicaList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedReplicaList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginGetNodeList: BeginGetNodeList::, - EndGetNodeList: EndGetNodeList::, - BeginGetApplicationTypeList: BeginGetApplicationTypeList::, - EndGetApplicationTypeList: EndGetApplicationTypeList::, - BeginGetServiceTypeList: BeginGetServiceTypeList::, - EndGetServiceTypeList: EndGetServiceTypeList::, - BeginGetApplicationList: BeginGetApplicationList::, - EndGetApplicationList: EndGetApplicationList::, - BeginGetServiceList: BeginGetServiceList::, - EndGetServiceList: EndGetServiceList::, - BeginGetPartitionList: BeginGetPartitionList::, - EndGetPartitionList: EndGetPartitionList::, - BeginGetReplicaList: BeginGetReplicaList::, - EndGetReplicaList: EndGetReplicaList::, - BeginGetDeployedApplicationList: BeginGetDeployedApplicationList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedApplicationList: EndGetDeployedApplicationList::, - BeginGetDeployedServicePackageList: BeginGetDeployedServicePackageList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedServicePackageList: EndGetDeployedServicePackageList::< - Identity, - Impl, - OFFSET, - >, - BeginGetDeployedServiceTypeList: BeginGetDeployedServiceTypeList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedServiceTypeList: EndGetDeployedServiceTypeList::, - BeginGetDeployedCodePackageList: BeginGetDeployedCodePackageList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedCodePackageList: EndGetDeployedCodePackageList::, - BeginGetDeployedReplicaList: BeginGetDeployedReplicaList::, - EndGetDeployedReplicaList: EndGetDeployedReplicaList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricQueryClient10_Impl: Sized + IFabricQueryClient9_Impl { - fn BeginGetDeployedApplicationPagedList( - &self, - querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedApplicationPagedList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient10 {} -impl IFabricQueryClient10_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient10_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient10_Vtbl { - unsafe extern "system" fn BeginGetDeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedApplicationPagedList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient10_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedApplicationPagedList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient9_Vtbl::new::(), - BeginGetDeployedApplicationPagedList: BeginGetDeployedApplicationPagedList::< - Identity, - Impl, - OFFSET, - >, - EndGetDeployedApplicationPagedList: EndGetDeployedApplicationPagedList::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient2_Impl: Sized + IFabricQueryClient_Impl { - fn BeginGetDeployedReplicaDetail( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetDeployedReplicaDetail( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetClusterLoadInformation( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetClusterLoadInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetPartitionLoadInformation( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionLoadInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetProvisionedFabricCodeVersionList( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetProvisionedFabricCodeVersionList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetProvisionedFabricConfigVersionList( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetProvisionedFabricConfigVersionList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient2 {} -impl IFabricQueryClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient2_Vtbl { - unsafe extern "system" fn BeginGetDeployedReplicaDetail< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetDeployedReplicaDetail( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetDeployedReplicaDetail< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetDeployedReplicaDetail(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetClusterLoadInformation( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetClusterLoadInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetPartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionLoadInformation( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionLoadInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetProvisionedFabricCodeVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetProvisionedFabricCodeVersionList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetProvisionedFabricCodeVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetProvisionedFabricCodeVersionList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetProvisionedFabricConfigVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetProvisionedFabricConfigVersionList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetProvisionedFabricConfigVersionList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetProvisionedFabricConfigVersionList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient_Vtbl::new::(), - BeginGetDeployedReplicaDetail: BeginGetDeployedReplicaDetail::, - EndGetDeployedReplicaDetail: EndGetDeployedReplicaDetail::, - BeginGetClusterLoadInformation: BeginGetClusterLoadInformation::, - EndGetClusterLoadInformation: EndGetClusterLoadInformation::, - BeginGetPartitionLoadInformation: BeginGetPartitionLoadInformation::< - Identity, - Impl, - OFFSET, - >, - EndGetPartitionLoadInformation: EndGetPartitionLoadInformation::, - BeginGetProvisionedFabricCodeVersionList: BeginGetProvisionedFabricCodeVersionList::< - Identity, - Impl, - OFFSET, - >, - EndGetProvisionedFabricCodeVersionList: EndGetProvisionedFabricCodeVersionList::< - Identity, - Impl, - OFFSET, - >, - BeginGetProvisionedFabricConfigVersionList: BeginGetProvisionedFabricConfigVersionList::< - Identity, - Impl, - OFFSET, - >, - EndGetProvisionedFabricConfigVersionList: EndGetProvisionedFabricConfigVersionList::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient3_Impl: Sized + IFabricQueryClient2_Impl { - fn BeginGetNodeLoadInformation( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNodeLoadInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetReplicaLoadInformation( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetReplicaLoadInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient3 {} -impl IFabricQueryClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient3_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient3_Vtbl { - unsafe extern "system" fn BeginGetNodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNodeLoadInformation( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeLoadInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetReplicaLoadInformation( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetReplicaLoadInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient2_Vtbl::new::(), - BeginGetNodeLoadInformation: BeginGetNodeLoadInformation::, - EndGetNodeLoadInformation: EndGetNodeLoadInformation::, - BeginGetReplicaLoadInformation: BeginGetReplicaLoadInformation::, - EndGetReplicaLoadInformation: EndGetReplicaLoadInformation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient4_Impl: Sized + IFabricQueryClient3_Impl { - fn BeginGetServiceGroupMemberList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceGroupMemberList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetServiceGroupMemberTypeList( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceGroupMemberTypeList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient4 {} -impl IFabricQueryClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient4_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient4_Vtbl { - unsafe extern "system" fn BeginGetServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceGroupMemberList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceGroupMemberList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceGroupMemberTypeList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceGroupMemberTypeList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient3_Vtbl::new::(), - BeginGetServiceGroupMemberList: BeginGetServiceGroupMemberList::, - EndGetServiceGroupMemberList: EndGetServiceGroupMemberList::, - BeginGetServiceGroupMemberTypeList: BeginGetServiceGroupMemberTypeList::< - Identity, - Impl, - OFFSET, - >, - EndGetServiceGroupMemberTypeList: EndGetServiceGroupMemberTypeList::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient5_Impl: Sized + IFabricQueryClient4_Impl { - fn BeginGetUnplacedReplicaInformation( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetUnplacedReplicaInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient5 {} -impl IFabricQueryClient5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient5_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient5_Vtbl { - unsafe extern "system" fn BeginGetUnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetUnplacedReplicaInformation( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetUnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetUnplacedReplicaInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient4_Vtbl::new::(), - BeginGetUnplacedReplicaInformation: BeginGetUnplacedReplicaInformation::< - Identity, - Impl, - OFFSET, - >, - EndGetUnplacedReplicaInformation: EndGetUnplacedReplicaInformation::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient6_Impl: Sized + IFabricQueryClient5_Impl { - fn EndGetNodeList2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationList2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceList2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionList2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetReplicaList2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient6 {} -impl IFabricQueryClient6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient6_Vtbl { - unsafe extern "system" fn EndGetNodeList2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeList2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationList2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationList2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceList2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceList2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionList2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionList2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetReplicaList2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetReplicaList2(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient5_Vtbl::new::(), - EndGetNodeList2: EndGetNodeList2::, - EndGetApplicationList2: EndGetApplicationList2::, - EndGetServiceList2: EndGetServiceList2::, - EndGetPartitionList2: EndGetPartitionList2::, - EndGetReplicaList2: EndGetReplicaList2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient7_Impl: Sized + IFabricQueryClient6_Impl { - fn BeginGetApplicationLoadInformation( - &self, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationLoadInformation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient7 {} -impl IFabricQueryClient7_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient7_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient7_Vtbl { - unsafe extern "system" fn BeginGetApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationLoadInformation( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient7_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationLoadInformation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient6_Vtbl::new::(), - BeginGetApplicationLoadInformation: BeginGetApplicationLoadInformation::< - Identity, - Impl, - OFFSET, - >, - EndGetApplicationLoadInformation: EndGetApplicationLoadInformation::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient8_Impl: Sized + IFabricQueryClient7_Impl { - fn BeginGetServiceName( - &self, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceName( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetApplicationName( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationName( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient8 {} -impl IFabricQueryClient8_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient8_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient8_Vtbl { - unsafe extern "system" fn BeginGetServiceName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceName( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceName(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetApplicationName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationName( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient8_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationName(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient7_Vtbl::new::(), - BeginGetServiceName: BeginGetServiceName::, - EndGetServiceName: EndGetServiceName::, - BeginGetApplicationName: BeginGetApplicationName::, - EndGetApplicationName: EndGetApplicationName::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricQueryClient9_Impl: Sized + IFabricQueryClient8_Impl { - fn BeginGetApplicationTypePagedList( - &self, - querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetApplicationTypePagedList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricQueryClient9 {} -impl IFabricQueryClient9_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient9_Impl, - const OFFSET: isize, - >() -> IFabricQueryClient9_Vtbl { - unsafe extern "system" fn BeginGetApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetApplicationTypePagedList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricQueryClient9_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetApplicationTypePagedList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricQueryClient8_Vtbl::new::(), - BeginGetApplicationTypePagedList: BeginGetApplicationTypePagedList::< - Identity, - Impl, - OFFSET, - >, - EndGetApplicationTypePagedList: EndGetApplicationTypePagedList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricRepairManagementClient_Impl: Sized { - fn BeginCreateRepairTask( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateRepairTask( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginCancelRepairTask( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCancelRepairTask( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginForceApproveRepairTask( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndForceApproveRepairTask( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginDeleteRepairTask( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteRepairTask( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUpdateRepairExecutionState( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateRepairExecutionState( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetRepairTaskList( - &self, - querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetRepairTaskList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricRepairManagementClient {} -impl IFabricRepairManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricRepairManagementClient_Vtbl { - unsafe extern "system" fn BeginCreateRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateRepairTask( - ::core::mem::transmute_copy(&repairtask), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndCreateRepairTask(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginCancelRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCancelRepairTask( - ::core::mem::transmute_copy(&requestdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCancelRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndCancelRepairTask(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginForceApproveRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginForceApproveRepairTask( - ::core::mem::transmute_copy(&requestdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndForceApproveRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndForceApproveRepairTask(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginDeleteRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteRepairTask( - ::core::mem::transmute_copy(&requestdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteRepairTask< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteRepairTask(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUpdateRepairExecutionState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateRepairExecutionState( - ::core::mem::transmute_copy(&repairtask), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateRepairExecutionState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndUpdateRepairExecutionState(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetRepairTaskList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetRepairTaskList( - ::core::mem::transmute_copy(&querydescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetRepairTaskList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetRepairTaskList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginCreateRepairTask: BeginCreateRepairTask::, - EndCreateRepairTask: EndCreateRepairTask::, - BeginCancelRepairTask: BeginCancelRepairTask::, - EndCancelRepairTask: EndCancelRepairTask::, - BeginForceApproveRepairTask: BeginForceApproveRepairTask::, - EndForceApproveRepairTask: EndForceApproveRepairTask::, - BeginDeleteRepairTask: BeginDeleteRepairTask::, - EndDeleteRepairTask: EndDeleteRepairTask::, - BeginUpdateRepairExecutionState: BeginUpdateRepairExecutionState::< - Identity, - Impl, - OFFSET, - >, - EndUpdateRepairExecutionState: EndUpdateRepairExecutionState::, - BeginGetRepairTaskList: BeginGetRepairTaskList::, - EndGetRepairTaskList: EndGetRepairTaskList::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricRepairManagementClient2_Impl: Sized + IFabricRepairManagementClient_Impl { - fn BeginUpdateRepairTaskHealthPolicy( - &self, - updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateRepairTaskHealthPolicy( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricRepairManagementClient2 {} -impl IFabricRepairManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricRepairManagementClient2_Vtbl { - unsafe extern "system" fn BeginUpdateRepairTaskHealthPolicy< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - updatedescription : *const super::super:: FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateRepairTaskHealthPolicy( - ::core::mem::transmute_copy(&updatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateRepairTaskHealthPolicy< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRepairManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndUpdateRepairTaskHealthPolicy(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricRepairManagementClient_Vtbl::new::(), - BeginUpdateRepairTaskHealthPolicy: BeginUpdateRepairTaskHealthPolicy::< - Identity, - Impl, - OFFSET, - >, - EndUpdateRepairTaskHealthPolicy: EndUpdateRepairTaskHealthPolicy::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricReplicaHealthResult_Impl: Sized { - fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricReplicaHealthResult {} -impl IFabricReplicaHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicaHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricReplicaHealthResult_Vtbl { - unsafe extern "system" fn get_ReplicaHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicaHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPLICA_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicaHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicaHealth: get_ReplicaHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricResolvedServicePartitionResult_Impl: Sized { - fn get_Partition(&self) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION; - fn GetEndpoint( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>; - fn CompareVersion( - &self, - other: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricResolvedServicePartitionResult {} -impl IFabricResolvedServicePartitionResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricResolvedServicePartitionResult_Impl, - const OFFSET: isize, - >() -> IFabricResolvedServicePartitionResult_Vtbl { - unsafe extern "system" fn get_Partition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricResolvedServicePartitionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Partition() - } - unsafe extern "system" fn GetEndpoint< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricResolvedServicePartitionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - endpoint: *mut *mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetEndpoint() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(endpoint, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn CompareVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricResolvedServicePartitionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - other: *mut ::core::ffi::c_void, - compareresult: *mut i32, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CompareVersion(::core::mem::transmute(&other)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Partition: get_Partition::, - GetEndpoint: GetEndpoint::, - CompareVersion: CompareVersion::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricRestartDeployedCodePackageResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT; -} -impl ::windows::core::RuntimeName for IFabricRestartDeployedCodePackageResult {} -impl IFabricRestartDeployedCodePackageResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRestartDeployedCodePackageResult_Impl, - const OFFSET: isize, - >() -> IFabricRestartDeployedCodePackageResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRestartDeployedCodePackageResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricRestartNodeResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; -} -impl ::windows::core::RuntimeName for IFabricRestartNodeResult {} -impl IFabricRestartNodeResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRestartNodeResult_Impl, - const OFFSET: isize, - >() -> IFabricRestartNodeResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRestartNodeResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricSecretReferencesResult_Impl: Sized { - fn get_SecretReferences(&self) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST; -} -impl ::windows::core::RuntimeName for IFabricSecretReferencesResult {} -impl IFabricSecretReferencesResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretReferencesResult_Impl, - const OFFSET: isize, - >() -> IFabricSecretReferencesResult_Vtbl { - unsafe extern "system" fn get_SecretReferences< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretReferencesResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_SecretReferences() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_SecretReferences: get_SecretReferences::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricSecretStoreClient_Impl: Sized { - fn BeginGetSecrets( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - includevalue: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetSecrets( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginSetSecrets( - &self, - secrets: *const super::super::FABRIC_SECRET_LIST, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndSetSecrets( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginRemoveSecrets( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRemoveSecrets( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetSecretVersions( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetSecretVersions( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricSecretStoreClient {} -impl IFabricSecretStoreClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >() -> IFabricSecretStoreClient_Vtbl { - unsafe extern "system" fn BeginGetSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - includevalue: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetSecrets( - ::core::mem::transmute_copy(&secretreferences), - ::core::mem::transmute_copy(&includevalue), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetSecrets(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginSetSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - secrets: *const super::super::FABRIC_SECRET_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginSetSecrets( - ::core::mem::transmute_copy(&secrets), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndSetSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndSetSecrets(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginRemoveSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRemoveSecrets( - ::core::mem::transmute_copy(&secretreferences), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRemoveSecrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndRemoveSecrets(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetSecretVersions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetSecretVersions( - ::core::mem::transmute_copy(&secretreferences), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetSecretVersions< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretStoreClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetSecretVersions(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginGetSecrets: BeginGetSecrets::, - EndGetSecrets: EndGetSecrets::, - BeginSetSecrets: BeginSetSecrets::, - EndSetSecrets: EndSetSecrets::, - BeginRemoveSecrets: BeginRemoveSecrets::, - EndRemoveSecrets: EndRemoveSecrets::, - BeginGetSecretVersions: BeginGetSecretVersions::, - EndGetSecretVersions: EndGetSecretVersions::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricSecretsResult_Impl: Sized { - fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST; -} -impl ::windows::core::RuntimeName for IFabricSecretsResult {} -impl IFabricSecretsResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretsResult_Impl, - const OFFSET: isize, - >() -> IFabricSecretsResult_Vtbl { - unsafe extern "system" fn get_Secrets< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecretsResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECRET_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Secrets() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Secrets: get_Secrets::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceDescriptionResult_Impl: Sized { - fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION; -} -impl ::windows::core::RuntimeName for IFabricServiceDescriptionResult {} -impl IFabricServiceDescriptionResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceDescriptionResult_Impl, - const OFFSET: isize, - >() -> IFabricServiceDescriptionResult_Vtbl { - unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceDescriptionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Description() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceEndpointsVersion_Impl: Sized { - fn Compare( - &self, - other: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricServiceEndpointsVersion {} -impl IFabricServiceEndpointsVersion_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceEndpointsVersion_Impl, - const OFFSET: isize, - >() -> IFabricServiceEndpointsVersion_Vtbl { - unsafe extern "system" fn Compare< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceEndpointsVersion_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - other: *mut ::core::ffi::c_void, - compareresult: *mut i32, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Compare(::core::mem::transmute(&other)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - Compare: Compare::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupDescriptionResult_Impl: Sized { - fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupDescriptionResult {} -impl IFabricServiceGroupDescriptionResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupDescriptionResult_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupDescriptionResult_Vtbl { - unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupDescriptionResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Description() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupManagementClient_Impl: Sized { - fn BeginCreateServiceGroup( - &self, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateServiceGroup( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteServiceGroup( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteServiceGroup( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetServiceGroupDescription( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceGroupDescription( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient {} -impl IFabricServiceGroupManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupManagementClient_Vtbl { - unsafe extern "system" fn BeginCreateServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateServiceGroup( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateServiceGroup(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeleteServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteServiceGroup( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteServiceGroup(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetServiceGroupDescription< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceGroupDescription( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceGroupDescription< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceGroupDescription(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginCreateServiceGroup: BeginCreateServiceGroup::, - EndCreateServiceGroup: EndCreateServiceGroup::, - BeginDeleteServiceGroup: BeginDeleteServiceGroup::, - EndDeleteServiceGroup: EndDeleteServiceGroup::, - BeginGetServiceGroupDescription: BeginGetServiceGroupDescription::< - Identity, - Impl, - OFFSET, - >, - EndGetServiceGroupDescription: EndGetServiceGroupDescription::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupManagementClient2_Impl: - Sized + IFabricServiceGroupManagementClient_Impl -{ - fn BeginUpdateServiceGroup( - &self, - name: *const u16, - servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateServiceGroup( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient2 {} -impl IFabricServiceGroupManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupManagementClient2_Vtbl { - unsafe extern "system" fn BeginUpdateServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - servicegroupupdatedescription : *const super::super:: FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateServiceGroup( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&servicegroupupdatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateServiceGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateServiceGroup(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceGroupManagementClient_Vtbl::new::(), - BeginUpdateServiceGroup: BeginUpdateServiceGroup::, - EndUpdateServiceGroup: EndUpdateServiceGroup::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceGroupManagementClient3_Impl: - Sized + IFabricServiceGroupManagementClient2_Impl -{ - fn BeginCreateServiceGroupFromTemplate( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: &::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateServiceGroupFromTemplate( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient3 {} -impl IFabricServiceGroupManagementClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient3_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupManagementClient3_Vtbl { - unsafe extern "system" fn BeginCreateServiceGroupFromTemplate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateServiceGroupFromTemplate( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute_copy(&initializationdatasize), - ::core::mem::transmute_copy(&initializationdata), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateServiceGroupFromTemplate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateServiceGroupFromTemplate(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceGroupManagementClient2_Vtbl::new::(), - BeginCreateServiceGroupFromTemplate: BeginCreateServiceGroupFromTemplate::< - Identity, - Impl, - OFFSET, - >, - EndCreateServiceGroupFromTemplate: EndCreateServiceGroupFromTemplate::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceGroupManagementClient4_Impl: - Sized + IFabricServiceGroupManagementClient3_Impl -{ - fn BeginCreateServiceGroupFromTemplate2( - &self, - servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateServiceGroupFromTemplate2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient4 {} -impl IFabricServiceGroupManagementClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient4_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupManagementClient4_Vtbl { - unsafe extern "system" fn BeginCreateServiceGroupFromTemplate2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateServiceGroupFromTemplate2( - ::core::mem::transmute_copy(&servicegroupfromtemplatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateServiceGroupFromTemplate2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateServiceGroupFromTemplate2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceGroupManagementClient3_Vtbl::new::(), - BeginCreateServiceGroupFromTemplate2: BeginCreateServiceGroupFromTemplate2::< - Identity, - Impl, - OFFSET, - >, - EndCreateServiceGroupFromTemplate2: EndCreateServiceGroupFromTemplate2::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceHealthResult_Impl: Sized { - fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH; -} -impl ::windows::core::RuntimeName for IFabricServiceHealthResult {} -impl IFabricServiceHealthResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceHealthResult_Impl, - const OFFSET: isize, - >() -> IFabricServiceHealthResult_Vtbl { - unsafe extern "system" fn get_ServiceHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceHealthResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_HEALTH { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceHealth() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ServiceHealth: get_ServiceHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceManagementClient_Impl: Sized { - fn BeginCreateService( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateService( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginCreateServiceFromTemplate( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: &::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateServiceFromTemplate( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeleteService( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteService( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetServiceDescription( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceDescription( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn RegisterServicePartitionResolutionChangeHandler( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; - fn BeginResolveServicePartition( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndResolveServicePartition( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient {} -impl IFabricServiceManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient_Vtbl { - unsafe extern "system" fn BeginCreateService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateService( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateService(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginCreateServiceFromTemplate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateServiceFromTemplate( - ::core::mem::transmute_copy(&applicationname), - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute_copy(&initializationdatasize), - ::core::mem::transmute_copy(&initializationdata), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateServiceFromTemplate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateServiceFromTemplate(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeleteService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteService( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteService(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetServiceDescription< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceDescription( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceDescription< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceDescription(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RegisterServicePartitionResolutionChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RegisterServicePartitionResolutionChangeHandler( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&keytype), - ::core::mem::transmute_copy(&partitionkey), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UnregisterServicePartitionResolutionChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterServicePartitionResolutionChangeHandler(::core::mem::transmute_copy( - &callbackhandle, - )) - .into() - } - unsafe extern "system" fn BeginResolveServicePartition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginResolveServicePartition( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&partitionkeytype), - ::core::mem::transmute_copy(&partitionkey), - ::core::mem::transmute(&previousresult), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndResolveServicePartition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndResolveServicePartition(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginCreateService: BeginCreateService::, - EndCreateService: EndCreateService::, - BeginCreateServiceFromTemplate: BeginCreateServiceFromTemplate::, - EndCreateServiceFromTemplate: EndCreateServiceFromTemplate::, - BeginDeleteService: BeginDeleteService::, - EndDeleteService: EndDeleteService::, - BeginGetServiceDescription: BeginGetServiceDescription::, - EndGetServiceDescription: EndGetServiceDescription::, - RegisterServicePartitionResolutionChangeHandler: - RegisterServicePartitionResolutionChangeHandler::, - UnregisterServicePartitionResolutionChangeHandler: - UnregisterServicePartitionResolutionChangeHandler::, - BeginResolveServicePartition: BeginResolveServicePartition::, - EndResolveServicePartition: EndResolveServicePartition::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceManagementClient2_Impl: - Sized + IFabricServiceManagementClient_Impl -{ - fn BeginGetServiceManifest( - &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - servicemanifestname: &::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetServiceManifest( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginUpdateService( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateService( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient2 {} -impl IFabricServiceManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient2_Vtbl { - unsafe extern "system" fn BeginGetServiceManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetServiceManifest( - ::core::mem::transmute(&applicationtypename), - ::core::mem::transmute(&applicationtypeversion), - ::core::mem::transmute(&servicemanifestname), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetServiceManifest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetServiceManifest(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginUpdateService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateService( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&serviceupdatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateService< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateService(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceManagementClient_Vtbl::new::(), - BeginGetServiceManifest: BeginGetServiceManifest::, - EndGetServiceManifest: EndGetServiceManifest::, - BeginUpdateService: BeginUpdateService::, - EndUpdateService: EndUpdateService::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceManagementClient3_Impl: - Sized + IFabricServiceManagementClient2_Impl -{ - fn BeginRemoveReplica( - &self, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRemoveReplica( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRestartReplica( - &self, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestartReplica( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient3 {} -impl IFabricServiceManagementClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient3_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient3_Vtbl { - unsafe extern "system" fn BeginRemoveReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRemoveReplica( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRemoveReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRemoveReplica(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginRestartReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestartReplica( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestartReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRestartReplica(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceManagementClient2_Vtbl::new::(), - BeginRemoveReplica: BeginRemoveReplica::, - EndRemoveReplica: EndRemoveReplica::, - BeginRestartReplica: BeginRestartReplica::, - EndRestartReplica: EndRestartReplica::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceManagementClient4_Impl: - Sized + IFabricServiceManagementClient3_Impl -{ - fn BeginRegisterServiceNotificationFilter( - &self, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRegisterServiceNotificationFilter( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginUnregisterServiceNotificationFilter( - &self, - filterid: i64, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUnregisterServiceNotificationFilter( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient4 {} -impl IFabricServiceManagementClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient4_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient4_Vtbl { - unsafe extern "system" fn BeginRegisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRegisterServiceNotificationFilter( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRegisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - filterid: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndRegisterServiceNotificationFilter(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(filterid, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginUnregisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - filterid: i64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUnregisterServiceNotificationFilter( - ::core::mem::transmute_copy(&filterid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUnregisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUnregisterServiceNotificationFilter(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceManagementClient3_Vtbl::new::(), - BeginRegisterServiceNotificationFilter: BeginRegisterServiceNotificationFilter::< - Identity, - Impl, - OFFSET, - >, - EndRegisterServiceNotificationFilter: EndRegisterServiceNotificationFilter::< - Identity, - Impl, - OFFSET, - >, - BeginUnregisterServiceNotificationFilter: BeginUnregisterServiceNotificationFilter::< - Identity, - Impl, - OFFSET, - >, - EndUnregisterServiceNotificationFilter: EndUnregisterServiceNotificationFilter::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceManagementClient5_Impl: - Sized + IFabricServiceManagementClient4_Impl -{ - fn BeginDeleteService2( - &self, - deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeleteService2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient5 {} -impl IFabricServiceManagementClient5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient5_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient5_Vtbl { - unsafe extern "system" fn BeginDeleteService2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeleteService2( - ::core::mem::transmute_copy(&deletedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeleteService2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeleteService2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceManagementClient4_Vtbl::new::(), - BeginDeleteService2: BeginDeleteService2::, - EndDeleteService2: EndDeleteService2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceManagementClient6_Impl: - Sized + IFabricServiceManagementClient5_Impl -{ - fn BeginCreateServiceFromTemplate2( - &self, - servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCreateServiceFromTemplate2( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceManagementClient6 {} -impl IFabricServiceManagementClient6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient6_Impl, - const OFFSET: isize, - >() -> IFabricServiceManagementClient6_Vtbl { - unsafe extern "system" fn BeginCreateServiceFromTemplate2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCreateServiceFromTemplate2( - ::core::mem::transmute_copy(&servicefromtemplatedescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCreateServiceFromTemplate2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceManagementClient6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCreateServiceFromTemplate2(::core::mem::transmute(&context)) - .into() - } - Self { - base__: IFabricServiceManagementClient5_Vtbl::new::(), - BeginCreateServiceFromTemplate2: BeginCreateServiceFromTemplate2::< - Identity, - Impl, - OFFSET, - >, - EndCreateServiceFromTemplate2: EndCreateServiceFromTemplate2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricServiceNotification_Impl: Sized { - fn get_Notification(&self) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION; - fn GetVersion(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricServiceNotification {} -impl IFabricServiceNotification_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceNotification_Impl, - const OFFSET: isize, - >() -> IFabricServiceNotification_Vtbl { - unsafe extern "system" fn get_Notification< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceNotification_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Notification() - } - unsafe extern "system" fn GetVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceNotification_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetVersion() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Notification: get_Notification::, - GetVersion: GetVersion::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceNotificationEventHandler_Impl: Sized { - fn OnNotification( - &self, - __midl__ifabricservicenotificationeventhandler0000: &::core::option::Option< - IFabricServiceNotification, - >, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricServiceNotificationEventHandler {} -impl IFabricServiceNotificationEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceNotificationEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricServiceNotificationEventHandler_Vtbl { - unsafe extern "system" fn OnNotification< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceNotificationEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - __midl__ifabricservicenotificationeventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnNotification(::core::mem::transmute( - &__midl__ifabricservicenotificationeventhandler0000, - )) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnNotification: OnNotification::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServicePartitionResolutionChangeHandler_Impl: Sized { - fn OnChange( - &self, - source: &::core::option::Option, - handlerid: i64, - partition: &::core::option::Option, - error: ::windows::core::HRESULT, - ); -} -impl ::windows::core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} -impl IFabricServicePartitionResolutionChangeHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServicePartitionResolutionChangeHandler_Impl, - const OFFSET: isize, - >() -> IFabricServicePartitionResolutionChangeHandler_Vtbl { - unsafe extern "system" fn OnChange< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServicePartitionResolutionChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - handlerid: i64, - partition: *mut ::core::ffi::c_void, - error: ::windows::core::HRESULT, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnChange( - ::core::mem::transmute(&source), - ::core::mem::transmute_copy(&handlerid), - ::core::mem::transmute(&partition), - ::core::mem::transmute_copy(&error), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnChange: OnChange::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStartNodeResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; -} -impl ::windows::core::RuntimeName for IFabricStartNodeResult {} -impl IFabricStartNodeResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStartNodeResult_Impl, - const OFFSET: isize, - >() -> IFabricStartNodeResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStartNodeResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStopNodeResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; -} -impl ::windows::core::RuntimeName for IFabricStopNodeResult {} -impl IFabricStopNodeResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStopNodeResult_Impl, - const OFFSET: isize, - >() -> IFabricStopNodeResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStopNodeResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTestCommandStatusResult_Impl: Sized { - fn get_Result(&self) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST; -} -impl ::windows::core::RuntimeName for IFabricTestCommandStatusResult {} -impl IFabricTestCommandStatusResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestCommandStatusResult_Impl, - const OFFSET: isize, - >() -> IFabricTestCommandStatusResult_Vtbl { - unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestCommandStatusResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Result() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Result: get_Result::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTestManagementClient_Impl: Sized { - fn BeginStartPartitionDataLoss( - &self, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartPartitionDataLoss( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetPartitionDataLossProgress( - &self, - operationid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionDataLossProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginStartPartitionQuorumLoss( - &self, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartPartitionQuorumLoss( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetPartitionQuorumLossProgress( - &self, - operationid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionQuorumLossProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginStartPartitionRestart( - &self, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartPartitionRestart( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetPartitionRestartProgress( - &self, - operationid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetPartitionRestartProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetTestCommandStatusList( - &self, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetTestCommandStatusList( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginCancelTestCommand( - &self, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCancelTestCommand( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricTestManagementClient {} -impl IFabricTestManagementClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >() -> IFabricTestManagementClient_Vtbl { - unsafe extern "system" fn BeginStartPartitionDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartPartitionDataLoss( - ::core::mem::transmute_copy(&invokedatalossdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartPartitionDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartPartitionDataLoss(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetPartitionDataLossProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionDataLossProgress( - ::core::mem::transmute(&operationid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionDataLossProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionDataLossProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginStartPartitionQuorumLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartPartitionQuorumLoss( - ::core::mem::transmute_copy(&invokequorumlossdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartPartitionQuorumLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartPartitionQuorumLoss(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetPartitionQuorumLossProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionQuorumLossProgress( - ::core::mem::transmute(&operationid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionQuorumLossProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionQuorumLossProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginStartPartitionRestart< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartPartitionRestart( - ::core::mem::transmute_copy(&restartpartitiondescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartPartitionRestart< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartPartitionRestart(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetPartitionRestartProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetPartitionRestartProgress( - ::core::mem::transmute(&operationid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetPartitionRestartProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetPartitionRestartProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetTestCommandStatusList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetTestCommandStatusList( - ::core::mem::transmute_copy(&operationid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetTestCommandStatusList< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetTestCommandStatusList(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginCancelTestCommand< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCancelTestCommand( - ::core::mem::transmute_copy(&invokedatalossdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCancelTestCommand< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndCancelTestCommand(::core::mem::transmute(&context)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginStartPartitionDataLoss: BeginStartPartitionDataLoss::, - EndStartPartitionDataLoss: EndStartPartitionDataLoss::, - BeginGetPartitionDataLossProgress: BeginGetPartitionDataLossProgress::< - Identity, - Impl, - OFFSET, - >, - EndGetPartitionDataLossProgress: EndGetPartitionDataLossProgress::< - Identity, - Impl, - OFFSET, - >, - BeginStartPartitionQuorumLoss: BeginStartPartitionQuorumLoss::, - EndStartPartitionQuorumLoss: EndStartPartitionQuorumLoss::, - BeginGetPartitionQuorumLossProgress: BeginGetPartitionQuorumLossProgress::< - Identity, - Impl, - OFFSET, - >, - EndGetPartitionQuorumLossProgress: EndGetPartitionQuorumLossProgress::< - Identity, - Impl, - OFFSET, - >, - BeginStartPartitionRestart: BeginStartPartitionRestart::, - EndStartPartitionRestart: EndStartPartitionRestart::, - BeginGetPartitionRestartProgress: BeginGetPartitionRestartProgress::< - Identity, - Impl, - OFFSET, - >, - EndGetPartitionRestartProgress: EndGetPartitionRestartProgress::, - BeginGetTestCommandStatusList: BeginGetTestCommandStatusList::, - EndGetTestCommandStatusList: EndGetTestCommandStatusList::, - BeginCancelTestCommand: BeginCancelTestCommand::, - EndCancelTestCommand: EndCancelTestCommand::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTestManagementClient2_Impl: Sized + IFabricTestManagementClient_Impl { - fn BeginStartChaos( - &self, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartChaos( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginStopChaos( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStopChaos( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetChaosReport( - &self, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetChaosReport( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricTestManagementClient2 {} -impl IFabricTestManagementClient2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >() -> IFabricTestManagementClient2_Vtbl { - unsafe extern "system" fn BeginStartChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartChaos( - ::core::mem::transmute_copy(&restartpartitiondescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartChaos(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginStopChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStopChaos( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStopChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStopChaos(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginGetChaosReport< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetChaosReport( - ::core::mem::transmute_copy(&getchaosreportdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetChaosReport< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetChaosReport(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricTestManagementClient_Vtbl::new::(), - BeginStartChaos: BeginStartChaos::, - EndStartChaos: EndStartChaos::, - BeginStopChaos: BeginStopChaos::, - EndStopChaos: EndStopChaos::, - BeginGetChaosReport: BeginGetChaosReport::, - EndGetChaosReport: EndGetChaosReport::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricTestManagementClient3_Impl: Sized + IFabricTestManagementClient2_Impl { - fn BeginStartNodeTransition( - &self, - description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndStartNodeTransition( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetNodeTransitionProgress( - &self, - operationid: &::windows::core::GUID, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNodeTransitionProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricTestManagementClient3 {} -impl IFabricTestManagementClient3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient3_Impl, - const OFFSET: isize, - >() -> IFabricTestManagementClient3_Vtbl { - unsafe extern "system" fn BeginStartNodeTransition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginStartNodeTransition( - ::core::mem::transmute_copy(&description), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndStartNodeTransition< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndStartNodeTransition(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetNodeTransitionProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNodeTransitionProgress( - ::core::mem::transmute(&operationid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNodeTransitionProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNodeTransitionProgress(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricTestManagementClient2_Vtbl::new::(), - BeginStartNodeTransition: BeginStartNodeTransition::, - EndStartNodeTransition: EndStartNodeTransition::, - BeginGetNodeTransitionProgress: BeginGetNodeTransitionProgress::, - EndGetNodeTransitionProgress: EndGetNodeTransitionProgress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricTestManagementClient4_Impl: Sized + IFabricTestManagementClient3_Impl { - fn BeginGetChaos( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetChaos( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginGetChaosSchedule( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetChaosSchedule( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginSetChaosSchedule( - &self, - setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndSetChaosSchedule( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginGetChaosEvents( - &self, - chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetChaosEvents( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricTestManagementClient4 {} -impl IFabricTestManagementClient4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >() -> IFabricTestManagementClient4_Vtbl { - unsafe extern "system" fn BeginGetChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetChaos( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetChaos< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetChaos(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginGetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetChaosSchedule( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetChaosSchedule(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginSetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - setchaosscheduledescription : *const super::super:: FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginSetChaosSchedule( - ::core::mem::transmute_copy(&setchaosscheduledescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndSetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndSetChaosSchedule(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginGetChaosEvents< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetChaosEvents( - ::core::mem::transmute_copy(&chaoseventsdescription), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetChaosEvents< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTestManagementClient4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetChaosEvents(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricTestManagementClient3_Vtbl::new::(), - BeginGetChaos: BeginGetChaos::, - EndGetChaos: EndGetChaos::, - BeginGetChaosSchedule: BeginGetChaosSchedule::, - EndGetChaosSchedule: EndGetChaosSchedule::, - BeginSetChaosSchedule: BeginSetChaosSchedule::, - EndSetChaosSchedule: EndSetChaosSchedule::, - BeginGetChaosEvents: BeginGetChaosEvents::, - EndGetChaosEvents: EndGetChaosEvents::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: Sized { - fn get_State(&self) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE; -} -impl ::windows::core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} -impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, - const OFFSET: isize, - >() -> IFabricUpgradeOrchestrationServiceStateResult_Vtbl { - unsafe extern "system" fn get_State< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_State() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_State: get_State::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricUpgradeProgressResult_Impl: Sized { - fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR; - fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR; - fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE; - fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; - fn GetChangedUpgradeDomains( - &self, - previousprogress: &::core::option::Option, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult {} -impl IFabricUpgradeProgressResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >() -> IFabricUpgradeProgressResult_Vtbl { - unsafe extern "system" fn get_TargetCodeVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_TargetCodeVersion() - } - unsafe extern "system" fn get_TargetConfigVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_TargetConfigVersion() - } - unsafe extern "system" fn get_UpgradeState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_UPGRADE_STATE { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_UpgradeState() - } - unsafe extern "system" fn GetUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetUpgradeDomains( - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - previousprogress: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetChangedUpgradeDomains( - ::core::mem::transmute(&previousprogress), - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_TargetCodeVersion: get_TargetCodeVersion::, - get_TargetConfigVersion: get_TargetConfigVersion::, - get_UpgradeState: get_UpgradeState::, - GetUpgradeDomains: GetUpgradeDomains::, - GetChangedUpgradeDomains: GetChangedUpgradeDomains::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricUpgradeProgressResult2_Impl: Sized + IFabricUpgradeProgressResult_Impl { - fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; - fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult2 {} -impl IFabricUpgradeProgressResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult2_Impl, - const OFFSET: isize, - >() -> IFabricUpgradeProgressResult2_Vtbl { - unsafe extern "system" fn get_RollingUpgradeMode< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_RollingUpgradeMode() - } - unsafe extern "system" fn get_NextUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NextUpgradeDomain() - } - Self { - base__: IFabricUpgradeProgressResult_Vtbl::new::(), - get_RollingUpgradeMode: get_RollingUpgradeMode::, - get_NextUpgradeDomain: get_NextUpgradeDomain::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricUpgradeProgressResult3_Impl: Sized + IFabricUpgradeProgressResult2_Impl { - fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_UPGRADE_PROGRESS; -} -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult3 {} -impl IFabricUpgradeProgressResult3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult3_Impl, - const OFFSET: isize, - >() -> IFabricUpgradeProgressResult3_Vtbl { - unsafe extern "system" fn get_UpgradeProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricUpgradeProgressResult3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_UPGRADE_PROGRESS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_UpgradeProgress() - } - Self { - base__: IFabricUpgradeProgressResult2_Vtbl::new::(), - get_UpgradeProgress: get_UpgradeProgress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs deleted file mode 100644 index 47c904d1..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs +++ /dev/null @@ -1,43989 +0,0 @@ -#[inline] -pub unsafe fn FabricCreateClient( - connectionstrings: &[::windows::core::PWSTR], - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateClient( - connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateClient( - connectionstrings.len() as _, - ::core::mem::transmute(connectionstrings.as_ptr()), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateClient2<'a, P0>( - connectionstrings: &[::windows::core::PWSTR], - __midl__fabricclientmodule0000: P0, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, -{ - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateClient2( - connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, - __midl__fabricclientmodule0000: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateClient2( - connectionstrings.len() as _, - ::core::mem::transmute(connectionstrings.as_ptr()), - __midl__fabricclientmodule0000.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateClient3<'a, P0, P1>( - connectionstrings: &[::windows::core::PWSTR], - __midl__fabricclientmodule0002: P0, - __midl__fabricclientmodule0003: P1, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, -{ - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateClient3( - connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, - __midl__fabricclientmodule0002: *mut ::core::ffi::c_void, - __midl__fabricclientmodule0003: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateClient3( - connectionstrings.len() as _, - ::core::mem::transmute(connectionstrings.as_ptr()), - __midl__fabricclientmodule0002.into().abi(), - __midl__fabricclientmodule0003.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateLocalClient( - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateLocalClient( - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateLocalClient( - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateLocalClient2<'a, P0>( - __midl__fabricclientmodule0001: P0, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, -{ - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateLocalClient2( - __midl__fabricclientmodule0001: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateLocalClient2( - __midl__fabricclientmodule0001.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateLocalClient3<'a, P0, P1>( - __midl__fabricclientmodule0004: P0, - __midl__fabricclientmodule0005: P1, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, -{ - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateLocalClient3( - __midl__fabricclientmodule0004: *mut ::core::ffi::c_void, - __midl__fabricclientmodule0005: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateLocalClient3( - __midl__fabricclientmodule0004.into().abi(), - __midl__fabricclientmodule0005.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateLocalClient4<'a, P0, P1>( - __midl__fabricclientmodule0006: P0, - __midl__fabricclientmodule0007: P1, - clientrole: super::super::FABRIC_CLIENT_ROLE, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, -{ - #[link(name = "fabricclient")] - extern "system" { - fn FabricCreateLocalClient4( - __midl__fabricclientmodule0006: *mut ::core::ffi::c_void, - __midl__fabricclientmodule0007: *mut ::core::ffi::c_void, - clientrole: super::super::FABRIC_CLIENT_ROLE, - iid: *const ::windows::core::GUID, - fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateLocalClient4( - __midl__fabricclientmodule0006.into().abi(), - __midl__fabricclientmodule0007.into().abi(), - clientrole, - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricGetDefaultRollingUpgradeMonitoringPolicy( -) -> ::windows::core::Result { - #[link(name = "fabricclient")] - extern "system" { - fn FabricGetDefaultRollingUpgradeMonitoringPolicy( - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetDefaultRollingUpgradeMonitoringPolicy(::core::mem::transmute(result__.as_mut_ptr())) - .from_abi::(result__) -} -#[repr(transparent)] -pub struct IFabricApplicationHealthResult(::windows::core::IUnknown); -impl IFabricApplicationHealthResult { - pub unsafe fn get_ApplicationHealth(&self) -> *mut super::super::FABRIC_APPLICATION_HEALTH { - (::windows::core::Vtable::vtable(self).get_ApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricApplicationHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricApplicationHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationHealthResult {} -impl ::core::fmt::Debug for IFabricApplicationHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationHealthResult { - type Vtable = IFabricApplicationHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x41612fab_e615_4a48_98e7_4abcc93b6049); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationHealth: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_HEALTH, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient(::windows::core::IUnknown); -impl IFabricApplicationManagementClient { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricApplicationManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient { - type Vtable = IFabricApplicationManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7c219ae9_e58d_431f_8b30_92a40281faac); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginProvisionApplicationType: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationbuildpath: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProvisionApplicationType: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginCreateApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUpgradeApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpgradeApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetApplicationUpgradeProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetApplicationUpgradeProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub BeginMoveNextApplicationUpgradeDomain: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - progress: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndMoveNextApplicationUpgradeDomain: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub BeginDeleteApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUnprovisionApplicationType: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUnprovisionApplicationType: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient10(::windows::core::IUnknown); -impl IFabricApplicationManagementClient10 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplication<'a, P0>( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteApplication2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType2<'a, P0>( - &self, - description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginProvisionApplicationType3<'a, P0>( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType3)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType3<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType3)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient10, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7, - IFabricApplicationManagementClient8, - IFabricApplicationManagementClient9 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient10 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient10 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient10") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient10 { - type Vtable = IFabricApplicationManagementClient10_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x67001225_d106_41ae_8bd4_5a0a119c5c01); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient10_Vtbl { - pub base__: IFabricApplicationManagementClient9_Vtbl, - pub BeginProvisionApplicationType3: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProvisionApplicationType3: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient2(::windows::core::IUnknown); -impl IFabricApplicationManagementClient2 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient2, - ::windows::core::IUnknown, - IFabricApplicationManagementClient -); -impl ::core::clone::Clone for IFabricApplicationManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient2 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient2 { - type Vtable = IFabricApplicationManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf873516f_9bfe_47e5_93b9_3667aaf19324); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient2_Vtbl { - pub base__: IFabricApplicationManagementClient_Vtbl, - pub BeginGetApplicationManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginMoveNextApplicationUpgradeDomain2: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - nextupgradedomain: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient3(::windows::core::IUnknown); -impl IFabricApplicationManagementClient3 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient3, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient3 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient3 { - type Vtable = IFabricApplicationManagementClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x108c7735_97e1_4af8_8c2d_9080b1b29d33); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient3_Vtbl where { pub base__ : IFabricApplicationManagementClient2_Vtbl , pub BeginUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub CopyApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : :: windows::core::PCWSTR , applicationpackagepath : :: windows::core::PCWSTR , applicationpackagepathinimagestore : :: windows::core::PCWSTR , ) -> :: windows::core::HRESULT , pub RemoveApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : :: windows::core::PCWSTR , applicationpackagepathinimagestore : :: windows::core::PCWSTR , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricApplicationManagementClient4(::windows::core::IUnknown); -impl IFabricApplicationManagementClient4 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient4, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient4 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient4 { - type Vtable = IFabricApplicationManagementClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient4_Vtbl { - pub base__: IFabricApplicationManagementClient3_Vtbl, - pub BeginDeployServicePackageToNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeployServicePackageToNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient5(::windows::core::IUnknown); -impl IFabricApplicationManagementClient5 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient5, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient5 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient5") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient5 { - type Vtable = IFabricApplicationManagementClient5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd7490e43_2217_4158_93e1_9ce4dd6f724a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient5_Vtbl { - pub base__: IFabricApplicationManagementClient4_Vtbl, - pub BeginRollbackApplicationUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRollbackApplicationUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient6(::windows::core::IUnknown); -impl IFabricApplicationManagementClient6 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplication<'a, P0>( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient6, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient6 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient6") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient6 { - type Vtable = IFabricApplicationManagementClient6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb01e63ee_1ea4_4181_95c7_983b32e16848); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient6_Vtbl { - pub base__: IFabricApplicationManagementClient5_Vtbl, - pub BeginUpdateApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateApplication: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient7(::windows::core::IUnknown); -impl IFabricApplicationManagementClient7 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplication<'a, P0>( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteApplication2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient7, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient7 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient7 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient7 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient7") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient7 { - type Vtable = IFabricApplicationManagementClient7_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26844276_25b1_4f8c_adbe_b1b3a3083c17); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient7_Vtbl { - pub base__: IFabricApplicationManagementClient6_Vtbl, - pub BeginDeleteApplication2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteApplication2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient8(::windows::core::IUnknown); -impl IFabricApplicationManagementClient8 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplication<'a, P0>( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteApplication2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient8, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient8 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient8 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient8 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient8") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient8 { - type Vtable = IFabricApplicationManagementClient8_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x97b38e85_7329_47ff_a8d2_b7cbf1603689); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient8_Vtbl { - pub base__: IFabricApplicationManagementClient7_Vtbl, - pub BeginProvisionApplicationType2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProvisionApplicationType2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationManagementClient9(::windows::core::IUnknown); -impl IFabricApplicationManagementClient9 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( - &self, - applicationbuildpath: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateApplication<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpgradeApplication<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteApplication<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( - &self, - applicationname: *const u16, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepath: P1, - applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( - &self, - imagestoreconnectionstring: P0, - applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: P3, - timeoutmilliseconds: u32, - callback: P4, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( - &self, - applicationname: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateApplication<'a, P0>( - &self, - applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteApplication2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( - &self, - description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionApplicationType2<'a, P0>( - &self, - description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationManagementClient9, - ::windows::core::IUnknown, - IFabricApplicationManagementClient, - IFabricApplicationManagementClient2, - IFabricApplicationManagementClient3, - IFabricApplicationManagementClient4, - IFabricApplicationManagementClient5, - IFabricApplicationManagementClient6, - IFabricApplicationManagementClient7, - IFabricApplicationManagementClient8 -); -impl ::core::clone::Clone for IFabricApplicationManagementClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationManagementClient9 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationManagementClient9 {} -impl ::core::fmt::Debug for IFabricApplicationManagementClient9 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationManagementClient9") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient9 { - type Vtable = IFabricApplicationManagementClient9_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26617b63_1350_4d7f_830c_2200978d31bb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationManagementClient9_Vtbl { - pub base__: IFabricApplicationManagementClient8_Vtbl, - pub BeginUnprovisionApplicationType2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndUnprovisionApplicationType2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult(::windows::core::IUnknown); -impl IFabricApplicationUpgradeProgressResult { - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeName)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetApplicationTypeVersion)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self).get_UpgradeState)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, - { - (::windows::core::Vtable::vtable(self).GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult {} -impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationUpgradeProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult { - type Vtable = IFabricApplicationUpgradeProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1e4670f8_ede5_48ab_881f_c45a0f38413a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationUpgradeProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, - pub get_ApplicationTypeName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_TargetApplicationTypeVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_UpgradeState: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE, - pub GetUpgradeDomains: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, - pub GetChangedUpgradeDomains: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - previousprogress: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult2(::windows::core::IUnknown); -impl IFabricApplicationUpgradeProgressResult2 { - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_TargetApplicationTypeVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) - .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, - { - (::windows::core::Vtable::vtable(self) - .base__ - .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self).get_RollingUpgradeMode)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_NextUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult2, - ::windows::core::IUnknown, - IFabricApplicationUpgradeProgressResult -); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult2 {} -impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationUpgradeProgressResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult2 { - type Vtable = IFabricApplicationUpgradeProgressResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x62707ee5_b625_4489_aa4d_2e54b06ea248); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationUpgradeProgressResult2_Vtbl { - pub base__: IFabricApplicationUpgradeProgressResult_Vtbl, - pub get_RollingUpgradeMode: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE, - pub get_NextUpgradeDomain: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult3(::windows::core::IUnknown); -impl IFabricApplicationUpgradeProgressResult3 { - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_TargetApplicationTypeVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self) - .base__ - .get_RollingUpgradeMode)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_NextUpgradeDomain)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeProgress( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_UpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricApplicationUpgradeProgressResult3, - ::windows::core::IUnknown, - IFabricApplicationUpgradeProgressResult, - IFabricApplicationUpgradeProgressResult2 -); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricApplicationUpgradeProgressResult3 {} -impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricApplicationUpgradeProgressResult3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult3 { - type Vtable = IFabricApplicationUpgradeProgressResult3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricApplicationUpgradeProgressResult3_Vtbl { - pub base__: IFabricApplicationUpgradeProgressResult2_Vtbl, - pub get_UpgradeProgress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricChaosDescriptionResult(::windows::core::IUnknown); -impl IFabricChaosDescriptionResult { - pub unsafe fn get_ChaosDescriptionResult(&self) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ChaosDescriptionResult)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricChaosDescriptionResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricChaosDescriptionResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricChaosDescriptionResult {} -impl ::core::fmt::Debug for IFabricChaosDescriptionResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricChaosDescriptionResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricChaosDescriptionResult { - type Vtable = IFabricChaosDescriptionResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricChaosDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricChaosDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ChaosDescriptionResult: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION, -} -#[repr(transparent)] -pub struct IFabricChaosEventsSegmentResult(::windows::core::IUnknown); -impl IFabricChaosEventsSegmentResult { - pub unsafe fn get_ChaosEventsSegmentResult( - &self, - ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT { - (::windows::core::Vtable::vtable(self).get_ChaosEventsSegmentResult)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricChaosEventsSegmentResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosEventsSegmentResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricChaosEventsSegmentResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricChaosEventsSegmentResult {} -impl ::core::fmt::Debug for IFabricChaosEventsSegmentResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricChaosEventsSegmentResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricChaosEventsSegmentResult { - type Vtable = IFabricChaosEventsSegmentResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricChaosEventsSegmentResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xde148299_c48a_4540_877b_5b1daa518d76); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricChaosEventsSegmentResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ChaosEventsSegmentResult: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT, -} -#[repr(transparent)] -pub struct IFabricChaosReportResult(::windows::core::IUnknown); -impl IFabricChaosReportResult { - pub unsafe fn get_ChaosReportResult(&self) -> *mut super::super::FABRIC_CHAOS_REPORT { - (::windows::core::Vtable::vtable(self).get_ChaosReportResult)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricChaosReportResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosReportResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricChaosReportResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricChaosReportResult {} -impl ::core::fmt::Debug for IFabricChaosReportResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricChaosReportResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricChaosReportResult { - type Vtable = IFabricChaosReportResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricChaosReportResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8952e931_b2b3_470a_b982_6b415f30dbc0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricChaosReportResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ChaosReportResult: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_CHAOS_REPORT, -} -#[repr(transparent)] -pub struct IFabricChaosScheduleDescriptionResult(::windows::core::IUnknown); -impl IFabricChaosScheduleDescriptionResult { - pub unsafe fn get_ChaosScheduleDescriptionResult( - &self, - ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ChaosScheduleDescriptionResult)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricChaosScheduleDescriptionResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricChaosScheduleDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricChaosScheduleDescriptionResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricChaosScheduleDescriptionResult {} -impl ::core::fmt::Debug for IFabricChaosScheduleDescriptionResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricChaosScheduleDescriptionResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricChaosScheduleDescriptionResult { - type Vtable = IFabricChaosScheduleDescriptionResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricChaosScheduleDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricChaosScheduleDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ChaosScheduleDescriptionResult: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION, -} -#[repr(transparent)] -pub struct IFabricClientConnectionEventHandler(::windows::core::IUnknown); -impl IFabricClientConnectionEventHandler { - pub unsafe fn OnConnected<'a, P0>( - &self, - __midl__ifabricclientconnectioneventhandler0000: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, - { - (::windows::core::Vtable::vtable(self).OnConnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0000.into().abi(), - ) - .ok() - } - pub unsafe fn OnDisconnected<'a, P0>( - &self, - __midl__ifabricclientconnectioneventhandler0001: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, - { - (::windows::core::Vtable::vtable(self).OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0001.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClientConnectionEventHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricClientConnectionEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClientConnectionEventHandler {} -impl ::core::fmt::Debug for IFabricClientConnectionEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClientConnectionEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClientConnectionEventHandler { - type Vtable = IFabricClientConnectionEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClientConnectionEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClientConnectionEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnConnected: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub OnDisconnected: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClientConnectionEventHandler2(::windows::core::IUnknown); -impl IFabricClientConnectionEventHandler2 { - pub unsafe fn OnConnected<'a, P0>( - &self, - __midl__ifabricclientconnectioneventhandler0000: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, - { - (::windows::core::Vtable::vtable(self).base__.OnConnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0000.into().abi(), - ) - .ok() - } - pub unsafe fn OnDisconnected<'a, P0>( - &self, - __midl__ifabricclientconnectioneventhandler0001: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, - { - (::windows::core::Vtable::vtable(self).base__.OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0001.into().abi(), - ) - .ok() - } - pub unsafe fn OnClaimsRetrieval( - &self, - metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).OnClaimsRetrieval)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(metadata), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricClientConnectionEventHandler2, - ::windows::core::IUnknown, - IFabricClientConnectionEventHandler -); -impl ::core::clone::Clone for IFabricClientConnectionEventHandler2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClientConnectionEventHandler2 {} -impl ::core::fmt::Debug for IFabricClientConnectionEventHandler2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClientConnectionEventHandler2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClientConnectionEventHandler2 { - type Vtable = IFabricClientConnectionEventHandler2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClientConnectionEventHandler2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClientConnectionEventHandler2_Vtbl { - pub base__: IFabricClientConnectionEventHandler_Vtbl, - pub OnClaimsRetrieval: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - token: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClientSettings(::windows::core::IUnknown); -impl IFabricClientSettings { - pub unsafe fn SetSecurityCredentials( - &self, - securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetSecurityCredentials)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(securitycredentials), - ) - .ok() - } - pub unsafe fn SetKeepAlive( - &self, - keepaliveintervalinseconds: u32, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetKeepAlive)( - ::windows::core::Vtable::as_raw(self), - keepaliveintervalinseconds, - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricClientSettings, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClientSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClientSettings { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClientSettings {} -impl ::core::fmt::Debug for IFabricClientSettings { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClientSettings") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClientSettings { - type Vtable = IFabricClientSettings_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClientSettings { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb0e7dee0_cf64_11e0_9572_0800200c9a66); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClientSettings_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub SetSecurityCredentials: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::HRESULT, - pub SetKeepAlive: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - keepaliveintervalinseconds: u32, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClientSettings2(::windows::core::IUnknown); -impl IFabricClientSettings2 { - pub unsafe fn SetSecurityCredentials( - &self, - securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .SetSecurityCredentials)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(securitycredentials), - ) - .ok() - } - pub unsafe fn SetKeepAlive( - &self, - keepaliveintervalinseconds: u32, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.SetKeepAlive)( - ::windows::core::Vtable::as_raw(self), - keepaliveintervalinseconds, - ) - .ok() - } - pub unsafe fn GetSettings(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn SetSettings( - &self, - fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(fabricclientsettings), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClientSettings2, - ::windows::core::IUnknown, - IFabricClientSettings -); -impl ::core::clone::Clone for IFabricClientSettings2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClientSettings2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClientSettings2 {} -impl ::core::fmt::Debug for IFabricClientSettings2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClientSettings2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClientSettings2 { - type Vtable = IFabricClientSettings2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClientSettings2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClientSettings2_Vtbl { - pub base__: IFabricClientSettings_Vtbl, - pub GetSettings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub SetSettings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClientSettingsResult(::windows::core::IUnknown); -impl IFabricClientSettingsResult { - pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricClientSettingsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClientSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClientSettingsResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClientSettingsResult {} -impl ::core::fmt::Debug for IFabricClientSettingsResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClientSettingsResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClientSettingsResult { - type Vtable = IFabricClientSettingsResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClientSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3b825afd_cb31_4589_961e_e3778aa23a60); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClientSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Settings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLIENT_SETTINGS, -} -#[repr(transparent)] -pub struct IFabricClusterHealthResult(::windows::core::IUnknown); -impl IFabricClusterHealthResult { - pub unsafe fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH { - (::windows::core::Vtable::vtable(self).get_ClusterHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricClusterHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClusterHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterHealthResult {} -impl ::core::fmt::Debug for IFabricClusterHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterHealthResult { - type Vtable = IFabricClusterHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ClusterHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_CLUSTER_HEALTH, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient(::windows::core::IUnknown); -impl IFabricClusterManagementClient { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricClusterManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClusterManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient {} -impl ::core::fmt::Debug for IFabricClusterManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient { - type Vtable = IFabricClusterManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginNodeStateRemoved: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndNodeStateRemoved: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRecoverPartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRecoverPartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient10(::windows::core::IUnknown); -impl IFabricClusterManagementClient10 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( - &self, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradeOrchestrationServiceState<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradeOrchestrationServiceState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSetUpgradeOrchestrationServiceState<'a, P0, P1>( - &self, - state: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - state.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSetUpgradeOrchestrationServiceState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterConfiguration2<'a, P0, P1>( - &self, - apiversion: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfiguration2)( - ::windows::core::Vtable::as_raw(self), - apiversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfiguration2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfiguration2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient10, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6, - IFabricClusterManagementClient7, - IFabricClusterManagementClient8, - IFabricClusterManagementClient9 -); -impl ::core::clone::Clone for IFabricClusterManagementClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient10 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient10 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient10") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient10 { - type Vtable = IFabricClusterManagementClient10_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient10_Vtbl { - pub base__: IFabricClusterManagementClient9_Vtbl, - pub BeginGetClusterConfiguration2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - apiversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterConfiguration2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient2(::windows::core::IUnknown); -impl IFabricClusterManagementClient2 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndActivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient2, - ::windows::core::IUnknown, - IFabricClusterManagementClient -); -impl ::core::clone::Clone for IFabricClusterManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient2 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient2 { - type Vtable = IFabricClusterManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf9493e16_6a49_4d79_8695_5a6826b504c5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient2_Vtbl { - pub base__: IFabricClusterManagementClient_Vtbl, - pub BeginDeactivateNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeactivateNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginActivateNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndActivateNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginProvisionFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codefilepath: ::windows::core::PCWSTR, - clustermanifestfilepath: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProvisionFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUpgradeFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpgradeFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetFabricUpgradeProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetFabricUpgradeProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginMoveNextFabricUpgradeDomain: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - progress: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndMoveNextFabricUpgradeDomain: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - nextupgradedomain: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUnprovisionFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codeversion: ::windows::core::PCWSTR, - configversion: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUnprovisionFabric: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetClusterManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRecoverPartition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRecoverPartition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRecoverServicePartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRecoverServicePartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRecoverSystemPartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRecoverSystemPartitions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient3(::windows::core::IUnknown); -impl IFabricClusterManagementClient3 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndActivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient3, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2 -); -impl ::core::clone::Clone for IFabricClusterManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient3 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient3 { - type Vtable = IFabricClusterManagementClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient3_Vtbl { - pub base__: IFabricClusterManagementClient2_Vtbl, - pub BeginUpdateFabricUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateFabricUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStopNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStopNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRestartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRestartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub CopyClusterPackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - clustermanifestpath: ::windows::core::PCWSTR, - clustermanifestpathinimagestore: ::windows::core::PCWSTR, - codepackagepath: ::windows::core::PCWSTR, - codepackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, - pub RemoveClusterPackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - clustermanifestpathinimagestore: ::windows::core::PCWSTR, - codepackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient4(::windows::core::IUnknown); -impl IFabricClusterManagementClient4 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient4, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3 -); -impl ::core::clone::Clone for IFabricClusterManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient4 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient4 { - type Vtable = IFabricClusterManagementClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb6b12671_f283_4d71_a818_0260549bc83e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient4_Vtbl { - pub base__: IFabricClusterManagementClient3_Vtbl, - pub BeginRollbackFabricUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRollbackFabricUpgrade: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient5(::windows::core::IUnknown); -impl IFabricClusterManagementClient5 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient5, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4 -); -impl ::core::clone::Clone for IFabricClusterManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient5 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient5") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient5 { - type Vtable = IFabricClusterManagementClient5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa6ddd816_a100_11e4_89d3_123b93f75cba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient5_Vtbl { - pub base__: IFabricClusterManagementClient4_Vtbl, - pub BeginResetPartitionLoad: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndResetPartitionLoad: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient6(::windows::core::IUnknown); -impl IFabricClusterManagementClient6 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient6, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5 -); -impl ::core::clone::Clone for IFabricClusterManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient6 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient6") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient6 { - type Vtable = IFabricClusterManagementClient6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9e454ae8_4b8c_4136_884a_37b0b92cc855); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient6_Vtbl { - pub base__: IFabricClusterManagementClient5_Vtbl, - pub BeginToggleVerboseServicePlacementHealthReporting: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - enabled: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndToggleVerboseServicePlacementHealthReporting: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient7(::windows::core::IUnknown); -impl IFabricClusterManagementClient7 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( - &self, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient7, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6 -); -impl ::core::clone::Clone for IFabricClusterManagementClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient7 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient7 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient7 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient7") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient7 { - type Vtable = IFabricClusterManagementClient7_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9b9105ac_d595_4f59_9c94_1ffdbf92a876); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient7_Vtbl { - pub base__: IFabricClusterManagementClient6_Vtbl, - pub BeginUpgradeConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpgradeConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetClusterConfigurationUpgradeStatus: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterConfigurationUpgradeStatus: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetClusterConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetUpgradesPendingApproval: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetUpgradesPendingApproval: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStartApprovedUpgrades: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStartApprovedUpgrades: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient8(::windows::core::IUnknown); -impl IFabricClusterManagementClient8 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( - &self, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient8, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6, - IFabricClusterManagementClient7 -); -impl ::core::clone::Clone for IFabricClusterManagementClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient8 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient8 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient8 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient8") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient8 { - type Vtable = IFabricClusterManagementClient8_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0b79641c_79a6_4162_904a_840babd08381); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient8_Vtbl { - pub base__: IFabricClusterManagementClient7_Vtbl, - pub BeginGetClusterManifest2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterManifest2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricClusterManagementClient9(::windows::core::IUnknown); -impl IFabricClusterManagementClient9 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( - &self, - nodename: P0, - intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - intent, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginActivateNode<'a, P0, P1>( - &self, - nodename: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( - &self, - codefilepath: P0, - clustermanifestfilepath: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginUpgradeFabric<'a, P0>( - &self, - upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( - &self, - progress: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( - &self, - nextupgradedomain: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( - &self, - codeversion: P0, - configversion: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRecoverPartition<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( - &self, - servicename: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( - &self, - description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpath: P1, - clustermanifestpathinimagestore: P2, - codepackagepath: P3, - codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( - &self, - imagestoreconnectionstring: P0, - clustermanifestpathinimagestore: P1, - codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), - ) - .ok() - } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( - &self, - enabled: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( - &self, - startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterManifest2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUpgradeOrchestrationServiceState<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUpgradeOrchestrationServiceState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSetUpgradeOrchestrationServiceState<'a, P0, P1>( - &self, - state: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - state.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSetUpgradeOrchestrationServiceState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricClusterManagementClient9, - ::windows::core::IUnknown, - IFabricClusterManagementClient, - IFabricClusterManagementClient2, - IFabricClusterManagementClient3, - IFabricClusterManagementClient4, - IFabricClusterManagementClient5, - IFabricClusterManagementClient6, - IFabricClusterManagementClient7, - IFabricClusterManagementClient8 -); -impl ::core::clone::Clone for IFabricClusterManagementClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricClusterManagementClient9 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricClusterManagementClient9 {} -impl ::core::fmt::Debug for IFabricClusterManagementClient9 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricClusterManagementClient9") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient9 { - type Vtable = IFabricClusterManagementClient9_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricClusterManagementClient9_Vtbl { - pub base__: IFabricClusterManagementClient8_Vtbl, - pub BeginGetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginSetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - state: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndSetUpgradeOrchestrationServiceState: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricDeployedApplicationHealthResult(::windows::core::IUnknown); -impl IFabricDeployedApplicationHealthResult { - pub unsafe fn get_DeployedApplicationHealth( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricDeployedApplicationHealthResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricDeployedApplicationHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricDeployedApplicationHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricDeployedApplicationHealthResult {} -impl ::core::fmt::Debug for IFabricDeployedApplicationHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricDeployedApplicationHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricDeployedApplicationHealthResult { - type Vtable = IFabricDeployedApplicationHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricDeployedApplicationHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4df50bf4_7c28_4210_94f7_50625df6c942); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricDeployedApplicationHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_DeployedApplicationHealth: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH, -} -#[repr(transparent)] -pub struct IFabricDeployedServicePackageHealthResult(::windows::core::IUnknown); -impl IFabricDeployedServicePackageHealthResult { - pub unsafe fn get_DeployedServicePackageHealth( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - (::windows::core::Vtable::vtable(self).get_DeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricDeployedServicePackageHealthResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricDeployedServicePackageHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricDeployedServicePackageHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricDeployedServicePackageHealthResult {} -impl ::core::fmt::Debug for IFabricDeployedServicePackageHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricDeployedServicePackageHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricDeployedServicePackageHealthResult { - type Vtable = IFabricDeployedServicePackageHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricDeployedServicePackageHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricDeployedServicePackageHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_DeployedServicePackageHealth: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH, -} -#[repr(transparent)] -pub struct IFabricFaultManagementClient(::windows::core::IUnknown); -impl IFabricFaultManagementClient { - pub unsafe fn BeginRestartNode<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartNode<'a, P0>( - &self, - description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStopNode<'a, P0>( - &self, - description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopNode<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMovePrimary<'a, P0>( - &self, - description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMovePrimary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMovePrimary<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndMovePrimary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginMoveSecondary<'a, P0>( - &self, - description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveSecondary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndMoveSecondary<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndMoveSecondary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricFaultManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricFaultManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricFaultManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricFaultManagementClient {} -impl ::core::fmt::Debug for IFabricFaultManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricFaultManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricFaultManagementClient { - type Vtable = IFabricFaultManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricFaultManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x769e1838_8726_4dcd_a3c0_211673a6967a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricFaultManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginRestartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRestartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStartNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStopNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStopNode: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRestartDeployedCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginMovePrimary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndMovePrimary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginMoveSecondary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndMoveSecondary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricGatewayInformationResult(::windows::core::IUnknown); -impl IFabricGatewayInformationResult { - pub unsafe fn get_GatewayInformation(&self) -> *mut super::super::FABRIC_GATEWAY_INFORMATION { - (::windows::core::Vtable::vtable(self).get_GatewayInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricGatewayInformationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGatewayInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGatewayInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGatewayInformationResult {} -impl ::core::fmt::Debug for IFabricGatewayInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGatewayInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGatewayInformationResult { - type Vtable = IFabricGatewayInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGatewayInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa57e7740_fa33_448e_9f35_8bf802a713aa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGatewayInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_GatewayInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_GATEWAY_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetApplicationListResult(::windows::core::IUnknown); -impl IFabricGetApplicationListResult { - pub unsafe fn get_ApplicationList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricGetApplicationListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationListResult {} -impl ::core::fmt::Debug for IFabricGetApplicationListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationListResult { - type Vtable = IFabricGetApplicationListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf038c61e_7059_41b6_8dea_d304a2080f46); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetApplicationListResult2(::windows::core::IUnknown); -impl IFabricGetApplicationListResult2 { - pub unsafe fn get_ApplicationList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationList)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetApplicationListResult2, - ::windows::core::IUnknown, - IFabricGetApplicationListResult -); -impl ::core::clone::Clone for IFabricGetApplicationListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationListResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationListResult2 {} -impl ::core::fmt::Debug for IFabricGetApplicationListResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationListResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationListResult2 { - type Vtable = IFabricGetApplicationListResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6637a860_26bc_4f1a_902f_f418fcfe1e51); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationListResult2_Vtbl { - pub base__: IFabricGetApplicationListResult_Vtbl, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetApplicationLoadInformationResult(::windows::core::IUnknown); -impl IFabricGetApplicationLoadInformationResult { - pub unsafe fn get_ApplicationLoadInformation( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetApplicationLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetApplicationLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationLoadInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationLoadInformationResult {} -impl ::core::fmt::Debug for IFabricGetApplicationLoadInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationLoadInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationLoadInformationResult { - type Vtable = IFabricGetApplicationLoadInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x38fd0512_7586_4bd5_9616_b7070cf025c0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationLoadInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetApplicationNameResult(::windows::core::IUnknown); -impl IFabricGetApplicationNameResult { - pub unsafe fn get_ApplicationName( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricGetApplicationNameResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetApplicationNameResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationNameResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationNameResult {} -impl ::core::fmt::Debug for IFabricGetApplicationNameResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationNameResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationNameResult { - type Vtable = IFabricGetApplicationNameResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationNameResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x258dbcc8_ac9a_47ff_838b_57ff506c73b1); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationNameResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationName: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT, -} -#[repr(transparent)] -pub struct IFabricGetApplicationNetworkListResult(::windows::core::IUnknown); -impl IFabricGetApplicationNetworkListResult { - pub unsafe fn get_ApplicationNetworkList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetApplicationNetworkListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetApplicationNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationNetworkListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationNetworkListResult {} -impl ::core::fmt::Debug for IFabricGetApplicationNetworkListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationNetworkListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationNetworkListResult { - type Vtable = IFabricGetApplicationNetworkListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4f9d0390_aa08_4dee_ba49_62891eb47c37); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationNetworkListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } -#[repr(transparent)] -pub struct IFabricGetApplicationTypeListResult(::windows::core::IUnknown); -impl IFabricGetApplicationTypeListResult { - pub unsafe fn get_ApplicationTypeList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetApplicationTypeListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetApplicationTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationTypeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationTypeListResult {} -impl ::core::fmt::Debug for IFabricGetApplicationTypeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationTypeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationTypeListResult { - type Vtable = IFabricGetApplicationTypeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x944f7a70_224e_4191_8dd1_bba46dc88dd2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationTypeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationTypeList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetApplicationTypePagedListResult(::windows::core::IUnknown); -impl IFabricGetApplicationTypePagedListResult { - pub unsafe fn get_ApplicationTypePagedList( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetApplicationTypePagedListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetApplicationTypePagedListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetApplicationTypePagedListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetApplicationTypePagedListResult {} -impl ::core::fmt::Debug for IFabricGetApplicationTypePagedListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetApplicationTypePagedListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetApplicationTypePagedListResult { - type Vtable = IFabricGetApplicationTypePagedListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetApplicationTypePagedListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5d8dde9c_05e8_428d_b494_43873d7c2db8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetApplicationTypePagedListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ApplicationTypePagedList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetClusterHealthChunkResult(::windows::core::IUnknown); -impl IFabricGetClusterHealthChunkResult { - pub unsafe fn get_ClusterHealthChunk(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK { - (::windows::core::Vtable::vtable(self).get_ClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetClusterHealthChunkResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetClusterHealthChunkResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetClusterHealthChunkResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetClusterHealthChunkResult {} -impl ::core::fmt::Debug for IFabricGetClusterHealthChunkResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetClusterHealthChunkResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetClusterHealthChunkResult { - type Vtable = IFabricGetClusterHealthChunkResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetClusterHealthChunkResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7fefcf06_c840_4d8a_9cc7_36f080e0e121); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetClusterHealthChunkResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ClusterHealthChunk: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK, -} -#[repr(transparent)] -pub struct IFabricGetClusterLoadInformationResult(::windows::core::IUnknown); -impl IFabricGetClusterLoadInformationResult { - pub unsafe fn get_ClusterLoadInformation( - &self, - ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetClusterLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetClusterLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetClusterLoadInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetClusterLoadInformationResult {} -impl ::core::fmt::Debug for IFabricGetClusterLoadInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetClusterLoadInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetClusterLoadInformationResult { - type Vtable = IFabricGetClusterLoadInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetClusterLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetClusterLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ClusterLoadInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetDeployedApplicationListResult(::windows::core::IUnknown); -impl IFabricGetDeployedApplicationListResult { - pub unsafe fn get_DeployedApplicationList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedApplicationListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedApplicationListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedApplicationListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedApplicationListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedApplicationListResult { - type Vtable = IFabricGetDeployedApplicationListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5722b789_3936_4c33_9f7a_342967457612); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedApplicationListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetDeployedApplicationPagedListResult(::windows::core::IUnknown); -impl IFabricGetDeployedApplicationPagedListResult { - pub unsafe fn get_DeployedApplicationPagedList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedApplicationPagedListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedApplicationPagedListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationPagedListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedApplicationPagedListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedApplicationPagedListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedApplicationPagedListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedApplicationPagedListResult { - type Vtable = IFabricGetDeployedApplicationPagedListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedApplicationPagedListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } -#[repr(transparent)] -pub struct IFabricGetDeployedCodePackageListResult(::windows::core::IUnknown); -impl IFabricGetDeployedCodePackageListResult { - pub unsafe fn get_DeployedCodePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedCodePackageListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedCodePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedCodePackageListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedCodePackageListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedCodePackageListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedCodePackageListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedCodePackageListResult { - type Vtable = IFabricGetDeployedCodePackageListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedCodePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3f390652_c0dc_4919_8a7f_8ae1e827de0c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedCodePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetDeployedNetworkCodePackageListResult(::windows::core::IUnknown); -impl IFabricGetDeployedNetworkCodePackageListResult { - pub unsafe fn get_DeployedNetworkCodePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedNetworkCodePackageListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedNetworkCodePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkCodePackageListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedNetworkCodePackageListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedNetworkCodePackageListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedNetworkCodePackageListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedNetworkCodePackageListResult { - type Vtable = IFabricGetDeployedNetworkCodePackageListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedNetworkCodePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6586d264_a96e_4f46_9388_189de5d61d6d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } -#[repr(transparent)] -pub struct IFabricGetDeployedNetworkListResult(::windows::core::IUnknown); -impl IFabricGetDeployedNetworkListResult { - pub unsafe fn get_DeployedNetworkList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedNetworkListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedNetworkListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedNetworkListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedNetworkListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedNetworkListResult { - type Vtable = IFabricGetDeployedNetworkListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x347f5d8c_1abd_48e1_a7d1_9083556dafd3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedNetworkListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_DeployedNetworkList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetDeployedReplicaListResult(::windows::core::IUnknown); -impl IFabricGetDeployedReplicaListResult { - pub unsafe fn get_DeployedReplicaList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedReplicaListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedReplicaListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedReplicaListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedReplicaListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedReplicaListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedReplicaListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedReplicaListResult { - type Vtable = IFabricGetDeployedReplicaListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedReplicaListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedReplicaListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetDeployedServicePackageListResult(::windows::core::IUnknown); -impl IFabricGetDeployedServicePackageListResult { - pub unsafe fn get_DeployedServicePackageList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedServicePackageListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedServicePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedServicePackageListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedServicePackageListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedServicePackageListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedServicePackageListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServicePackageListResult { - type Vtable = IFabricGetDeployedServicePackageListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedServicePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x65851388_0421_4107_977b_39f4e15440d4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedServicePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetDeployedServiceReplicaDetailResult(::windows::core::IUnknown); -impl IFabricGetDeployedServiceReplicaDetailResult { - pub unsafe fn get_ReplicaDetail( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - (::windows::core::Vtable::vtable(self).get_ReplicaDetail)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedServiceReplicaDetailResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedServiceReplicaDetailResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedServiceReplicaDetailResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedServiceReplicaDetailResult {} -impl ::core::fmt::Debug for IFabricGetDeployedServiceReplicaDetailResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedServiceReplicaDetailResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServiceReplicaDetailResult { - type Vtable = IFabricGetDeployedServiceReplicaDetailResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedServiceReplicaDetailResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6d9d355e_89cf_4928_b758_b11ca4664fbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , } -#[repr(transparent)] -pub struct IFabricGetDeployedServiceTypeListResult(::windows::core::IUnknown); -impl IFabricGetDeployedServiceTypeListResult { - pub unsafe fn get_DeployedServiceTypeList( - &self, - ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetDeployedServiceTypeListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetDeployedServiceTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetDeployedServiceTypeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetDeployedServiceTypeListResult {} -impl ::core::fmt::Debug for IFabricGetDeployedServiceTypeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetDeployedServiceTypeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServiceTypeListResult { - type Vtable = IFabricGetDeployedServiceTypeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetDeployedServiceTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdba68c7a_3f77_49bb_b611_ff94df062b8d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetDeployedServiceTypeListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetNetworkApplicationListResult(::windows::core::IUnknown); -impl IFabricGetNetworkApplicationListResult { - pub unsafe fn get_NetworkApplicationList( - &self, - ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetNetworkApplicationListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetNetworkApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNetworkApplicationListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNetworkApplicationListResult {} -impl ::core::fmt::Debug for IFabricGetNetworkApplicationListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNetworkApplicationListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNetworkApplicationListResult { - type Vtable = IFabricGetNetworkApplicationListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNetworkApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xad1f51ff_e244_498e_9f72_609b01124b84); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNetworkApplicationListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_NetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } -#[repr(transparent)] -pub struct IFabricGetNetworkListResult(::windows::core::IUnknown); -impl IFabricGetNetworkListResult { - pub unsafe fn get_NetworkList(&self) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkList)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetNetworkListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNetworkListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNetworkListResult {} -impl ::core::fmt::Debug for IFabricGetNetworkListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNetworkListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNetworkListResult { - type Vtable = IFabricGetNetworkListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbd777a0f_2020_40bb_8f23_8756649cce47); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNetworkListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NetworkList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetNetworkNodeListResult(::windows::core::IUnknown); -impl IFabricGetNetworkNodeListResult { - pub unsafe fn get_NetworkNodeList( - &self, - ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkNodeList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetNetworkNodeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNetworkNodeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNetworkNodeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNetworkNodeListResult {} -impl ::core::fmt::Debug for IFabricGetNetworkNodeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNetworkNodeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNetworkNodeListResult { - type Vtable = IFabricGetNetworkNodeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNetworkNodeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ba780e9_58eb_478d_bc89_42c89e19d083); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNetworkNodeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NetworkNodeList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetNodeListResult(::windows::core::IUnknown); -impl IFabricGetNodeListResult { - pub unsafe fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NodeList)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricGetNodeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNodeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNodeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNodeListResult {} -impl ::core::fmt::Debug for IFabricGetNodeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNodeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNodeListResult { - type Vtable = IFabricGetNodeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNodeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNodeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NodeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetNodeListResult2(::windows::core::IUnknown); -impl IFabricGetNodeListResult2 { - pub unsafe fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_NodeList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetNodeListResult2, - ::windows::core::IUnknown, - IFabricGetNodeListResult -); -impl ::core::clone::Clone for IFabricGetNodeListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNodeListResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNodeListResult2 {} -impl ::core::fmt::Debug for IFabricGetNodeListResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNodeListResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNodeListResult2 { - type Vtable = IFabricGetNodeListResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNodeListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4a0f2da7_f851_44e5_8e12_aa521076097a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNodeListResult2_Vtbl { - pub base__: IFabricGetNodeListResult_Vtbl, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetNodeLoadInformationResult(::windows::core::IUnknown); -impl IFabricGetNodeLoadInformationResult { - pub unsafe fn get_NodeLoadInformation( - &self, - ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_NodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetNodeLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetNodeLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetNodeLoadInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetNodeLoadInformationResult {} -impl ::core::fmt::Debug for IFabricGetNodeLoadInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetNodeLoadInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetNodeLoadInformationResult { - type Vtable = IFabricGetNodeLoadInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetNodeLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4332eb3a_aed6_86fe_c2fa_653123dea09b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetNodeLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NodeLoadInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetPartitionListResult(::windows::core::IUnknown); -impl IFabricGetPartitionListResult { - pub unsafe fn get_PartitionList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_PartitionList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetPartitionListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetPartitionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetPartitionListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetPartitionListResult {} -impl ::core::fmt::Debug for IFabricGetPartitionListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetPartitionListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetPartitionListResult { - type Vtable = IFabricGetPartitionListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetPartitionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xafc1266c_967b_4769_9f8a_b249c5887ee6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetPartitionListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_PartitionList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetPartitionListResult2(::windows::core::IUnknown); -impl IFabricGetPartitionListResult2 { - pub unsafe fn get_PartitionList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .get_PartitionList)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetPartitionListResult2, - ::windows::core::IUnknown, - IFabricGetPartitionListResult -); -impl ::core::clone::Clone for IFabricGetPartitionListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetPartitionListResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetPartitionListResult2 {} -impl ::core::fmt::Debug for IFabricGetPartitionListResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetPartitionListResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetPartitionListResult2 { - type Vtable = IFabricGetPartitionListResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetPartitionListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb131b99a_d251_47b2_9d08_24ddd6793206); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetPartitionListResult2_Vtbl { - pub base__: IFabricGetPartitionListResult_Vtbl, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetPartitionLoadInformationResult(::windows::core::IUnknown); -impl IFabricGetPartitionLoadInformationResult { - pub unsafe fn get_PartitionLoadInformation( - &self, - ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_PartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetPartitionLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetPartitionLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetPartitionLoadInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetPartitionLoadInformationResult {} -impl ::core::fmt::Debug for IFabricGetPartitionLoadInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetPartitionLoadInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetPartitionLoadInformationResult { - type Vtable = IFabricGetPartitionLoadInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetPartitionLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetPartitionLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_PartitionLoadInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetProvisionedCodeVersionListResult(::windows::core::IUnknown); -impl IFabricGetProvisionedCodeVersionListResult { - pub unsafe fn get_ProvisionedCodeVersionList( - &self, - ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ProvisionedCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetProvisionedCodeVersionListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetProvisionedCodeVersionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetProvisionedCodeVersionListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetProvisionedCodeVersionListResult {} -impl ::core::fmt::Debug for IFabricGetProvisionedCodeVersionListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetProvisionedCodeVersionListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetProvisionedCodeVersionListResult { - type Vtable = IFabricGetProvisionedCodeVersionListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetProvisionedCodeVersionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd042bdb6_4364_4818_b395_0e6b1a22cb11); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetProvisionedConfigVersionListResult(::windows::core::IUnknown); -impl IFabricGetProvisionedConfigVersionListResult { - pub unsafe fn get_ProvisionedConfigVersionList( - &self, - ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ProvisionedConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetProvisionedConfigVersionListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetProvisionedConfigVersionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetProvisionedConfigVersionListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetProvisionedConfigVersionListResult {} -impl ::core::fmt::Debug for IFabricGetProvisionedConfigVersionListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetProvisionedConfigVersionListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetProvisionedConfigVersionListResult { - type Vtable = IFabricGetProvisionedConfigVersionListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetProvisionedConfigVersionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetRepairTaskListResult(::windows::core::IUnknown); -impl IFabricGetRepairTaskListResult { - pub unsafe fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST { - (::windows::core::Vtable::vtable(self).get_Tasks)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricGetRepairTaskListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetRepairTaskListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetRepairTaskListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetRepairTaskListResult {} -impl ::core::fmt::Debug for IFabricGetRepairTaskListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetRepairTaskListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetRepairTaskListResult { - type Vtable = IFabricGetRepairTaskListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetRepairTaskListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x576b2462_5f69_4351_87c7_3ec2d1654a22); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetRepairTaskListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Tasks: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPAIR_TASK_LIST, -} -#[repr(transparent)] -pub struct IFabricGetReplicaListResult(::windows::core::IUnknown); -impl IFabricGetReplicaListResult { - pub unsafe fn get_ReplicaList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ReplicaList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetReplicaListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetReplicaListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetReplicaListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetReplicaListResult {} -impl ::core::fmt::Debug for IFabricGetReplicaListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetReplicaListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetReplicaListResult { - type Vtable = IFabricGetReplicaListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetReplicaListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe00d3761_3ac5_407d_a04f_1b59486217cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetReplicaListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ReplicaList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetReplicaListResult2(::windows::core::IUnknown); -impl IFabricGetReplicaListResult2 { - pub unsafe fn get_ReplicaList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_ReplicaList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetReplicaListResult2, - ::windows::core::IUnknown, - IFabricGetReplicaListResult -); -impl ::core::clone::Clone for IFabricGetReplicaListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetReplicaListResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetReplicaListResult2 {} -impl ::core::fmt::Debug for IFabricGetReplicaListResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetReplicaListResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetReplicaListResult2 { - type Vtable = IFabricGetReplicaListResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetReplicaListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0bc12f86_c157_4c0d_b274_01fb09145934); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetReplicaListResult2_Vtbl { - pub base__: IFabricGetReplicaListResult_Vtbl, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetReplicaLoadInformationResult(::windows::core::IUnknown); -impl IFabricGetReplicaLoadInformationResult { - pub unsafe fn get_ReplicaLoadInformation( - &self, - ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetReplicaLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetReplicaLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetReplicaLoadInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetReplicaLoadInformationResult {} -impl ::core::fmt::Debug for IFabricGetReplicaLoadInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetReplicaLoadInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetReplicaLoadInformationResult { - type Vtable = IFabricGetReplicaLoadInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetReplicaLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe4190ca0_225c_11e4_8c21_0800200c9a66); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetReplicaLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ReplicaLoadInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricGetRollingUpgradeMonitoringPolicyResult(::windows::core::IUnknown); -impl IFabricGetRollingUpgradeMonitoringPolicyResult { - pub unsafe fn get_Policy(&self) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - (::windows::core::Vtable::vtable(self).get_Policy)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricGetRollingUpgradeMonitoringPolicyResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetRollingUpgradeMonitoringPolicyResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetRollingUpgradeMonitoringPolicyResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetRollingUpgradeMonitoringPolicyResult {} -impl ::core::fmt::Debug for IFabricGetRollingUpgradeMonitoringPolicyResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetRollingUpgradeMonitoringPolicyResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetRollingUpgradeMonitoringPolicyResult { - type Vtable = IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetRollingUpgradeMonitoringPolicyResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Policy: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, -} -#[repr(transparent)] -pub struct IFabricGetServiceGroupMemberListResult(::windows::core::IUnknown); -impl IFabricGetServiceGroupMemberListResult { - pub unsafe fn get_ServiceGroupMemberList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetServiceGroupMemberListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetServiceGroupMemberListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceGroupMemberListResult {} -impl ::core::fmt::Debug for IFabricGetServiceGroupMemberListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceGroupMemberListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceGroupMemberListResult { - type Vtable = IFabricGetServiceGroupMemberListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceGroupMemberListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceGroupMemberListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetServiceGroupMemberTypeListResult(::windows::core::IUnknown); -impl IFabricGetServiceGroupMemberTypeListResult { - pub unsafe fn get_ServiceGroupMemberTypeList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetServiceGroupMemberTypeListResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetServiceGroupMemberTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberTypeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceGroupMemberTypeListResult {} -impl ::core::fmt::Debug for IFabricGetServiceGroupMemberTypeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceGroupMemberTypeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceGroupMemberTypeListResult { - type Vtable = IFabricGetServiceGroupMemberTypeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceGroupMemberTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5e572763_29a9_463a_b602_1332c0f60e6b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , } -#[repr(transparent)] -pub struct IFabricGetServiceListResult(::windows::core::IUnknown); -impl IFabricGetServiceListResult { - pub unsafe fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetServiceListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceListResult {} -impl ::core::fmt::Debug for IFabricGetServiceListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceListResult { - type Vtable = IFabricGetServiceListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ServiceList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetServiceListResult2(::windows::core::IUnknown); -impl IFabricGetServiceListResult2 { - pub unsafe fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_ServiceList)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricGetServiceListResult2, - ::windows::core::IUnknown, - IFabricGetServiceListResult -); -impl ::core::clone::Clone for IFabricGetServiceListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceListResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceListResult2 {} -impl ::core::fmt::Debug for IFabricGetServiceListResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceListResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceListResult2 { - type Vtable = IFabricGetServiceListResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x30263683_4b25_4ec3_86d7_94ed86e7a8bf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceListResult2_Vtbl { - pub base__: IFabricGetServiceListResult_Vtbl, - pub get_PagingStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PAGING_STATUS, -} -#[repr(transparent)] -pub struct IFabricGetServiceNameResult(::windows::core::IUnknown); -impl IFabricGetServiceNameResult { - pub unsafe fn get_ServiceName(&self) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ServiceName)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetServiceNameResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceNameResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceNameResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceNameResult {} -impl ::core::fmt::Debug for IFabricGetServiceNameResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceNameResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceNameResult { - type Vtable = IFabricGetServiceNameResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceNameResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceNameResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ServiceName: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT, -} -#[repr(transparent)] -pub struct IFabricGetServiceTypeListResult(::windows::core::IUnknown); -impl IFabricGetServiceTypeListResult { - pub unsafe fn get_ServiceTypeList( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricGetServiceTypeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetServiceTypeListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetServiceTypeListResult {} -impl ::core::fmt::Debug for IFabricGetServiceTypeListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetServiceTypeListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetServiceTypeListResult { - type Vtable = IFabricGetServiceTypeListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetServiceTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetServiceTypeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ServiceTypeList: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricGetUnplacedReplicaInformationResult(::windows::core::IUnknown); -impl IFabricGetUnplacedReplicaInformationResult { - pub unsafe fn get_UnplacedReplicaInformation( - &self, - ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION { - (::windows::core::Vtable::vtable(self).get_UnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetUnplacedReplicaInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetUnplacedReplicaInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetUnplacedReplicaInformationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetUnplacedReplicaInformationResult {} -impl ::core::fmt::Debug for IFabricGetUnplacedReplicaInformationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetUnplacedReplicaInformationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetUnplacedReplicaInformationResult { - type Vtable = IFabricGetUnplacedReplicaInformationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetUnplacedReplicaInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9d86a611_3fd3_451b_9495_6a831f417473); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_UnplacedReplicaInformation: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION, -} -#[repr(transparent)] -pub struct IFabricHealthClient(::windows::core::IUnknown); -impl IFabricHealthClient { - pub unsafe fn ReportHealth( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) - .ok() - } - pub unsafe fn BeginGetClusterHealth<'a, P0>( - &self, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( - &self, - nodename: P0, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( - &self, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth<'a, P0>( - &self, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( - &self, - applicationname: *const u16, - nodename: P0, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( - &self, - applicationname: *const u16, - servicemanifestname: P0, - nodename: P1, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricHealthClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricHealthClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricHealthClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricHealthClient {} -impl ::core::fmt::Debug for IFabricHealthClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricHealthClient").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricHealthClient { - type Vtable = IFabricHealthClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricHealthClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricHealthClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub ReportHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::HRESULT, - pub BeginGetClusterHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetNodeHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetNodeHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetPartitionHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetPartitionHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetReplicaHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetReplicaHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetDeployedApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedServicePackageHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicemanifestname: ::windows::core::PCWSTR, - nodename: ::windows::core::PCWSTR, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetDeployedServicePackageHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricHealthClient2(::windows::core::IUnknown); -impl IFabricHealthClient2 { - pub unsafe fn ReportHealth( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) - .ok() - } - pub unsafe fn BeginGetClusterHealth<'a, P0>( - &self, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( - &self, - nodename: P0, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( - &self, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth<'a, P0>( - &self, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( - &self, - applicationname: *const u16, - nodename: P0, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( - &self, - applicationname: *const u16, - servicemanifestname: P0, - nodename: P1, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricHealthClient2, - ::windows::core::IUnknown, - IFabricHealthClient -); -impl ::core::clone::Clone for IFabricHealthClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricHealthClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricHealthClient2 {} -impl ::core::fmt::Debug for IFabricHealthClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricHealthClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricHealthClient2 { - type Vtable = IFabricHealthClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricHealthClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x66cbc014_d7b3_4f81_a498_e580feb9a1f5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricHealthClient2_Vtbl where { pub base__ : IFabricHealthClient_Vtbl , pub BeginGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricHealthClient3(::windows::core::IUnknown); -impl IFabricHealthClient3 { - pub unsafe fn ReportHealth( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) - .ok() - } - pub unsafe fn BeginGetClusterHealth<'a, P0>( - &self, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( - &self, - nodename: P0, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( - &self, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth<'a, P0>( - &self, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( - &self, - applicationname: *const u16, - nodename: P0, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( - &self, - applicationname: *const u16, - servicemanifestname: P0, - nodename: P1, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterHealthChunk<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealthChunk<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricHealthClient3, - ::windows::core::IUnknown, - IFabricHealthClient, - IFabricHealthClient2 -); -impl ::core::clone::Clone for IFabricHealthClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricHealthClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricHealthClient3 {} -impl ::core::fmt::Debug for IFabricHealthClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricHealthClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricHealthClient3 { - type Vtable = IFabricHealthClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricHealthClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdd3e4497_3373_458d_ad22_c88ebd27493e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricHealthClient3_Vtbl { - pub base__: IFabricHealthClient2_Vtbl, - pub BeginGetClusterHealthChunk: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetClusterHealthChunk: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricHealthClient4(::windows::core::IUnknown); -impl IFabricHealthClient4 { - pub unsafe fn ReportHealth( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) - .ok() - } - pub unsafe fn BeginGetClusterHealth<'a, P0>( - &self, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( - &self, - nodename: P0, - healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( - &self, - applicationname: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth<'a, P0>( - &self, - servicename: *const u16, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( - &self, - partitionid: ::windows::core::GUID, - replicaid: i64, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( - &self, - applicationname: *const u16, - nodename: P0, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( - &self, - applicationname: *const u16, - servicemanifestname: P0, - nodename: P1, - healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterHealthChunk<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterHealthChunk<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportHealth2( - &self, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ::core::mem::transmute(sendoptions), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricHealthClient4, - ::windows::core::IUnknown, - IFabricHealthClient, - IFabricHealthClient2, - IFabricHealthClient3 -); -impl ::core::clone::Clone for IFabricHealthClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricHealthClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricHealthClient4 {} -impl ::core::fmt::Debug for IFabricHealthClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricHealthClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricHealthClient4 { - type Vtable = IFabricHealthClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricHealthClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9f0401af_4909_404f_8696_0a71bd753e98); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricHealthClient4_Vtbl { - pub base__: IFabricHealthClient3_Vtbl, - pub ReportHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthreport: *const super::super::FABRIC_HEALTH_REPORT, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricInfrastructureServiceClient(::windows::core::IUnknown); -impl IFabricInfrastructureServiceClient { - pub unsafe fn BeginInvokeInfrastructureCommand<'a, P0, P1>( - &self, - servicename: *const u16, - command: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginInvokeInfrastructureCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - command.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndInvokeInfrastructureCommand<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndInvokeInfrastructureCommand)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginInvokeInfrastructureQuery<'a, P0, P1>( - &self, - servicename: *const u16, - command: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginInvokeInfrastructureQuery)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - command.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndInvokeInfrastructureQuery<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndInvokeInfrastructureQuery)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricInfrastructureServiceClient, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricInfrastructureServiceClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricInfrastructureServiceClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricInfrastructureServiceClient {} -impl ::core::fmt::Debug for IFabricInfrastructureServiceClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricInfrastructureServiceClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricInfrastructureServiceClient { - type Vtable = IFabricInfrastructureServiceClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricInfrastructureServiceClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricInfrastructureServiceClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginInvokeInfrastructureCommand: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - command: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndInvokeInfrastructureCommand: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginInvokeInfrastructureQuery: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicename: *const u16, - command: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndInvokeInfrastructureQuery: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricMovePrimaryResult(::windows::core::IUnknown); -impl IFabricMovePrimaryResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricMovePrimaryResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricMovePrimaryResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricMovePrimaryResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricMovePrimaryResult {} -impl ::core::fmt::Debug for IFabricMovePrimaryResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricMovePrimaryResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricMovePrimaryResult { - type Vtable = IFabricMovePrimaryResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricMovePrimaryResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x66ac03f5_e61c_47a2_80fe_49309a02c92c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricMovePrimaryResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT, -} -#[repr(transparent)] -pub struct IFabricMoveSecondaryResult(::windows::core::IUnknown); -impl IFabricMoveSecondaryResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricMoveSecondaryResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricMoveSecondaryResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricMoveSecondaryResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricMoveSecondaryResult {} -impl ::core::fmt::Debug for IFabricMoveSecondaryResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricMoveSecondaryResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricMoveSecondaryResult { - type Vtable = IFabricMoveSecondaryResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricMoveSecondaryResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x60fe896a_b690_4abb_94fd_86c615d29bee); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricMoveSecondaryResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT, -} -#[repr(transparent)] -pub struct IFabricNameEnumerationResult(::windows::core::IUnknown); -impl IFabricNameEnumerationResult { - pub unsafe fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS { - (::windows::core::Vtable::vtable(self).get_EnumerationStatus)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetNames( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricNameEnumerationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNameEnumerationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNameEnumerationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNameEnumerationResult {} -impl ::core::fmt::Debug for IFabricNameEnumerationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNameEnumerationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNameEnumerationResult { - type Vtable = IFabricNameEnumerationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNameEnumerationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x557e8105_f4f4_4fd3_9d21_075f34e2f98c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNameEnumerationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_EnumerationStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> super::super::FABRIC_ENUMERATION_STATUS, - pub GetNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricNetworkManagementClient(::windows::core::IUnknown); -impl IFabricNetworkManagementClient { - pub unsafe fn BeginCreateNetwork<'a, P0, P1>( - &self, - networkname: P0, - description: *const super::super::FABRIC_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateNetwork)( - ::windows::core::Vtable::as_raw(self), - networkname.into(), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateNetwork<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateNetwork)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteNetwork<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteNetwork)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteNetwork<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteNetwork)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetNetworkList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNetworkList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNetworkApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNetworkApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNetworkNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNetworkNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationNetworkList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationNetworkList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedNetworkList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedNetworkList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedNetworkCodePackageList<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedNetworkCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricNetworkManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNetworkManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNetworkManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNetworkManagementClient {} -impl ::core::fmt::Debug for IFabricNetworkManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNetworkManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNetworkManagementClient { - type Vtable = IFabricNetworkManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNetworkManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNetworkManagementClient_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub BeginCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , networkname : :: windows::core::PCWSTR , description : *const super::super:: FABRIC_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , deletedescription : *const super::super:: FABRIC_DELETE_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_NODE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricNodeHealthResult(::windows::core::IUnknown); -impl IFabricNodeHealthResult { - pub unsafe fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH { - (::windows::core::Vtable::vtable(self).get_NodeHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricNodeHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNodeHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNodeHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNodeHealthResult {} -impl ::core::fmt::Debug for IFabricNodeHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNodeHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNodeHealthResult { - type Vtable = IFabricNodeHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNodeHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe461f70b_51b8_4b73_9f35_e38e5ac68719); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNodeHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NodeHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_HEALTH, -} -#[repr(transparent)] -pub struct IFabricNodeTransitionProgressResult(::windows::core::IUnknown); -impl IFabricNodeTransitionProgressResult { - pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricNodeTransitionProgressResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricNodeTransitionProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNodeTransitionProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNodeTransitionProgressResult {} -impl ::core::fmt::Debug for IFabricNodeTransitionProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNodeTransitionProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNodeTransitionProgressResult { - type Vtable = IFabricNodeTransitionProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNodeTransitionProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x68a98626_6a1b_4dd8_ad93_74c0936e86aa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNodeTransitionProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricOrchestrationUpgradeStatusResult(::windows::core::IUnknown); -impl IFabricOrchestrationUpgradeStatusResult { - pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricOrchestrationUpgradeStatusResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricOrchestrationUpgradeStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOrchestrationUpgradeStatusResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOrchestrationUpgradeStatusResult {} -impl ::core::fmt::Debug for IFabricOrchestrationUpgradeStatusResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOrchestrationUpgradeStatusResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOrchestrationUpgradeStatusResult { - type Vtable = IFabricOrchestrationUpgradeStatusResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOrchestrationUpgradeStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x95a56e4a_490d_445e_865c_ef0a62f15504); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricPartitionDataLossProgressResult(::windows::core::IUnknown); -impl IFabricPartitionDataLossProgressResult { - pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricPartitionDataLossProgressResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricPartitionDataLossProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPartitionDataLossProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPartitionDataLossProgressResult {} -impl ::core::fmt::Debug for IFabricPartitionDataLossProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPartitionDataLossProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPartitionDataLossProgressResult { - type Vtable = IFabricPartitionDataLossProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPartitionDataLossProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x614921e6_75f1_44e7_9107_ab88819136b8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPartitionDataLossProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricPartitionHealthResult(::windows::core::IUnknown); -impl IFabricPartitionHealthResult { - pub unsafe fn get_PartitionHealth(&self) -> *mut super::super::FABRIC_PARTITION_HEALTH { - (::windows::core::Vtable::vtable(self).get_PartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricPartitionHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPartitionHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPartitionHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPartitionHealthResult {} -impl ::core::fmt::Debug for IFabricPartitionHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPartitionHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPartitionHealthResult { - type Vtable = IFabricPartitionHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPartitionHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPartitionHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_PartitionHealth: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_HEALTH, -} -#[repr(transparent)] -pub struct IFabricPartitionQuorumLossProgressResult(::windows::core::IUnknown); -impl IFabricPartitionQuorumLossProgressResult { - pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricPartitionQuorumLossProgressResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricPartitionQuorumLossProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPartitionQuorumLossProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPartitionQuorumLossProgressResult {} -impl ::core::fmt::Debug for IFabricPartitionQuorumLossProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPartitionQuorumLossProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPartitionQuorumLossProgressResult { - type Vtable = IFabricPartitionQuorumLossProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPartitionQuorumLossProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x36d8e378_3706_403d_8d99_2afd1a120687); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPartitionQuorumLossProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricPartitionRestartProgressResult(::windows::core::IUnknown); -impl IFabricPartitionRestartProgressResult { - pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricPartitionRestartProgressResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricPartitionRestartProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPartitionRestartProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPartitionRestartProgressResult {} -impl ::core::fmt::Debug for IFabricPartitionRestartProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPartitionRestartProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPartitionRestartProgressResult { - type Vtable = IFabricPartitionRestartProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPartitionRestartProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPartitionRestartProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Progress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS, -} -#[repr(transparent)] -pub struct IFabricPropertyBatchResult(::windows::core::IUnknown); -impl IFabricPropertyBatchResult { - pub unsafe fn GetProperty( - &self, - operationindexinrequest: u32, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetProperty)( - ::windows::core::Vtable::as_raw(self), - operationindexinrequest, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyBatchResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyBatchResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyBatchResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyBatchResult {} -impl ::core::fmt::Debug for IFabricPropertyBatchResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyBatchResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyBatchResult { - type Vtable = IFabricPropertyBatchResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyBatchResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyBatchResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - operationindexinrequest: u32, - property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricPropertyEnumerationResult(::windows::core::IUnknown); -impl IFabricPropertyEnumerationResult { - pub unsafe fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS { - (::windows::core::Vtable::vtable(self).get_EnumerationStatus)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_PropertyCount(&self) -> u32 { - (::windows::core::Vtable::vtable(self).get_PropertyCount)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn GetProperty( - &self, - index: u32, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetProperty)( - ::windows::core::Vtable::as_raw(self), - index, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyEnumerationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyEnumerationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyEnumerationResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyEnumerationResult {} -impl ::core::fmt::Debug for IFabricPropertyEnumerationResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyEnumerationResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyEnumerationResult { - type Vtable = IFabricPropertyEnumerationResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyEnumerationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa42da40d_a637_478d_83f3_2813871234cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyEnumerationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_EnumerationStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> super::super::FABRIC_ENUMERATION_STATUS, - pub get_PropertyCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> u32, - pub GetProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - index: u32, - property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricPropertyManagementClient(::windows::core::IUnknown); -impl IFabricPropertyManagementClient { - pub unsafe fn BeginCreateName<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteName<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginNameExists<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginNameExists)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNameExists<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndNameExists)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginEnumerateSubNames<'a, P0, P1, P2>( - &self, - name: *const u16, - previousresult: P0, - recursive: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricNameEnumerationResult>>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - previousresult.into().abi(), - recursive.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndEnumerateSubNames<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginPutPropertyBinary<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.len() as _, - ::core::mem::transmute(data.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyBinary<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyInt64<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: i64, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyInt64<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyDouble<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: f64, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyDouble<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyWString<'a, P0, P1, P2>( - &self, - name: *const u16, - propertyname: P0, - data: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyWString<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginPutPropertyGuid<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - ::core::mem::transmute(data), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyGuid<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteProperty<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteProperty<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPropertyMetadata<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPropertyMetadata<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProperty<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProperty<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSubmitPropertyBatch<'a, P0>( - &self, - name: *const u16, - operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - operations.len() as _, - ::core::mem::transmute(operations.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSubmitPropertyBatch<'a, P0>( - &self, - context: P0, - failedoperationindexinrequest: *mut u32, - result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(failedoperationindexinrequest), - ::core::mem::transmute(result), - ) - .ok() - } - pub unsafe fn BeginEnumerateProperties<'a, P0, P1, P2>( - &self, - name: *const u16, - includevalues: P0, - previousresult: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricPropertyEnumerationResult>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - includevalues.into(), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndEnumerateProperties<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyManagementClient {} -impl ::core::fmt::Debug for IFabricPropertyManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyManagementClient { - type Vtable = IFabricPropertyManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26e58816_b5d5_4f08_9770_dbf0410c99d6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginCreateName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginDeleteName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginNameExists: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndNameExists: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - value: *mut u8, - ) -> ::windows::core::HRESULT, - pub BeginEnumerateSubNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - previousresult: *mut ::core::ffi::c_void, - recursive: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndEnumerateSubNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginPutPropertyBinary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - datalength: u32, - data: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutPropertyBinary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginPutPropertyInt64: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: i64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutPropertyInt64: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginPutPropertyDouble: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: f64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutPropertyDouble: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginPutPropertyWString: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutPropertyWString: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginPutPropertyGuid: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutPropertyGuid: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginDeleteProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetPropertyMetadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetPropertyMetadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetProperty: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginSubmitPropertyBatch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - operationcount: u32, - operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndSubmitPropertyBatch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - failedoperationindexinrequest: *mut u32, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginEnumerateProperties: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - includevalues: ::windows::Win32::Foundation::BOOLEAN, - previousresult: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndEnumerateProperties: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricPropertyManagementClient2(::windows::core::IUnknown); -impl IFabricPropertyManagementClient2 { - pub unsafe fn BeginCreateName<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginCreateName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndCreateName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteName<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginDeleteName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndDeleteName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginNameExists<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginNameExists)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndNameExists<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndNameExists)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginEnumerateSubNames<'a, P0, P1, P2>( - &self, - name: *const u16, - previousresult: P0, - recursive: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricNameEnumerationResult>>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - previousresult.into().abi(), - recursive.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndEnumerateSubNames<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginPutPropertyBinary<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.len() as _, - ::core::mem::transmute(data.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyBinary<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginPutPropertyInt64<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: i64, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyInt64<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginPutPropertyDouble<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: f64, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyDouble<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginPutPropertyWString<'a, P0, P1, P2>( - &self, - name: *const u16, - propertyname: P0, - data: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyWString<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginPutPropertyGuid<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - data: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - ::core::mem::transmute(data), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutPropertyGuid<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndPutPropertyGuid)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginDeleteProperty<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteProperty<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteProperty)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetPropertyMetadata<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPropertyMetadata<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProperty<'a, P0, P1>( - &self, - name: *const u16, - propertyname: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProperty<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSubmitPropertyBatch<'a, P0>( - &self, - name: *const u16, - operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - operations.len() as _, - ::core::mem::transmute(operations.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSubmitPropertyBatch<'a, P0>( - &self, - context: P0, - failedoperationindexinrequest: *mut u32, - result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(failedoperationindexinrequest), - ::core::mem::transmute(result), - ) - .ok() - } - pub unsafe fn BeginEnumerateProperties<'a, P0, P1, P2>( - &self, - name: *const u16, - includevalues: P0, - previousresult: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricPropertyEnumerationResult>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - includevalues.into(), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndEnumerateProperties<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginPutCustomPropertyOperation<'a, P0>( - &self, - name: *const u16, - propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutCustomPropertyOperation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(propertyoperation), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPutCustomPropertyOperation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndPutCustomPropertyOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricPropertyManagementClient2, - ::windows::core::IUnknown, - IFabricPropertyManagementClient -); -impl ::core::clone::Clone for IFabricPropertyManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyManagementClient2 {} -impl ::core::fmt::Debug for IFabricPropertyManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyManagementClient2 { - type Vtable = IFabricPropertyManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x04991c28_3f9d_4a49_9322_a56d308965fd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyManagementClient2_Vtbl { - pub base__: IFabricPropertyManagementClient_Vtbl, - pub BeginPutCustomPropertyOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPutCustomPropertyOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricPropertyMetadataResult(::windows::core::IUnknown); -impl IFabricPropertyMetadataResult { - pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyMetadataResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyMetadataResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyMetadataResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyMetadataResult {} -impl ::core::fmt::Debug for IFabricPropertyMetadataResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyMetadataResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyMetadataResult { - type Vtable = IFabricPropertyMetadataResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyMetadataResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x33302306_fb8d_4831_b493_57efcc772462); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyMetadataResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Metadata: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA, -} -#[repr(transparent)] -pub struct IFabricPropertyValueResult(::windows::core::IUnknown); -impl IFabricPropertyValueResult { - pub unsafe fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY { - (::windows::core::Vtable::vtable(self).get_Property)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetValueAsBinary( - &self, - bytecount: *mut u32, - bufferedvalue: *mut *mut u8, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetValueAsBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(bytecount), - ::core::mem::transmute(bufferedvalue), - ) - .ok() - } - pub unsafe fn GetValueAsInt64(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetValueAsDouble(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetValueAsWString(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<::windows::core::PWSTR>(result__) - } - pub unsafe fn GetValueAsGuid(&self) -> ::windows::core::Result<::windows::core::GUID> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<::windows::core::GUID>(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyValueResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyValueResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPropertyValueResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPropertyValueResult {} -impl ::core::fmt::Debug for IFabricPropertyValueResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPropertyValueResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPropertyValueResult { - type Vtable = IFabricPropertyValueResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPropertyValueResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9a518b49_9903_4b8f_834e_1979e9c6745e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPropertyValueResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Property: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NAMED_PROPERTY, - pub GetValueAsBinary: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - bytecount: *mut u32, - bufferedvalue: *mut *mut u8, - ) -> ::windows::core::HRESULT, - pub GetValueAsInt64: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - value: *mut i64, - ) -> ::windows::core::HRESULT, - pub GetValueAsDouble: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - value: *mut f64, - ) -> ::windows::core::HRESULT, - pub GetValueAsWString: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, - pub GetValueAsGuid: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - value: *mut ::windows::core::GUID, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient(::windows::core::IUnknown); -impl IFabricQueryClient { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricQueryClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricQueryClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient {} -impl ::core::fmt::Debug for IFabricQueryClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient { - type Vtable = IFabricQueryClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc629e422_90ba_4efd_8f64_cecf51bc3df0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginGetNodeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetNodeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetApplicationTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetApplicationList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetPartitionList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetPartitionList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetReplicaList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetReplicaList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedApplicationList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetDeployedApplicationList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedServicePackageList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetDeployedServicePackageList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub BeginGetDeployedServiceTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetDeployedServiceTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedCodePackageList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetDeployedCodePackageList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetDeployedReplicaList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetDeployedReplicaList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient10(::windows::core::IUnknown); -impl IFabricQueryClient10 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypePagedList<'a, P0>( - &self, - querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypePagedList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationPagedList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationPagedList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient10, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7, - IFabricQueryClient8, - IFabricQueryClient9 -); -impl ::core::clone::Clone for IFabricQueryClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient10 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient10 {} -impl ::core::fmt::Debug for IFabricQueryClient10 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient10") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient10 { - type Vtable = IFabricQueryClient10_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x02139da8_7140_42ae_8403_79a551600e63); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient10_Vtbl { - pub base__: IFabricQueryClient9_Vtbl, - pub BeginGetDeployedApplicationPagedList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetDeployedApplicationPagedList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient2(::windows::core::IUnknown); -impl IFabricQueryClient2 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient2, - ::windows::core::IUnknown, - IFabricQueryClient -); -impl ::core::clone::Clone for IFabricQueryClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient2 {} -impl ::core::fmt::Debug for IFabricQueryClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient2").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient2 { - type Vtable = IFabricQueryClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient2_Vtbl where { pub base__ : IFabricQueryClient_Vtbl , pub BeginGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricQueryClient3(::windows::core::IUnknown); -impl IFabricQueryClient3 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient3, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2 -); -impl ::core::clone::Clone for IFabricQueryClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient3 {} -impl ::core::fmt::Debug for IFabricQueryClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient3").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient3 { - type Vtable = IFabricQueryClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x16f563f3_4017_496e_b0e7_2650de5774b3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient3_Vtbl { - pub base__: IFabricQueryClient2_Vtbl, - pub BeginGetNodeLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetNodeLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetReplicaLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetReplicaLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient4(::windows::core::IUnknown); -impl IFabricQueryClient4 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient4, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3 -); -impl ::core::clone::Clone for IFabricQueryClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient4 {} -impl ::core::fmt::Debug for IFabricQueryClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient4").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient4 { - type Vtable = IFabricQueryClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xab92081d_0d78_410b_9777_0846dba24c10); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient4_Vtbl { - pub base__: IFabricQueryClient3_Vtbl, - pub BeginGetServiceGroupMemberList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceGroupMemberList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceGroupMemberTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetServiceGroupMemberTypeList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient5(::windows::core::IUnknown); -impl IFabricQueryClient5 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient5, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4 -); -impl ::core::clone::Clone for IFabricQueryClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient5 {} -impl ::core::fmt::Debug for IFabricQueryClient5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient5").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient5 { - type Vtable = IFabricQueryClient5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x75c35e8c_87a2_4810_a401_b50da858fe34); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient5_Vtbl { - pub base__: IFabricQueryClient4_Vtbl, - pub BeginGetUnplacedReplicaInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetUnplacedReplicaInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient6(::windows::core::IUnknown); -impl IFabricQueryClient6 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient6, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5 -); -impl ::core::clone::Clone for IFabricQueryClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient6 {} -impl ::core::fmt::Debug for IFabricQueryClient6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient6").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient6 { - type Vtable = IFabricQueryClient6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient6_Vtbl { - pub base__: IFabricQueryClient5_Vtbl, - pub EndGetNodeList2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationList2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceList2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetPartitionList2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetReplicaList2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient7(::windows::core::IUnknown); -impl IFabricQueryClient7 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient7, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6 -); -impl ::core::clone::Clone for IFabricQueryClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient7 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient7 {} -impl ::core::fmt::Debug for IFabricQueryClient7 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient7").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient7 { - type Vtable = IFabricQueryClient7_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x538baa81_ba97_46da_95ac_e1cdd184cc74); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient7_Vtbl { - pub base__: IFabricQueryClient6_Vtbl, - pub BeginGetApplicationLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetApplicationLoadInformation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient8(::windows::core::IUnknown); -impl IFabricQueryClient8 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient8, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7 -); -impl ::core::clone::Clone for IFabricQueryClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient8 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient8 {} -impl ::core::fmt::Debug for IFabricQueryClient8 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient8").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient8 { - type Vtable = IFabricQueryClient8_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2c850629_6a83_4fc3_8468_c868b87e9a17); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient8_Vtbl { - pub base__: IFabricQueryClient7_Vtbl, - pub BeginGetServiceName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetApplicationName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetApplicationName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricQueryClient9(::windows::core::IUnknown); -impl IFabricQueryClient9 { - pub unsafe fn BeginGetNodeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetReplicaList2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( - &self, - querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationName<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationName<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetApplicationTypePagedList<'a, P0>( - &self, - querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetApplicationTypePagedList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricQueryClient9, - ::windows::core::IUnknown, - IFabricQueryClient, - IFabricQueryClient2, - IFabricQueryClient3, - IFabricQueryClient4, - IFabricQueryClient5, - IFabricQueryClient6, - IFabricQueryClient7, - IFabricQueryClient8 -); -impl ::core::clone::Clone for IFabricQueryClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricQueryClient9 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricQueryClient9 {} -impl ::core::fmt::Debug for IFabricQueryClient9 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricQueryClient9").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricQueryClient9 { - type Vtable = IFabricQueryClient9_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricQueryClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x76f0b4a5_4941_49d7_993c_ad7afc37c6af); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricQueryClient9_Vtbl { - pub base__: IFabricQueryClient8_Vtbl, - pub BeginGetApplicationTypePagedList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndGetApplicationTypePagedList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricRepairManagementClient(::windows::core::IUnknown); -impl IFabricRepairManagementClient { - pub unsafe fn BeginCreateRepairTask<'a, P0>( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginForceApproveRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndForceApproveRepairTask<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginDeleteRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateRepairExecutionState<'a, P0>( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateRepairExecutionState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetRepairTaskList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetRepairTaskList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricRepairManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRepairManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricRepairManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricRepairManagementClient {} -impl ::core::fmt::Debug for IFabricRepairManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricRepairManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricRepairManagementClient { - type Vtable = IFabricRepairManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricRepairManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xee483ba5_9018_4c99_9804_be6185db88e6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricRepairManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginCreateRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginCancelRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCancelRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginForceApproveRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndForceApproveRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginDeleteRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteRepairTask: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUpdateRepairExecutionState: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateRepairExecutionState: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginGetRepairTaskList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetRepairTaskList: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricRepairManagementClient2(::windows::core::IUnknown); -impl IFabricRepairManagementClient2 { - pub unsafe fn BeginCreateRepairTask<'a, P0>( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginForceApproveRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndForceApproveRepairTask<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginDeleteRepairTask<'a, P0>( - &self, - requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginUpdateRepairExecutionState<'a, P0>( - &self, - repairtask: *const super::super::FABRIC_REPAIR_TASK, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateRepairExecutionState<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetRepairTaskList<'a, P0>( - &self, - querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetRepairTaskList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateRepairTaskHealthPolicy<'a, P0>( - &self, - updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateRepairTaskHealthPolicy)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(updatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateRepairTaskHealthPolicy<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndUpdateRepairTaskHealthPolicy)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricRepairManagementClient2, - ::windows::core::IUnknown, - IFabricRepairManagementClient -); -impl ::core::clone::Clone for IFabricRepairManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricRepairManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricRepairManagementClient2 {} -impl ::core::fmt::Debug for IFabricRepairManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricRepairManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricRepairManagementClient2 { - type Vtable = IFabricRepairManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricRepairManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5067d775_3baa_48e4_8c72_bb5573cc3fb8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricRepairManagementClient2_Vtbl { - pub base__: IFabricRepairManagementClient_Vtbl, - pub BeginUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitversion: *mut i64, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricReplicaHealthResult(::windows::core::IUnknown); -impl IFabricReplicaHealthResult { - pub unsafe fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH { - (::windows::core::Vtable::vtable(self).get_ReplicaHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricReplicaHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicaHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricReplicaHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricReplicaHealthResult {} -impl ::core::fmt::Debug for IFabricReplicaHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricReplicaHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricReplicaHealthResult { - type Vtable = IFabricReplicaHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricReplicaHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricReplicaHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ReplicaHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_REPLICA_HEALTH, -} -#[repr(transparent)] -pub struct IFabricResolvedServicePartitionResult(::windows::core::IUnknown); -impl IFabricResolvedServicePartitionResult { - pub unsafe fn get_Partition(&self) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION { - (::windows::core::Vtable::vtable(self).get_Partition)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetEndpoint( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetEndpoint)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>(result__) - } - pub unsafe fn CompareVersion<'a, P0>(&self, other: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CompareVersion)( - ::windows::core::Vtable::as_raw(self), - other.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricResolvedServicePartitionResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricResolvedServicePartitionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricResolvedServicePartitionResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricResolvedServicePartitionResult {} -impl ::core::fmt::Debug for IFabricResolvedServicePartitionResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricResolvedServicePartitionResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricResolvedServicePartitionResult { - type Vtable = IFabricResolvedServicePartitionResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricResolvedServicePartitionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricResolvedServicePartitionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Partition: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION, - pub GetEndpoint: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - endpoint: *mut *mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> ::windows::core::HRESULT, - pub CompareVersion: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - other: *mut ::core::ffi::c_void, - compareresult: *mut i32, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricRestartDeployedCodePackageResult(::windows::core::IUnknown); -impl IFabricRestartDeployedCodePackageResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricRestartDeployedCodePackageResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricRestartDeployedCodePackageResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricRestartDeployedCodePackageResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricRestartDeployedCodePackageResult {} -impl ::core::fmt::Debug for IFabricRestartDeployedCodePackageResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricRestartDeployedCodePackageResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricRestartDeployedCodePackageResult { - type Vtable = IFabricRestartDeployedCodePackageResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricRestartDeployedCodePackageResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricRestartDeployedCodePackageResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT, -} -#[repr(transparent)] -pub struct IFabricRestartNodeResult(::windows::core::IUnknown); -impl IFabricRestartNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricRestartNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRestartNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricRestartNodeResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricRestartNodeResult {} -impl ::core::fmt::Debug for IFabricRestartNodeResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricRestartNodeResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricRestartNodeResult { - type Vtable = IFabricRestartNodeResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricRestartNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricRestartNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT, -} -#[repr(transparent)] -pub struct IFabricSecretReferencesResult(::windows::core::IUnknown); -impl IFabricSecretReferencesResult { - pub unsafe fn get_SecretReferences(&self) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST { - (::windows::core::Vtable::vtable(self).get_SecretReferences)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricSecretReferencesResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretReferencesResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricSecretReferencesResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricSecretReferencesResult {} -impl ::core::fmt::Debug for IFabricSecretReferencesResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricSecretReferencesResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricSecretReferencesResult { - type Vtable = IFabricSecretReferencesResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricSecretReferencesResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbb8f69de_f667_4fab_820d_274cf4303ab4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricSecretReferencesResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_SecretReferences: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST, -} -#[repr(transparent)] -pub struct IFabricSecretStoreClient(::windows::core::IUnknown); -impl IFabricSecretStoreClient { - pub unsafe fn BeginGetSecrets<'a, P0, P1>( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - includevalue: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), - includevalue.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetSecrets<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSetSecrets<'a, P0>( - &self, - secrets: *const super::super::FABRIC_SECRET_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secrets), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSetSecrets<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndSetSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRemoveSecrets<'a, P0>( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRemoveSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRemoveSecrets<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRemoveSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetSecretVersions<'a, P0>( - &self, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetSecretVersions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetSecretVersions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetSecretVersions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricSecretStoreClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretStoreClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricSecretStoreClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricSecretStoreClient {} -impl ::core::fmt::Debug for IFabricSecretStoreClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricSecretStoreClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricSecretStoreClient { - type Vtable = IFabricSecretStoreClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricSecretStoreClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x38c4c723_3815_49d8_bdf2_68bfb536b8c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricSecretStoreClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginGetSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - includevalue: ::windows::Win32::Foundation::BOOLEAN, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginSetSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - secrets: *const super::super::FABRIC_SECRET_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndSetSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRemoveSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRemoveSecrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetSecretVersions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetSecretVersions: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricSecretsResult(::windows::core::IUnknown); -impl IFabricSecretsResult { - pub unsafe fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST { - (::windows::core::Vtable::vtable(self).get_Secrets)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricSecretsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricSecretsResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricSecretsResult {} -impl ::core::fmt::Debug for IFabricSecretsResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricSecretsResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricSecretsResult { - type Vtable = IFabricSecretsResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricSecretsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe15a879_0dbe_4841_9cc6_6e92077cd669); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricSecretsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Secrets: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECRET_LIST, -} -#[repr(transparent)] -pub struct IFabricServiceDescriptionResult(::windows::core::IUnknown); -impl IFabricServiceDescriptionResult { - pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricServiceDescriptionResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceDescriptionResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceDescriptionResult {} -impl ::core::fmt::Debug for IFabricServiceDescriptionResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceDescriptionResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceDescriptionResult { - type Vtable = IFabricServiceDescriptionResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x86b4f744_38c7_4dab_b6b4_11c23734c269); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Description: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_DESCRIPTION, -} -#[repr(transparent)] -pub struct IFabricServiceEndpointsVersion(::windows::core::IUnknown); -impl IFabricServiceEndpointsVersion { - pub unsafe fn Compare<'a, P0>(&self, other: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceEndpointsVersion>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Compare)( - ::windows::core::Vtable::as_raw(self), - other.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceEndpointsVersion, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceEndpointsVersion { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceEndpointsVersion { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceEndpointsVersion {} -impl ::core::fmt::Debug for IFabricServiceEndpointsVersion { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceEndpointsVersion") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceEndpointsVersion { - type Vtable = IFabricServiceEndpointsVersion_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceEndpointsVersion { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0a673dc5_2297_4fc5_a38f_482d29144fa5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceEndpointsVersion_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub Compare: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - other: *mut ::core::ffi::c_void, - compareresult: *mut i32, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceGroupDescriptionResult(::windows::core::IUnknown); -impl IFabricServiceGroupDescriptionResult { - pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!( - IFabricServiceGroupDescriptionResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricServiceGroupDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupDescriptionResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupDescriptionResult {} -impl ::core::fmt::Debug for IFabricServiceGroupDescriptionResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupDescriptionResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupDescriptionResult { - type Vtable = IFabricServiceGroupDescriptionResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ca814d4_e067_48b7_9bdc_9be33810416d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, -} -#[repr(transparent)] -pub struct IFabricServiceGroupManagementClient(::windows::core::IUnknown); -impl IFabricServiceGroupManagementClient { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricServiceGroupManagementClient, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupManagementClient {} -impl ::core::fmt::Debug for IFabricServiceGroupManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient { - type Vtable = IFabricServiceGroupManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2061227e_0281_4baf_9b19_b2dfb2e63bbe); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginCreateServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginDeleteServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceGroupDescription: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceGroupDescription: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceGroupManagementClient2(::windows::core::IUnknown); -impl IFabricServiceGroupManagementClient2 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( - &self, - name: *const u16, - servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceGroupManagementClient2, - ::windows::core::IUnknown, - IFabricServiceGroupManagementClient -); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupManagementClient2 {} -impl ::core::fmt::Debug for IFabricServiceGroupManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient2 { - type Vtable = IFabricServiceGroupManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupManagementClient2_Vtbl { - pub base__: IFabricServiceGroupManagementClient_Vtbl, - pub BeginUpdateServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateServiceGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceGroupManagementClient3(::windows::core::IUnknown); -impl IFabricServiceGroupManagementClient3 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( - &self, - name: *const u16, - servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginCreateServiceGroupFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroupFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceGroupManagementClient3, - ::windows::core::IUnknown, - IFabricServiceGroupManagementClient, - IFabricServiceGroupManagementClient2 -); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupManagementClient3 {} -impl ::core::fmt::Debug for IFabricServiceGroupManagementClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupManagementClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient3 { - type Vtable = IFabricServiceGroupManagementClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupManagementClient3_Vtbl { - pub base__: IFabricServiceGroupManagementClient2_Vtbl, - pub BeginCreateServiceGroupFromTemplate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndCreateServiceGroupFromTemplate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceGroupManagementClient4(::windows::core::IUnknown); -impl IFabricServiceGroupManagementClient4 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( - &self, - name: *const u16, - servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginCreateServiceGroupFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroupFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateServiceGroupFromTemplate2<'a, P0>( - &self, - servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroupFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicegroupfromtemplatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceGroupFromTemplate2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroupFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceGroupManagementClient4, - ::windows::core::IUnknown, - IFabricServiceGroupManagementClient, - IFabricServiceGroupManagementClient2, - IFabricServiceGroupManagementClient3 -); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupManagementClient4 {} -impl ::core::fmt::Debug for IFabricServiceGroupManagementClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupManagementClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient4 { - type Vtable = IFabricServiceGroupManagementClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3c73b32e_9a08_48ca_b3a3_993a2029e37a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupManagementClient4_Vtbl where { pub base__ : IFabricServiceGroupManagementClient3_Vtbl , pub BeginCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricServiceHealthResult(::windows::core::IUnknown); -impl IFabricServiceHealthResult { - pub unsafe fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH { - (::windows::core::Vtable::vtable(self).get_ServiceHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricServiceHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceHealthResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceHealthResult {} -impl ::core::fmt::Debug for IFabricServiceHealthResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceHealthResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceHealthResult { - type Vtable = IFabricServiceHealthResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x52040bd9_a78e_4308_a30e_7114e3684e76); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ServiceHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_HEALTH, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient(::windows::core::IUnknown); -impl IFabricServiceManagementClient { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient {} -impl ::core::fmt::Debug for IFabricServiceManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient { - type Vtable = IFabricServiceManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf7368189_fd1f_437c_888d_8c89cecc57a0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginCreateService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginCreateServiceFromTemplate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationname: *const u16, - servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, - initializationdatasize: u32, - initializationdata: *const u8, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCreateServiceFromTemplate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginDeleteService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetServiceDescription: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceDescription: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub RegisterServicePartitionResolutionChangeHandler: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT, - pub UnregisterServicePartitionResolutionChangeHandler: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT, - pub BeginResolveServicePartition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndResolveServicePartition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient2(::windows::core::IUnknown); -impl IFabricServiceManagementClient2 { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateService<'a, P0>( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceManagementClient2, - ::windows::core::IUnknown, - IFabricServiceManagementClient -); -impl ::core::clone::Clone for IFabricServiceManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient2 {} -impl ::core::fmt::Debug for IFabricServiceManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient2 { - type Vtable = IFabricServiceManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient2_Vtbl { - pub base__: IFabricServiceManagementClient_Vtbl, - pub BeginGetServiceManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetServiceManifest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUpdateService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateService: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient3(::windows::core::IUnknown); -impl IFabricServiceManagementClient3 { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateService<'a, P0>( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRemoveReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestartReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRestartReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceManagementClient3, - ::windows::core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2 -); -impl ::core::clone::Clone for IFabricServiceManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient3 {} -impl ::core::fmt::Debug for IFabricServiceManagementClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient3 { - type Vtable = IFabricServiceManagementClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient3_Vtbl { - pub base__: IFabricServiceManagementClient2_Vtbl, - pub BeginRemoveReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRemoveReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRestartReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRestartReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient4(::windows::core::IUnknown); -impl IFabricServiceManagementClient4 { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateService<'a, P0>( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRemoveReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( - &self, - filterid: i64, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - filterid, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceManagementClient4, - ::windows::core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3 -); -impl ::core::clone::Clone for IFabricServiceManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient4 {} -impl ::core::fmt::Debug for IFabricServiceManagementClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient4 { - type Vtable = IFabricServiceManagementClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8180db27_7d0b_43b0_82e0_4a8e022fc238); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient4_Vtbl { - pub base__: IFabricServiceManagementClient3_Vtbl, - pub BeginRegisterServiceNotificationFilter: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRegisterServiceNotificationFilter: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - filterid: *mut i64, - ) - -> ::windows::core::HRESULT, - pub BeginUnregisterServiceNotificationFilter: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - filterid: i64, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUnregisterServiceNotificationFilter: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient5(::windows::core::IUnknown); -impl IFabricServiceManagementClient5 { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateService<'a, P0>( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRemoveReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( - &self, - filterid: i64, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - filterid, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteService2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeleteService2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceManagementClient5, - ::windows::core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3, - IFabricServiceManagementClient4 -); -impl ::core::clone::Clone for IFabricServiceManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient5 {} -impl ::core::fmt::Debug for IFabricServiceManagementClient5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient5") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient5 { - type Vtable = IFabricServiceManagementClient5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf9a70679_8ca3_4e27_9411_483e0c89b1fa); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient5_Vtbl { - pub base__: IFabricServiceManagementClient4_Vtbl, - pub BeginDeleteService2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeleteService2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceManagementClient6(::windows::core::IUnknown); -impl IFabricServiceManagementClient6 { - pub unsafe fn BeginCreateService<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( - &self, - applicationname: *const u16, - servicename: *const u16, - servicetypename: P0, - initializationdata: &[u8], - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetServiceDescription<'a, P0>( - &self, - name: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceDescription<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( - &self, - name: *const u16, - keytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( - &self, - name: *const u16, - partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, - partitionkey: *const ::core::ffi::c_void, - previousresult: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndResolveServicePartition<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( - &self, - applicationtypename: P0, - applicationtypeversion: P1, - servicemanifestname: P2, - timeoutmilliseconds: u32, - callback: P3, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetServiceManifest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUpdateService<'a, P0>( - &self, - name: *const u16, - serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRemoveReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestartReplica<'a, P0>( - &self, - description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( - &self, - description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( - &self, - filterid: i64, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - filterid, - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeleteService2<'a, P0>( - &self, - deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginDeleteService2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeleteService2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndDeleteService2)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginCreateServiceFromTemplate2<'a, P0>( - &self, - servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicefromtemplatedescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCreateServiceFromTemplate2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCreateServiceFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceManagementClient6, - ::windows::core::IUnknown, - IFabricServiceManagementClient, - IFabricServiceManagementClient2, - IFabricServiceManagementClient3, - IFabricServiceManagementClient4, - IFabricServiceManagementClient5 -); -impl ::core::clone::Clone for IFabricServiceManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceManagementClient6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceManagementClient6 {} -impl ::core::fmt::Debug for IFabricServiceManagementClient6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceManagementClient6") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient6 { - type Vtable = IFabricServiceManagementClient6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x23e4ee1b_049a_48f5_8dd7_b601eace47de); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceManagementClient6_Vtbl where { pub base__ : IFabricServiceManagementClient5_Vtbl , pub BeginCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricServiceNotification(::windows::core::IUnknown); -impl IFabricServiceNotification { - pub unsafe fn get_Notification(&self) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION { - (::windows::core::Vtable::vtable(self).get_Notification)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn GetVersion(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceNotification, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceNotification { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceNotification { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceNotification {} -impl ::core::fmt::Debug for IFabricServiceNotification { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceNotification") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceNotification { - type Vtable = IFabricServiceNotification_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceNotification { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8222c825_08ad_4639_afce_a8988cbd6db3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceNotification_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Notification: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION, - pub GetVersion: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceNotificationEventHandler(::windows::core::IUnknown); -impl IFabricServiceNotificationEventHandler { - pub unsafe fn OnNotification<'a, P0>( - &self, - __midl__ifabricservicenotificationeventhandler0000: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotification>>, - { - (::windows::core::Vtable::vtable(self).OnNotification)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricservicenotificationeventhandler0000 - .into() - .abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricServiceNotificationEventHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricServiceNotificationEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceNotificationEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceNotificationEventHandler {} -impl ::core::fmt::Debug for IFabricServiceNotificationEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceNotificationEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceNotificationEventHandler { - type Vtable = IFabricServiceNotificationEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceNotificationEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceNotificationEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnNotification: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - __midl__ifabricservicenotificationeventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServicePartitionResolutionChangeHandler(::windows::core::IUnknown); -impl IFabricServicePartitionResolutionChangeHandler { - pub unsafe fn OnChange<'a, P0, P1>( - &self, - source: P0, - handlerid: i64, - partition: P1, - error: ::windows::core::HRESULT, - ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceManagementClient>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - { - (::windows::core::Vtable::vtable(self).OnChange)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - handlerid, - partition.into().abi(), - error, - ) - } -} -::windows::core::interface_hierarchy!( - IFabricServicePartitionResolutionChangeHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricServicePartitionResolutionChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServicePartitionResolutionChangeHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServicePartitionResolutionChangeHandler {} -impl ::core::fmt::Debug for IFabricServicePartitionResolutionChangeHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServicePartitionResolutionChangeHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServicePartitionResolutionChangeHandler { - type Vtable = IFabricServicePartitionResolutionChangeHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServicePartitionResolutionChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf495715d_8e03_4232_b8d6_1227b39984fc); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnChange: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - handlerid: i64, - partition: *mut ::core::ffi::c_void, - error: ::windows::core::HRESULT, - ), -} -#[repr(transparent)] -pub struct IFabricStartNodeResult(::windows::core::IUnknown); -impl IFabricStartNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStartNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStartNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStartNodeResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStartNodeResult {} -impl ::core::fmt::Debug for IFabricStartNodeResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStartNodeResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStartNodeResult { - type Vtable = IFabricStartNodeResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStartNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7e9f51a5_88ac_49b8_958d_329e3334802e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStartNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT, -} -#[repr(transparent)] -pub struct IFabricStopNodeResult(::windows::core::IUnknown); -impl IFabricStopNodeResult { - pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStopNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStopNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStopNodeResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStopNodeResult {} -impl ::core::fmt::Debug for IFabricStopNodeResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStopNodeResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStopNodeResult { - type Vtable = IFabricStopNodeResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStopNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x711d60a6_9623_476c_970c_83059a0b4d55); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStopNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_RESULT, -} -#[repr(transparent)] -pub struct IFabricTestCommandStatusResult(::windows::core::IUnknown); -impl IFabricTestCommandStatusResult { - pub unsafe fn get_Result(&self) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTestCommandStatusResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTestCommandStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTestCommandStatusResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTestCommandStatusResult {} -impl ::core::fmt::Debug for IFabricTestCommandStatusResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTestCommandStatusResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTestCommandStatusResult { - type Vtable = IFabricTestCommandStatusResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTestCommandStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x87798f5c_e600_493a_a926_16b6807378e6); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTestCommandStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Result: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST, -} -#[repr(transparent)] -pub struct IFabricTestManagementClient(::windows::core::IUnknown); -impl IFabricTestManagementClient { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( - &self, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( - &self, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( - &self, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( - &self, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelTestCommand<'a, P0>( - &self, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricTestManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTestManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTestManagementClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTestManagementClient {} -impl ::core::fmt::Debug for IFabricTestManagementClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTestManagementClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient { - type Vtable = IFabricTestManagementClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTestManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTestManagementClient_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub BeginStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : *const super::super:: FABRIC_TEST_COMMAND_LIST_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } -#[repr(transparent)] -pub struct IFabricTestManagementClient2(::windows::core::IUnknown); -impl IFabricTestManagementClient2 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( - &self, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( - &self, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( - &self, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( - &self, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelTestCommand<'a, P0>( - &self, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStartChaos<'a, P0>( - &self, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStopChaos<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStopChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetChaosReport<'a, P0>( - &self, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaosReport<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricTestManagementClient2, - ::windows::core::IUnknown, - IFabricTestManagementClient -); -impl ::core::clone::Clone for IFabricTestManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTestManagementClient2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTestManagementClient2 {} -impl ::core::fmt::Debug for IFabricTestManagementClient2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTestManagementClient2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient2 { - type Vtable = IFabricTestManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTestManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTestManagementClient2_Vtbl { - pub base__: IFabricTestManagementClient_Vtbl, - pub BeginStartChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStartChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginStopChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStopChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetChaosReport: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetChaosReport: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTestManagementClient3(::windows::core::IUnknown); -impl IFabricTestManagementClient3 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( - &self, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( - &self, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( - &self, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( - &self, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelTestCommand<'a, P0>( - &self, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStartChaos<'a, P0>( - &self, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndStartChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginStopChaos<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndStopChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetChaosReport<'a, P0>( - &self, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaosReport<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartNodeTransition<'a, P0>( - &self, - description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNodeTransition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetNodeTransitionProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeTransitionProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricTestManagementClient3, - ::windows::core::IUnknown, - IFabricTestManagementClient, - IFabricTestManagementClient2 -); -impl ::core::clone::Clone for IFabricTestManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTestManagementClient3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTestManagementClient3 {} -impl ::core::fmt::Debug for IFabricTestManagementClient3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTestManagementClient3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient3 { - type Vtable = IFabricTestManagementClient3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTestManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa4b94afd_0cb5_4010_8995_e58e9b6ca373); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTestManagementClient3_Vtbl { - pub base__: IFabricTestManagementClient2_Vtbl, - pub BeginStartNodeTransition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndStartNodeTransition: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetNodeTransitionProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetNodeTransitionProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTestManagementClient4(::windows::core::IUnknown); -impl IFabricTestManagementClient4 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( - &self, - invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( - &self, - invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( - &self, - restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( - &self, - operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginCancelTestCommand<'a, P0>( - &self, - invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginStartChaos<'a, P0>( - &self, - restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStartChaos)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginStopChaos<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndStopChaos)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginGetChaosReport<'a, P0>( - &self, - getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaosReport<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginStartNodeTransition<'a, P0>( - &self, - description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndStartNodeTransition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .EndStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() - ) - .ok() - } - pub unsafe fn BeginGetNodeTransitionProgress<'a, P0>( - &self, - operationid: ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNodeTransitionProgress<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EndGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetChaos<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaos)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaos<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginGetChaosSchedule<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaosSchedule<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginSetChaosSchedule<'a, P0>( - &self, - setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(setchaosscheduledescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndSetChaosSchedule<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndSetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginGetChaosEvents<'a, P0>( - &self, - chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosEvents)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(chaoseventsdescription), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetChaosEvents<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosEvents)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricTestManagementClient4, - ::windows::core::IUnknown, - IFabricTestManagementClient, - IFabricTestManagementClient2, - IFabricTestManagementClient3 -); -impl ::core::clone::Clone for IFabricTestManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTestManagementClient4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTestManagementClient4 {} -impl ::core::fmt::Debug for IFabricTestManagementClient4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTestManagementClient4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient4 { - type Vtable = IFabricTestManagementClient4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTestManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb96aa7d4_acc0_4814_89dc_561b0cbb6028); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTestManagementClient4_Vtbl { - pub base__: IFabricTestManagementClient3_Vtbl, - pub BeginGetChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetChaos: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetChaosSchedule: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetChaosSchedule: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginSetChaosSchedule: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndSetChaosSchedule: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginGetChaosEvents: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetChaosEvents: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricUpgradeOrchestrationServiceStateResult(::windows::core::IUnknown); -impl IFabricUpgradeOrchestrationServiceStateResult { - pub unsafe fn get_State( - &self, - ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - (::windows::core::Vtable::vtable(self).get_State)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricUpgradeOrchestrationServiceStateResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricUpgradeOrchestrationServiceStateResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricUpgradeOrchestrationServiceStateResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricUpgradeOrchestrationServiceStateResult {} -impl ::core::fmt::Debug for IFabricUpgradeOrchestrationServiceStateResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricUpgradeOrchestrationServiceStateResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricUpgradeOrchestrationServiceStateResult { - type Vtable = IFabricUpgradeOrchestrationServiceStateResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricUpgradeOrchestrationServiceStateResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x413968aa_2eb7_4023_b9dc_0f2160b76a6d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_State: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE, -} -#[repr(transparent)] -pub struct IFabricUpgradeProgressResult(::windows::core::IUnknown); -impl IFabricUpgradeProgressResult { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetCodeVersion)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetConfigVersion)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self).get_UpgradeState)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, - { - (::windows::core::Vtable::vtable(self).GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricUpgradeProgressResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricUpgradeProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricUpgradeProgressResult {} -impl ::core::fmt::Debug for IFabricUpgradeProgressResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricUpgradeProgressResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult { - type Vtable = IFabricUpgradeProgressResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2adb07db_f7db_4621_9afc_daabe1e53bf8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricUpgradeProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_TargetCodeVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_TargetConfigVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_UpgradeState: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_UPGRADE_STATE, - pub GetUpgradeDomains: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, - pub GetChangedUpgradeDomains: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - previousprogress: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricUpgradeProgressResult2(::windows::core::IUnknown); -impl IFabricUpgradeProgressResult2 { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_TargetCodeVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_TargetConfigVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) - .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self).get_RollingUpgradeMode)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_NextUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricUpgradeProgressResult2, - ::windows::core::IUnknown, - IFabricUpgradeProgressResult -); -impl ::core::clone::Clone for IFabricUpgradeProgressResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricUpgradeProgressResult2 {} -impl ::core::fmt::Debug for IFabricUpgradeProgressResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricUpgradeProgressResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult2 { - type Vtable = IFabricUpgradeProgressResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricUpgradeProgressResult2_Vtbl { - pub base__: IFabricUpgradeProgressResult_Vtbl, - pub get_RollingUpgradeMode: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE, - pub get_NextUpgradeDomain: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[repr(transparent)] -pub struct IFabricUpgradeProgressResult3(::windows::core::IUnknown); -impl IFabricUpgradeProgressResult3 { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_TargetCodeVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_TargetConfigVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetUpgradeDomains( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( - &self, - previousprogress: P0, - itemcount: *mut u32, - buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } - pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self) - .base__ - .get_RollingUpgradeMode)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_NextUpgradeDomain)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_UpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricUpgradeProgressResult3, - ::windows::core::IUnknown, - IFabricUpgradeProgressResult, - IFabricUpgradeProgressResult2 -); -impl ::core::clone::Clone for IFabricUpgradeProgressResult3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricUpgradeProgressResult3 {} -impl ::core::fmt::Debug for IFabricUpgradeProgressResult3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricUpgradeProgressResult3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult3 { - type Vtable = IFabricUpgradeProgressResult3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricUpgradeProgressResult3_Vtbl { - pub base__: IFabricUpgradeProgressResult2_Vtbl, - pub get_UpgradeProgress: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_UPGRADE_PROGRESS, -} -pub const FabricClient: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs deleted file mode 100644 index 8a51902d..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs +++ /dev/null @@ -1,6469 +0,0 @@ -pub trait IFabricAtomicGroupStateProvider_Impl: Sized { - fn BeginAtomicGroupCommit( - &self, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndAtomicGroupCommit( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginAtomicGroupRollback( - &self, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndAtomicGroupRollback( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUndoProgress( - &self, - fromcommitsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUndoProgress( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricAtomicGroupStateProvider {} -impl IFabricAtomicGroupStateProvider_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >() -> IFabricAtomicGroupStateProvider_Vtbl { - unsafe extern "system" fn BeginAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginAtomicGroupCommit( - ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute_copy(&commitsequencenumber), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndAtomicGroupCommit(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginAtomicGroupRollback( - ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute_copy(&rollbackequencenumber), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndAtomicGroupRollback(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginUndoProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - fromcommitsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUndoProgress( - ::core::mem::transmute_copy(&fromcommitsequencenumber), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUndoProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUndoProgress(::core::mem::transmute(&context)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginAtomicGroupCommit: BeginAtomicGroupCommit::, - EndAtomicGroupCommit: EndAtomicGroupCommit::, - BeginAtomicGroupRollback: BeginAtomicGroupRollback::, - EndAtomicGroupRollback: EndAtomicGroupRollback::, - BeginUndoProgress: BeginUndoProgress::, - EndUndoProgress: EndUndoProgress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricAtomicGroupStateReplicator_Impl: Sized { - fn CreateAtomicGroup(&self) -> ::windows::core::Result; - fn BeginReplicateAtomicGroupOperation( - &self, - atomicgroupid: i64, - operationdata: &::core::option::Option, - callback: &::core::option::Option, - operationsequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn EndReplicateAtomicGroupOperation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginReplicateAtomicGroupCommit( - &self, - atomicgroupid: i64, - callback: &::core::option::Option, - commitsequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn EndReplicateAtomicGroupCommit( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginReplicateAtomicGroupRollback( - &self, - atomicgroupid: i64, - callback: &::core::option::Option, - rollbacksequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn EndReplicateAtomicGroupRollback( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricAtomicGroupStateReplicator {} -impl IFabricAtomicGroupStateReplicator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >() -> IFabricAtomicGroupStateReplicator_Vtbl { - unsafe extern "system" fn CreateAtomicGroup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateAtomicGroup() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(atomicgroupid, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginReplicateAtomicGroupOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - operationdata: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - operationsequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.BeginReplicateAtomicGroupOperation( - ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&operationdata), - ::core::mem::transmute(&callback), - ::core::mem::transmute_copy(&operationsequencenumber), - ::core::mem::transmute_copy(&context), - ) - .into() - } - unsafe extern "system" fn EndReplicateAtomicGroupOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operationsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupOperation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(operationsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginReplicateAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - callback: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.BeginReplicateAtomicGroupCommit( - ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&callback), - ::core::mem::transmute_copy(&commitsequencenumber), - ::core::mem::transmute_copy(&context), - ) - .into() - } - unsafe extern "system" fn EndReplicateAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupCommit(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginReplicateAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - callback: *mut ::core::ffi::c_void, - rollbacksequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.BeginReplicateAtomicGroupRollback( - ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&callback), - ::core::mem::transmute_copy(&rollbacksequencenumber), - ::core::mem::transmute_copy(&context), - ) - .into() - } - unsafe extern "system" fn EndReplicateAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAtomicGroupStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - rollbacksequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupRollback(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(rollbacksequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - CreateAtomicGroup: CreateAtomicGroup::, - BeginReplicateAtomicGroupOperation: BeginReplicateAtomicGroupOperation::< - Identity, - Impl, - OFFSET, - >, - EndReplicateAtomicGroupOperation: EndReplicateAtomicGroupOperation::< - Identity, - Impl, - OFFSET, - >, - BeginReplicateAtomicGroupCommit: BeginReplicateAtomicGroupCommit::< - Identity, - Impl, - OFFSET, - >, - EndReplicateAtomicGroupCommit: EndReplicateAtomicGroupCommit::, - BeginReplicateAtomicGroupRollback: BeginReplicateAtomicGroupRollback::< - Identity, - Impl, - OFFSET, - >, - EndReplicateAtomicGroupRollback: EndReplicateAtomicGroupRollback::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricCodePackage_Impl: Sized { - fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricCodePackage {} -impl IFabricCodePackage_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage_Impl, - const OFFSET: isize, - >() -> IFabricCodePackage_Vtbl { - unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Description() - } - unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Path() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricCodePackage2_Impl: Sized + IFabricCodePackage_Impl { - fn get_SetupEntryPointRunAsPolicy(&self) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; - fn get_EntryPointRunAsPolicy(&self) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; -} -impl ::windows::core::RuntimeName for IFabricCodePackage2 {} -impl IFabricCodePackage2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage2_Impl, - const OFFSET: isize, - >() -> IFabricCodePackage2_Vtbl { - unsafe extern "system" fn get_SetupEntryPointRunAsPolicy< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_SetupEntryPointRunAsPolicy() - } - unsafe extern "system" fn get_EntryPointRunAsPolicy< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackage2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_EntryPointRunAsPolicy() - } - Self { - base__: IFabricCodePackage_Vtbl::new::(), - get_SetupEntryPointRunAsPolicy: get_SetupEntryPointRunAsPolicy::, - get_EntryPointRunAsPolicy: get_EntryPointRunAsPolicy::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext_Impl: Sized { - fn get_ContextId(&self) -> ::windows::core::PWSTR; - fn get_CodePackageName(&self) -> ::windows::core::PWSTR; - fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR; - fn get_WorkDirectory(&self) -> ::windows::core::PWSTR; - fn get_LogDirectory(&self) -> ::windows::core::PWSTR; - fn get_TempDirectory(&self) -> ::windows::core::PWSTR; - fn get_ServiceTypes(&self) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST; - fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST; - fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION; - fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST; - fn GetServiceEndpointResource( - &self, - serviceendpointresourcename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; - fn GetCodePackageNames(&self) -> ::windows::core::Result; - fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result; - fn GetDataPackageNames(&self) -> ::windows::core::Result; - fn GetCodePackage( - &self, - codepackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn GetConfigurationPackage( - &self, - configpackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn GetDataPackage( - &self, - datapackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn RegisterCodePackageChangeHandler( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; - fn RegisterConfigurationPackageChangeHandler( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; - fn RegisterDataPackageChangeHandler( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext {} -impl IFabricCodePackageActivationContext_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext_Vtbl { - unsafe extern "system" fn get_ContextId< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ContextId() - } - unsafe extern "system" fn get_CodePackageName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_CodePackageName() - } - unsafe extern "system" fn get_CodePackageVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_CodePackageVersion() - } - unsafe extern "system" fn get_WorkDirectory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_WorkDirectory() - } - unsafe extern "system" fn get_LogDirectory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_LogDirectory() - } - unsafe extern "system" fn get_TempDirectory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_TempDirectory() - } - unsafe extern "system" fn get_ServiceTypes< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceTypes() - } - unsafe extern "system" fn get_ServiceGroupTypes< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceGroupTypes() - } - unsafe extern "system" fn get_ApplicationPrincipals< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationPrincipals() - } - unsafe extern "system" fn get_ServiceEndpointResources< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceEndpointResources() - } - unsafe extern "system" fn GetServiceEndpointResource< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - serviceendpointresourcename: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this - .GetServiceEndpointResource(::core::mem::transmute(&serviceendpointresourcename)) - { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCodePackageNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCodePackageNames() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetConfigurationPackageNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetConfigurationPackageNames() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetDataPackageNames< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetDataPackageNames() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codepackagename: ::windows::core::PCWSTR, - codepackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCodePackage(::core::mem::transmute(&codepackagename)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(codepackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetConfigurationPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - configpackagename: ::windows::core::PCWSTR, - configpackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetConfigurationPackage(::core::mem::transmute(&configpackagename)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(configpackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetDataPackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - datapackagename: ::windows::core::PCWSTR, - datapackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetDataPackage(::core::mem::transmute(&datapackagename)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(datapackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn RegisterCodePackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RegisterCodePackageChangeHandler(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UnregisterCodePackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterCodePackageChangeHandler(::core::mem::transmute_copy(&callbackhandle)) - .into() - } - unsafe extern "system" fn RegisterConfigurationPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RegisterConfigurationPackageChangeHandler(::core::mem::transmute(&callback)) - { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UnregisterConfigurationPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterConfigurationPackageChangeHandler(::core::mem::transmute_copy( - &callbackhandle, - )) - .into() - } - unsafe extern "system" fn RegisterDataPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RegisterDataPackageChangeHandler(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UnregisterDataPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterDataPackageChangeHandler(::core::mem::transmute_copy(&callbackhandle)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ContextId: get_ContextId::, - get_CodePackageName: get_CodePackageName::, - get_CodePackageVersion: get_CodePackageVersion::, - get_WorkDirectory: get_WorkDirectory::, - get_LogDirectory: get_LogDirectory::, - get_TempDirectory: get_TempDirectory::, - get_ServiceTypes: get_ServiceTypes::, - get_ServiceGroupTypes: get_ServiceGroupTypes::, - get_ApplicationPrincipals: get_ApplicationPrincipals::, - get_ServiceEndpointResources: get_ServiceEndpointResources::, - GetServiceEndpointResource: GetServiceEndpointResource::, - GetCodePackageNames: GetCodePackageNames::, - GetConfigurationPackageNames: GetConfigurationPackageNames::, - GetDataPackageNames: GetDataPackageNames::, - GetCodePackage: GetCodePackage::, - GetConfigurationPackage: GetConfigurationPackage::, - GetDataPackage: GetDataPackage::, - RegisterCodePackageChangeHandler: RegisterCodePackageChangeHandler::< - Identity, - Impl, - OFFSET, - >, - UnregisterCodePackageChangeHandler: UnregisterCodePackageChangeHandler::< - Identity, - Impl, - OFFSET, - >, - RegisterConfigurationPackageChangeHandler: RegisterConfigurationPackageChangeHandler::< - Identity, - Impl, - OFFSET, - >, - UnregisterConfigurationPackageChangeHandler: - UnregisterConfigurationPackageChangeHandler::, - RegisterDataPackageChangeHandler: RegisterDataPackageChangeHandler::< - Identity, - Impl, - OFFSET, - >, - UnregisterDataPackageChangeHandler: UnregisterDataPackageChangeHandler::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext2_Impl: - Sized + IFabricCodePackageActivationContext_Impl -{ - fn get_ApplicationName(&self) -> *mut u16; - fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR; - fn GetServiceManifestName(&self) -> ::windows::core::Result; - fn GetServiceManifestVersion(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext2 {} -impl IFabricCodePackageActivationContext2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext2_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext2_Vtbl { - unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut u16 { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationName() - } - unsafe extern "system" fn get_ApplicationTypeName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ApplicationTypeName() - } - unsafe extern "system" fn GetServiceManifestName< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicemanifestname: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetServiceManifestName() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(servicemanifestname, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetServiceManifestVersion< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicemanifestversion: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetServiceManifestVersion() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(servicemanifestversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricCodePackageActivationContext_Vtbl::new::(), - get_ApplicationName: get_ApplicationName::, - get_ApplicationTypeName: get_ApplicationTypeName::, - GetServiceManifestName: GetServiceManifestName::, - GetServiceManifestVersion: GetServiceManifestVersion::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext3_Impl: - Sized + IFabricCodePackageActivationContext2_Impl -{ - fn ReportApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; - fn ReportDeployedApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; - fn ReportDeployedServicePackageHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext3 {} -impl IFabricCodePackageActivationContext3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext3_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext3_Vtbl { - unsafe extern "system" fn ReportApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportApplicationHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - unsafe extern "system" fn ReportDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportDeployedApplicationHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - unsafe extern "system" fn ReportDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportDeployedServicePackageHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - Self { - base__: IFabricCodePackageActivationContext2_Vtbl::new::(), - ReportApplicationHealth: ReportApplicationHealth::, - ReportDeployedApplicationHealth: ReportDeployedApplicationHealth::< - Identity, - Impl, - OFFSET, - >, - ReportDeployedServicePackageHealth: ReportDeployedServicePackageHealth::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext4_Impl: - Sized + IFabricCodePackageActivationContext3_Impl -{ - fn ReportApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; - fn ReportDeployedApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; - fn ReportDeployedServicePackageHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext4 {} -impl IFabricCodePackageActivationContext4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext4_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext4_Vtbl { - unsafe extern "system" fn ReportApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportApplicationHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - unsafe extern "system" fn ReportDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportDeployedApplicationHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - unsafe extern "system" fn ReportDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportDeployedServicePackageHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - Self { - base__: IFabricCodePackageActivationContext3_Vtbl::new::(), - ReportApplicationHealth2: ReportApplicationHealth2::, - ReportDeployedApplicationHealth2: ReportDeployedApplicationHealth2::< - Identity, - Impl, - OFFSET, - >, - ReportDeployedServicePackageHealth2: ReportDeployedServicePackageHealth2::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext5_Impl: - Sized + IFabricCodePackageActivationContext4_Impl -{ - fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR; - fn get_ServicePublishAddress(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext5 {} -impl IFabricCodePackageActivationContext5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext5_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext5_Vtbl { - unsafe extern "system" fn get_ServiceListenAddress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServiceListenAddress() - } - unsafe extern "system" fn get_ServicePublishAddress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ServicePublishAddress() - } - Self { - base__: IFabricCodePackageActivationContext4_Vtbl::new::(), - get_ServiceListenAddress: get_ServiceListenAddress::, - get_ServicePublishAddress: get_ServicePublishAddress::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivationContext6_Impl: - Sized + IFabricCodePackageActivationContext5_Impl -{ - fn GetDirectory( - &self, - logicaldirectoryname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext6 {} -impl IFabricCodePackageActivationContext6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext6_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivationContext6_Vtbl { - unsafe extern "system" fn GetDirectory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivationContext6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, - directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricCodePackageActivationContext5_Vtbl::new::(), - GetDirectory: GetDirectory::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricCodePackageActivator_Impl: Sized { - fn BeginActivateCodePackage( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - environment: *const super::super::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndActivateCodePackage( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginDeactivateCodePackage( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndDeactivateCodePackage( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn AbortCodePackage( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::Result<()>; - fn RegisterCodePackageEventHandler( - &self, - eventhandler: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterCodePackageEventHandler(&self, callbackhandle: u64) - -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricCodePackageActivator {} -impl IFabricCodePackageActivator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageActivator_Vtbl { - unsafe extern "system" fn BeginActivateCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - environment: *const super::super::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginActivateCodePackage( - ::core::mem::transmute_copy(&codepackagenames), - ::core::mem::transmute_copy(&environment), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndActivateCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndActivateCodePackage(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginDeactivateCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginDeactivateCodePackage( - ::core::mem::transmute_copy(&codepackagenames), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndDeactivateCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndDeactivateCodePackage(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn AbortCodePackage< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.AbortCodePackage(::core::mem::transmute_copy(&codepackagenames)) - .into() - } - unsafe extern "system" fn RegisterCodePackageEventHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - eventhandler: *mut ::core::ffi::c_void, - callbackhandle: *mut u64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.RegisterCodePackageEventHandler(::core::mem::transmute(&eventhandler)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UnregisterCodePackageEventHandler< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageActivator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callbackhandle: u64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UnregisterCodePackageEventHandler(::core::mem::transmute_copy(&callbackhandle)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginActivateCodePackage: BeginActivateCodePackage::, - EndActivateCodePackage: EndActivateCodePackage::, - BeginDeactivateCodePackage: BeginDeactivateCodePackage::, - EndDeactivateCodePackage: EndDeactivateCodePackage::, - AbortCodePackage: AbortCodePackage::, - RegisterCodePackageEventHandler: RegisterCodePackageEventHandler::< - Identity, - Impl, - OFFSET, - >, - UnregisterCodePackageEventHandler: UnregisterCodePackageEventHandler::< - Identity, - Impl, - OFFSET, - >, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricCodePackageChangeHandler_Impl: Sized { - fn OnPackageAdded( - &self, - source: &::core::option::Option, - codepackage: &::core::option::Option, - ); - fn OnPackageRemoved( - &self, - source: &::core::option::Option, - codepackage: &::core::option::Option, - ); - fn OnPackageModified( - &self, - source: &::core::option::Option, - previouscodepackage: &::core::option::Option, - codepackage: &::core::option::Option, - ); -} -impl ::windows::core::RuntimeName for IFabricCodePackageChangeHandler {} -impl IFabricCodePackageChangeHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageChangeHandler_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageChangeHandler_Vtbl { - unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&codepackage), - ) - } - unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&codepackage), - ) - } - unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previouscodepackage: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previouscodepackage), - ::core::mem::transmute(&codepackage), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnPackageAdded: OnPackageAdded::, - OnPackageRemoved: OnPackageRemoved::, - OnPackageModified: OnPackageModified::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricCodePackageEventHandler_Impl: Sized { - fn OnCodePackageEvent( - &self, - source: &::core::option::Option, - eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ); -} -impl ::windows::core::RuntimeName for IFabricCodePackageEventHandler {} -impl IFabricCodePackageEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricCodePackageEventHandler_Vtbl { - unsafe extern "system" fn OnCodePackageEvent< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricCodePackageEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnCodePackageEvent( - ::core::mem::transmute(&source), - ::core::mem::transmute_copy(&eventdesc), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnCodePackageEvent: OnCodePackageEvent::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricConfigurationPackage_Impl: Sized { - fn get_Description(&self) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; - fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS; - fn GetSection( - &self, - sectionname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION>; - fn GetValue( - &self, - sectionname: &::windows::core::PCWSTR, - parametername: &::windows::core::PCWSTR, - isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()>; - fn DecryptValue( - &self, - encryptedvalue: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricConfigurationPackage {} -impl IFabricConfigurationPackage_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >() -> IFabricConfigurationPackage_Vtbl { - unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Description() - } - unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Path() - } - unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Settings() - } - unsafe extern "system" fn GetSection< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_SECTION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetSection(::core::mem::transmute(§ionname)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetValue< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parametername: ::windows::core::PCWSTR, - isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetValue( - ::core::mem::transmute(§ionname), - ::core::mem::transmute(¶metername), - ::core::mem::transmute_copy(&isencrypted), - ::core::mem::transmute_copy(&bufferedvalue), - ) - .into() - } - unsafe extern "system" fn DecryptValue< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - encryptedvalue: ::windows::core::PCWSTR, - decryptedvalue: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.DecryptValue(::core::mem::transmute(&encryptedvalue)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(decryptedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, - get_Settings: get_Settings::, - GetSection: GetSection::, - GetValue: GetValue::, - DecryptValue: DecryptValue::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricConfigurationPackage2_Impl: Sized + IFabricConfigurationPackage_Impl { - fn GetValues( - &self, - sectionname: &::windows::core::PCWSTR, - parameterprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>; -} -impl ::windows::core::RuntimeName for IFabricConfigurationPackage2 {} -impl IFabricConfigurationPackage2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage2_Impl, - const OFFSET: isize, - >() -> IFabricConfigurationPackage2_Vtbl { - unsafe extern "system" fn GetValues< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackage2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parameterprefix: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetValues( - ::core::mem::transmute(§ionname), - ::core::mem::transmute(¶meterprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricConfigurationPackage_Vtbl::new::(), - GetValues: GetValues::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricConfigurationPackageChangeHandler_Impl: Sized { - fn OnPackageAdded( - &self, - source: &::core::option::Option, - configpackage: &::core::option::Option, - ); - fn OnPackageRemoved( - &self, - source: &::core::option::Option, - configpackage: &::core::option::Option, - ); - fn OnPackageModified( - &self, - source: &::core::option::Option, - previousconfigpackage: &::core::option::Option, - configpackage: &::core::option::Option, - ); -} -impl ::windows::core::RuntimeName for IFabricConfigurationPackageChangeHandler {} -impl IFabricConfigurationPackageChangeHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackageChangeHandler_Impl, - const OFFSET: isize, - >() -> IFabricConfigurationPackageChangeHandler_Vtbl { - unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&configpackage), - ) - } - unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&configpackage), - ) - } - unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricConfigurationPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previousconfigpackage: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previousconfigpackage), - ::core::mem::transmute(&configpackage), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnPackageAdded: OnPackageAdded::, - OnPackageRemoved: OnPackageRemoved::, - OnPackageModified: OnPackageModified::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricDataPackage_Impl: Sized { - fn get_Description(&self) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricDataPackage {} -impl IFabricDataPackage_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackage_Impl, - const OFFSET: isize, - >() -> IFabricDataPackage_Vtbl { - unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Description() - } - unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Path() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Description: get_Description::, - get_Path: get_Path::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricDataPackageChangeHandler_Impl: Sized { - fn OnPackageAdded( - &self, - source: &::core::option::Option, - datapackage: &::core::option::Option, - ); - fn OnPackageRemoved( - &self, - source: &::core::option::Option, - datapackage: &::core::option::Option, - ); - fn OnPackageModified( - &self, - source: &::core::option::Option, - previousdatapackage: &::core::option::Option, - datapackage: &::core::option::Option, - ); -} -impl ::windows::core::RuntimeName for IFabricDataPackageChangeHandler {} -impl IFabricDataPackageChangeHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackageChangeHandler_Impl, - const OFFSET: isize, - >() -> IFabricDataPackageChangeHandler_Vtbl { - unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&datapackage), - ) - } - unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&datapackage), - ) - } - unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricDataPackageChangeHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previousdatapackage: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previousdatapackage), - ::core::mem::transmute(&datapackage), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnPackageAdded: OnPackageAdded::, - OnPackageRemoved: OnPackageRemoved::, - OnPackageModified: OnPackageModified::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricEseLocalStoreSettingsResult_Impl: Sized { - fn get_Settings(&self) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS; -} -impl ::windows::core::RuntimeName for IFabricEseLocalStoreSettingsResult {} -impl IFabricEseLocalStoreSettingsResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricEseLocalStoreSettingsResult_Impl, - const OFFSET: isize, - >() -> IFabricEseLocalStoreSettingsResult_Vtbl { - unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricEseLocalStoreSettingsResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Settings() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Settings: get_Settings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreEnumerator_Impl: Sized { - fn EnumerateByKey( - &self, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn EnumerateMetadataByKey( - &self, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreEnumerator {} -impl IFabricKeyValueStoreEnumerator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreEnumerator_Vtbl { - unsafe extern "system" fn EnumerateByKey< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateByKey(::core::mem::transmute(&keyprefix)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateMetadataByKey< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateMetadataByKey(::core::mem::transmute(&keyprefix)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - EnumerateByKey: EnumerateByKey::, - EnumerateMetadataByKey: EnumerateMetadataByKey::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreEnumerator2_Impl: - Sized + IFabricKeyValueStoreEnumerator_Impl -{ - fn EnumerateByKey2( - &self, - keyprefix: &::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; - fn EnumerateMetadataByKey2( - &self, - keyprefix: &::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} -impl IFabricKeyValueStoreEnumerator2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator2_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreEnumerator2_Vtbl { - unsafe extern "system" fn EnumerateByKey2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateByKey2( - ::core::mem::transmute(&keyprefix), - ::core::mem::transmute_copy(&strictprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreEnumerator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateMetadataByKey2( - ::core::mem::transmute(&keyprefix), - ::core::mem::transmute_copy(&strictprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreEnumerator_Vtbl::new::(), - EnumerateByKey2: EnumerateByKey2::, - EnumerateMetadataByKey2: EnumerateMetadataByKey2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreItemEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; - fn get_Current(&self) -> ::core::option::Option; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} -impl IFabricKeyValueStoreItemEnumerator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemEnumerator_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemEnumerator_Vtbl { - unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.MoveNext().into() - } - unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Current() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - MoveNext: MoveNext::, - get_Current: get_Current::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreItemEnumerator2_Impl: - Sized + IFabricKeyValueStoreItemEnumerator_Impl -{ - fn TryMoveNext(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} -impl IFabricKeyValueStoreItemEnumerator2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemEnumerator2_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemEnumerator2_Vtbl { - unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemEnumerator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryMoveNext() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreItemEnumerator_Vtbl::new::(), - TryMoveNext: TryMoveNext::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreItemMetadataEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; - fn get_Current(&self) -> ::core::option::Option; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} -impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.MoveNext().into() - } - unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Current() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - MoveNext: MoveNext::, - get_Current: get_Current::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreItemMetadataEnumerator2_Impl: - Sized + IFabricKeyValueStoreItemMetadataEnumerator_Impl -{ - fn TryMoveNext(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} -impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { - unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryMoveNext() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl::new::( - ), - TryMoveNext: TryMoveNext::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid - == &::IID - } -} -pub trait IFabricKeyValueStoreItemMetadataResult_Impl: Sized { - fn get_Metadata(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} -impl IFabricKeyValueStoreItemMetadataResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataResult_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemMetadataResult_Vtbl { - unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemMetadataResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Metadata() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Metadata: get_Metadata::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreItemResult_Impl: Sized { - fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemResult {} -impl IFabricKeyValueStoreItemResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemResult_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreItemResult_Vtbl { - unsafe extern "system" fn get_Item< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreItemResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Item() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Item: get_Item::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreNotification_Impl: - Sized + IFabricKeyValueStoreItemResult_Impl -{ - fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotification {} -impl IFabricKeyValueStoreNotification_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotification_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreNotification_Vtbl { - unsafe extern "system" fn IsDelete< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotification_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::Win32::Foundation::BOOLEAN { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.IsDelete() - } - Self { - base__: IFabricKeyValueStoreItemResult_Vtbl::new::(), - IsDelete: IsDelete::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreNotificationEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; - fn get_Current(&self) -> ::core::option::Option; - fn Reset(&self); -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} -impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreNotificationEnumerator_Vtbl { - unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.MoveNext().into() - } - unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Current() - } - unsafe extern "system" fn Reset< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Reset() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - MoveNext: MoveNext::, - get_Current: get_Current::, - Reset: Reset::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricKeyValueStoreNotificationEnumerator2_Impl: - Sized + IFabricKeyValueStoreNotificationEnumerator_Impl -{ - fn TryMoveNext(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} -impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreNotificationEnumerator2_Vtbl { - unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryMoveNext() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl::new::( - ), - TryMoveNext: TryMoveNext::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid - == &::IID - } -} -pub trait IFabricKeyValueStoreReplica_Impl: Sized + IFabricStatefulServiceReplica_Impl { - fn GetCurrentEpoch(&self) -> ::windows::core::Result; - fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()>; - fn CreateTransaction(&self) -> ::windows::core::Result; - fn Add( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - ) -> ::windows::core::Result<()>; - fn Remove( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - checksequencenumber: i64, - ) -> ::windows::core::Result<()>; - fn Update( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - ) -> ::windows::core::Result<()>; - fn Get( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn GetMetadata( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn Contains( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn Enumerate( - &self, - transaction: &::core::option::Option, - ) -> ::windows::core::Result; - fn EnumerateByKey( - &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn EnumerateMetadata( - &self, - transaction: &::core::option::Option, - ) -> ::windows::core::Result; - fn EnumerateMetadataByKey( - &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica {} -impl IFabricKeyValueStoreReplica_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica_Vtbl { - unsafe extern "system" fn GetCurrentEpoch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - currentepoch: *mut super::super::FABRIC_EPOCH, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCurrentEpoch() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(currentepoch, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UpdateReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UpdateReplicatorSettings(::core::mem::transmute_copy(&replicatorsettings)) - .into() - } - unsafe extern "system" fn CreateTransaction< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateTransaction() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Add< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Add( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&valuesizeinbytes), - ::core::mem::transmute_copy(&value), - ) - .into() - } - unsafe extern "system" fn Remove< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - checksequencenumber: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Remove( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&checksequencenumber), - ) - .into() - } - unsafe extern "system" fn Update< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Update( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&valuesizeinbytes), - ::core::mem::transmute_copy(&value), - ::core::mem::transmute_copy(&checksequencenumber), - ) - .into() - } - unsafe extern "system" fn Get< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Get( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetMetadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetMetadata( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Contains< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Contains( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Enumerate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Enumerate(::core::mem::transmute(&transaction)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateByKey< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateByKey( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&keyprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateMetadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateMetadata(::core::mem::transmute(&transaction)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateMetadataByKey< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateMetadataByKey( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&keyprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricStatefulServiceReplica_Vtbl::new::(), - GetCurrentEpoch: GetCurrentEpoch::, - UpdateReplicatorSettings: UpdateReplicatorSettings::, - CreateTransaction: CreateTransaction::, - Add: Add::, - Remove: Remove::, - Update: Update::, - Get: Get::, - GetMetadata: GetMetadata::, - Contains: Contains::, - Enumerate: Enumerate::, - EnumerateByKey: EnumerateByKey::, - EnumerateMetadata: EnumerateMetadata::, - EnumerateMetadataByKey: EnumerateMetadataByKey::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreReplica2_Impl: Sized + IFabricKeyValueStoreReplica_Impl { - fn Backup(&self, backupdirectory: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn Restore(&self, backupdirectory: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica2 {} -impl IFabricKeyValueStoreReplica2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica2_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica2_Vtbl { - unsafe extern "system" fn Backup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Backup(::core::mem::transmute(&backupdirectory)).into() - } - unsafe extern "system" fn Restore< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Restore(::core::mem::transmute(&backupdirectory)) - .into() - } - unsafe extern "system" fn CreateTransaction2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateTransaction2(::core::mem::transmute_copy(&settings)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreReplica_Vtbl::new::(), - Backup: Backup::, - Restore: Restore::, - CreateTransaction2: CreateTransaction2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreReplica3_Impl: Sized + IFabricKeyValueStoreReplica2_Impl { - fn BeginBackup( - &self, - backupdirectory: &::windows::core::PCWSTR, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndBackup( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica3 {} -impl IFabricKeyValueStoreReplica3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica3_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica3_Vtbl { - unsafe extern "system" fn BeginBackup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginBackup( - ::core::mem::transmute(&backupdirectory), - ::core::mem::transmute_copy(&backupoption), - ::core::mem::transmute(&postbackuphandler), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndBackup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndBackup(::core::mem::transmute(&context)).into() - } - Self { - base__: IFabricKeyValueStoreReplica2_Vtbl::new::(), - BeginBackup: BeginBackup::, - EndBackup: EndBackup::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreReplica4_Impl: Sized + IFabricKeyValueStoreReplica3_Impl { - fn BeginRestore( - &self, - backupdirectory: &::windows::core::PCWSTR, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRestore( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica4 {} -impl IFabricKeyValueStoreReplica4_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica4_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica4_Vtbl { - unsafe extern "system" fn BeginRestore< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestore( - ::core::mem::transmute(&backupdirectory), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRestore< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica4_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRestore(::core::mem::transmute(&context)).into() - } - Self { - base__: IFabricKeyValueStoreReplica3_Vtbl::new::(), - BeginRestore: BeginRestore::, - EndRestore: EndRestore::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreReplica5_Impl: Sized + IFabricKeyValueStoreReplica4_Impl { - fn TryAdd( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - ) -> ::windows::core::Result; - fn TryRemove( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - checksequencenumber: i64, - ) -> ::windows::core::Result; - fn TryUpdate( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - ) -> ::windows::core::Result; - fn TryGet( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn TryGetMetadata( - &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; - fn EnumerateByKey2( - &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; - fn EnumerateMetadataByKey2( - &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica5 {} -impl IFabricKeyValueStoreReplica5_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica5_Vtbl { - unsafe extern "system" fn TryAdd< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - added: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryAdd( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&valuesizeinbytes), - ::core::mem::transmute_copy(&value), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(added, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn TryRemove< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - checksequencenumber: i64, - exists: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryRemove( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&checksequencenumber), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(exists, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn TryUpdate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - exists: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryUpdate( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ::core::mem::transmute_copy(&valuesizeinbytes), - ::core::mem::transmute_copy(&value), - ::core::mem::transmute_copy(&checksequencenumber), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(exists, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn TryGet< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryGet( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn TryGetMetadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.TryGetMetadata( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&key), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateByKey2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateByKey2( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&keyprefix), - ::core::mem::transmute_copy(&strictprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica5_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EnumerateMetadataByKey2( - ::core::mem::transmute(&transaction), - ::core::mem::transmute(&keyprefix), - ::core::mem::transmute_copy(&strictprefix), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreReplica4_Vtbl::new::(), - TryAdd: TryAdd::, - TryRemove: TryRemove::, - TryUpdate: TryUpdate::, - TryGet: TryGet::, - TryGetMetadata: TryGetMetadata::, - EnumerateByKey2: EnumerateByKey2::, - EnumerateMetadataByKey2: EnumerateMetadataByKey2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricKeyValueStoreReplica6_Impl: Sized + IFabricKeyValueStoreReplica5_Impl { - fn BeginRestore2( - &self, - backupdirectory: &::windows::core::PCWSTR, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica6 {} -impl IFabricKeyValueStoreReplica6_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica6_Impl, - const OFFSET: isize, - >() -> IFabricKeyValueStoreReplica6_Vtbl { - unsafe extern "system" fn BeginRestore2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricKeyValueStoreReplica6_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRestore2( - ::core::mem::transmute(&backupdirectory), - ::core::mem::transmute_copy(&settings), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricKeyValueStoreReplica5_Vtbl::new::(), - BeginRestore2: BeginRestore2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricNodeContextResult_Impl: Sized { - fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT; -} -impl ::windows::core::RuntimeName for IFabricNodeContextResult {} -impl IFabricNodeContextResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeContextResult_Impl, - const OFFSET: isize, - >() -> IFabricNodeContextResult_Vtbl { - unsafe extern "system" fn get_NodeContext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeContextResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_CONTEXT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_NodeContext() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_NodeContext: get_NodeContext::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricNodeContextResult2_Impl: Sized + IFabricNodeContextResult_Impl { - fn GetDirectory( - &self, - logicaldirectoryname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricNodeContextResult2 {} -impl IFabricNodeContextResult2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeContextResult2_Impl, - const OFFSET: isize, - >() -> IFabricNodeContextResult2_Vtbl { - unsafe extern "system" fn GetDirectory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricNodeContextResult2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, - directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricNodeContextResult_Vtbl::new::(), - GetDirectory: GetDirectory::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricOperation_Impl: Sized { - fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA; - fn GetData( - &self, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()>; - fn Acknowledge(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricOperation {} -impl IFabricOperation_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperation_Impl, - const OFFSET: isize, - >() -> IFabricOperation_Vtbl { - unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperation_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_OPERATION_METADATA { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Metadata() - } - unsafe extern "system" fn GetData< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperation_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetData( - ::core::mem::transmute_copy(&count), - ::core::mem::transmute_copy(&buffers), - ) - .into() - } - unsafe extern "system" fn Acknowledge< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperation_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Acknowledge().into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Metadata: get_Metadata::, - GetData: GetData::, - Acknowledge: Acknowledge::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricOperationData_Impl: Sized { - fn GetData( - &self, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricOperationData {} -impl IFabricOperationData_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationData_Impl, - const OFFSET: isize, - >() -> IFabricOperationData_Vtbl { - unsafe extern "system" fn GetData< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationData_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetData( - ::core::mem::transmute_copy(&count), - ::core::mem::transmute_copy(&buffers), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetData: GetData::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricOperationDataStream_Impl: Sized { - fn BeginGetNext( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetNext( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricOperationDataStream {} -impl IFabricOperationDataStream_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationDataStream_Impl, - const OFFSET: isize, - >() -> IFabricOperationDataStream_Vtbl { - unsafe extern "system" fn BeginGetNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationDataStream_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetNext(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetNext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationDataStream_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operationdata: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetNext(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(operationdata, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginGetNext: BeginGetNext::, - EndGetNext: EndGetNext::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricOperationStream_Impl: Sized { - fn BeginGetOperation( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndGetOperation( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricOperationStream {} -impl IFabricOperationStream_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationStream_Impl, - const OFFSET: isize, - >() -> IFabricOperationStream_Vtbl { - unsafe extern "system" fn BeginGetOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationStream_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginGetOperation(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndGetOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationStream_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operation: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndGetOperation(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(operation, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginGetOperation: BeginGetOperation::, - EndGetOperation: EndGetOperation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricOperationStream2_Impl: Sized + IFabricOperationStream_Impl { - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricOperationStream2 {} -impl IFabricOperationStream2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationStream2_Impl, - const OFFSET: isize, - >() -> IFabricOperationStream2_Vtbl { - unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricOperationStream2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportFault(::core::mem::transmute_copy(&faulttype)) - .into() - } - Self { - base__: IFabricOperationStream_Vtbl::new::(), - ReportFault: ReportFault::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { - fn BeginOnDataLoss( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOnDataLoss( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn UpdateCatchUpReplicaSetConfiguration( - &self, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()>; - fn BeginWaitForCatchUpQuorum( - &self, - catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndWaitForCatchUpQuorum( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn UpdateCurrentReplicaSetConfiguration( - &self, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()>; - fn BeginBuildReplica( - &self, - replica: *const super::super::FABRIC_REPLICA_INFORMATION, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndBuildReplica( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RemoveReplica(&self, replicaid: i64) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricPrimaryReplicator {} -impl IFabricPrimaryReplicator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >() -> IFabricPrimaryReplicator_Vtbl { - unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UpdateCatchUpReplicaSetConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UpdateCatchUpReplicaSetConfiguration( - ::core::mem::transmute_copy(¤tconfiguration), - ::core::mem::transmute_copy(&previousconfiguration), - ) - .into() - } - unsafe extern "system" fn BeginWaitForCatchUpQuorum< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginWaitForCatchUpQuorum( - ::core::mem::transmute_copy(&catchupmode), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndWaitForCatchUpQuorum< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndWaitForCatchUpQuorum(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn UpdateCurrentReplicaSetConfiguration< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UpdateCurrentReplicaSetConfiguration(::core::mem::transmute_copy( - ¤tconfiguration, - )) - .into() - } - unsafe extern "system" fn BeginBuildReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - replica: *const super::super::FABRIC_REPLICA_INFORMATION, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginBuildReplica( - ::core::mem::transmute_copy(&replica), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndBuildReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndBuildReplica(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn RemoveReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricPrimaryReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - replicaid: i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveReplica(::core::mem::transmute_copy(&replicaid)) - .into() - } - Self { - base__: IFabricReplicator_Vtbl::new::(), - BeginOnDataLoss: BeginOnDataLoss::, - EndOnDataLoss: EndOnDataLoss::, - UpdateCatchUpReplicaSetConfiguration: UpdateCatchUpReplicaSetConfiguration::< - Identity, - Impl, - OFFSET, - >, - BeginWaitForCatchUpQuorum: BeginWaitForCatchUpQuorum::, - EndWaitForCatchUpQuorum: EndWaitForCatchUpQuorum::, - UpdateCurrentReplicaSetConfiguration: UpdateCurrentReplicaSetConfiguration::< - Identity, - Impl, - OFFSET, - >, - BeginBuildReplica: BeginBuildReplica::, - EndBuildReplica: EndBuildReplica::, - RemoveReplica: RemoveReplica::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricProcessExitHandler_Impl: Sized { - fn FabricProcessExited(&self); -} -impl ::windows::core::RuntimeName for IFabricProcessExitHandler {} -impl IFabricProcessExitHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricProcessExitHandler_Impl, - const OFFSET: isize, - >() -> IFabricProcessExitHandler_Vtbl { - unsafe extern "system" fn FabricProcessExited< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricProcessExitHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.FabricProcessExited() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - FabricProcessExited: FabricProcessExited::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricReplicator_Impl: Sized { - fn BeginOpen( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOpen( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginChangeRole( - &self, - epoch: *const super::super::FABRIC_EPOCH, - role: super::super::FABRIC_REPLICA_ROLE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndChangeRole( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginUpdateEpoch( - &self, - epoch: *const super::super::FABRIC_EPOCH, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateEpoch( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginClose( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndClose( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn Abort(&self); - fn GetCurrentProgress(&self) -> ::windows::core::Result; - fn GetCatchUpCapability(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricReplicator {} -impl IFabricReplicator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >() -> IFabricReplicator_Vtbl { - unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOpen(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - replicationaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(replicationaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginChangeRole< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - role: super::super::FABRIC_REPLICA_ROLE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginChangeRole( - ::core::mem::transmute_copy(&epoch), - ::core::mem::transmute_copy(&role), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndChangeRole< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndChangeRole(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateEpoch( - ::core::mem::transmute_copy(&epoch), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateEpoch(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Abort() - } - unsafe extern "system" fn GetCurrentProgress< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - lastsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCurrentProgress() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(lastsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCatchUpCapability< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - fromsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCatchUpCapability() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(fromsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginChangeRole: BeginChangeRole::, - EndChangeRole: EndChangeRole::, - BeginUpdateEpoch: BeginUpdateEpoch::, - EndUpdateEpoch: EndUpdateEpoch::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - GetCurrentProgress: GetCurrentProgress::, - GetCatchUpCapability: GetCatchUpCapability::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricReplicatorCatchupSpecificQuorum_Impl: Sized {} -impl ::windows::core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} -impl IFabricReplicatorCatchupSpecificQuorum_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicatorCatchupSpecificQuorum_Impl, - const OFFSET: isize, - >() -> IFabricReplicatorCatchupSpecificQuorum_Vtbl { - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricReplicatorSettingsResult_Impl: Sized { - fn get_ReplicatorSettings(&self) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS; -} -impl ::windows::core::RuntimeName for IFabricReplicatorSettingsResult {} -impl IFabricReplicatorSettingsResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicatorSettingsResult_Impl, - const OFFSET: isize, - >() -> IFabricReplicatorSettingsResult_Vtbl { - unsafe extern "system" fn get_ReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricReplicatorSettingsResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicatorSettings() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicatorSettings: get_ReplicatorSettings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricRuntime_Impl: Sized { - fn BeginRegisterStatelessServiceFactory( - &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRegisterStatelessServiceFactory( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RegisterStatelessServiceFactory( - &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginRegisterStatefulServiceFactory( - &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRegisterStatefulServiceFactory( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RegisterStatefulServiceFactory( - &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn CreateServiceGroupFactoryBuilder( - &self, - ) -> ::windows::core::Result; - fn BeginRegisterServiceGroupFactory( - &self, - groupservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRegisterServiceGroupFactory( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RegisterServiceGroupFactory( - &self, - groupservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricRuntime {} -impl IFabricRuntime_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >() -> IFabricRuntime_Vtbl { - unsafe extern "system" fn BeginRegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRegisterStatelessServiceFactory( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRegisterStatelessServiceFactory(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn RegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RegisterStatelessServiceFactory( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), - ) - .into() - } - unsafe extern "system" fn BeginRegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRegisterStatefulServiceFactory( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRegisterStatefulServiceFactory(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn RegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RegisterStatefulServiceFactory( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), - ) - .into() - } - unsafe extern "system" fn CreateServiceGroupFactoryBuilder< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - builder: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateServiceGroupFactoryBuilder() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(builder, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginRegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRegisterServiceGroupFactory( - ::core::mem::transmute(&groupservicetype), - ::core::mem::transmute(&factory), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndRegisterServiceGroupFactory(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn RegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricRuntime_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RegisterServiceGroupFactory( - ::core::mem::transmute(&groupservicetype), - ::core::mem::transmute(&factory), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginRegisterStatelessServiceFactory: BeginRegisterStatelessServiceFactory::< - Identity, - Impl, - OFFSET, - >, - EndRegisterStatelessServiceFactory: EndRegisterStatelessServiceFactory::< - Identity, - Impl, - OFFSET, - >, - RegisterStatelessServiceFactory: RegisterStatelessServiceFactory::< - Identity, - Impl, - OFFSET, - >, - BeginRegisterStatefulServiceFactory: BeginRegisterStatefulServiceFactory::< - Identity, - Impl, - OFFSET, - >, - EndRegisterStatefulServiceFactory: EndRegisterStatefulServiceFactory::< - Identity, - Impl, - OFFSET, - >, - RegisterStatefulServiceFactory: RegisterStatefulServiceFactory::, - CreateServiceGroupFactoryBuilder: CreateServiceGroupFactoryBuilder::< - Identity, - Impl, - OFFSET, - >, - BeginRegisterServiceGroupFactory: BeginRegisterServiceGroupFactory::< - Identity, - Impl, - OFFSET, - >, - EndRegisterServiceGroupFactory: EndRegisterServiceGroupFactory::, - RegisterServiceGroupFactory: RegisterServiceGroupFactory::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricSecondaryEventHandler_Impl: Sized { - fn OnCopyComplete( - &self, - enumerator: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn OnReplicationOperation( - &self, - enumerator: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricSecondaryEventHandler {} -impl IFabricSecondaryEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecondaryEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricSecondaryEventHandler_Vtbl { - unsafe extern "system" fn OnCopyComplete< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecondaryEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnCopyComplete(::core::mem::transmute(&enumerator)) - .into() - } - unsafe extern "system" fn OnReplicationOperation< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecondaryEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnReplicationOperation(::core::mem::transmute(&enumerator)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnCopyComplete: OnCopyComplete::, - OnReplicationOperation: OnReplicationOperation::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricSecurityCredentialsResult_Impl: Sized { - fn get_SecurityCredentials(&self) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS; -} -impl ::windows::core::RuntimeName for IFabricSecurityCredentialsResult {} -impl IFabricSecurityCredentialsResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecurityCredentialsResult_Impl, - const OFFSET: isize, - >() -> IFabricSecurityCredentialsResult_Vtbl { - unsafe extern "system" fn get_SecurityCredentials< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricSecurityCredentialsResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_SecurityCredentials() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_SecurityCredentials: get_SecurityCredentials::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupFactory_Impl: Sized {} -impl ::windows::core::RuntimeName for IFabricServiceGroupFactory {} -impl IFabricServiceGroupFactory_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactory_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupFactory_Vtbl { - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupFactoryBuilder_Impl: Sized { - fn AddStatelessServiceFactory( - &self, - memberservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn AddStatefulServiceFactory( - &self, - memberservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RemoveServiceFactory( - &self, - memberservicetype: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; - fn ToServiceGroupFactory(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupFactoryBuilder {} -impl IFabricServiceGroupFactoryBuilder_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactoryBuilder_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupFactoryBuilder_Vtbl { - unsafe extern "system" fn AddStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactoryBuilder_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.AddStatelessServiceFactory( - ::core::mem::transmute(&memberservicetype), - ::core::mem::transmute(&factory), - ) - .into() - } - unsafe extern "system" fn AddStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactoryBuilder_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.AddStatefulServiceFactory( - ::core::mem::transmute(&memberservicetype), - ::core::mem::transmute(&factory), - ) - .into() - } - unsafe extern "system" fn RemoveServiceFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactoryBuilder_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.RemoveServiceFactory(::core::mem::transmute(&memberservicetype)) - .into() - } - unsafe extern "system" fn ToServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupFactoryBuilder_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - factory: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ToServiceGroupFactory() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(factory, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - AddStatelessServiceFactory: AddStatelessServiceFactory::, - AddStatefulServiceFactory: AddStatefulServiceFactory::, - RemoveServiceFactory: RemoveServiceFactory::, - ToServiceGroupFactory: ToServiceGroupFactory::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricServiceGroupPartition_Impl: Sized { - fn ResolveMember( - &self, - name: *const u16, - riid: *const ::windows::core::GUID, - ) -> ::windows::core::Result<*mut ::core::ffi::c_void>; -} -impl ::windows::core::RuntimeName for IFabricServiceGroupPartition {} -impl IFabricServiceGroupPartition_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupPartition_Impl, - const OFFSET: isize, - >() -> IFabricServiceGroupPartition_Vtbl { - unsafe extern "system" fn ResolveMember< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricServiceGroupPartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - name: *const u16, - riid: *const ::windows::core::GUID, - member: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.ResolveMember( - ::core::mem::transmute_copy(&name), - ::core::mem::transmute_copy(&riid), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(member, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - ResolveMember: ResolveMember::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStateProvider_Impl: Sized { - fn BeginUpdateEpoch( - &self, - epoch: *const super::super::FABRIC_EPOCH, - previousepochlastsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndUpdateEpoch( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn GetLastCommittedSequenceNumber(&self) -> ::windows::core::Result; - fn BeginOnDataLoss( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOnDataLoss( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn GetCopyContext(&self) -> ::windows::core::Result; - fn GetCopyState( - &self, - uptosequencenumber: i64, - copycontextstream: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStateProvider {} -impl IFabricStateProvider_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >() -> IFabricStateProvider_Vtbl { - unsafe extern "system" fn BeginUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - previousepochlastsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginUpdateEpoch( - ::core::mem::transmute_copy(&epoch), - ::core::mem::transmute_copy(&previousepochlastsequencenumber), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndUpdateEpoch(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn GetLastCommittedSequenceNumber< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetLastCommittedSequenceNumber() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCopyContext< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - copycontextstream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCopyContext() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(copycontextstream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCopyState< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateProvider_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - uptosequencenumber: i64, - copycontextstream: *mut ::core::ffi::c_void, - copystatestream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCopyState( - ::core::mem::transmute_copy(&uptosequencenumber), - ::core::mem::transmute(©contextstream), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(copystatestream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginUpdateEpoch: BeginUpdateEpoch::, - EndUpdateEpoch: EndUpdateEpoch::, - GetLastCommittedSequenceNumber: GetLastCommittedSequenceNumber::, - BeginOnDataLoss: BeginOnDataLoss::, - EndOnDataLoss: EndOnDataLoss::, - GetCopyContext: GetCopyContext::, - GetCopyState: GetCopyState::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStateReplicator_Impl: Sized { - fn BeginReplicate( - &self, - operationdata: &::core::option::Option, - callback: &::core::option::Option, - sequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn EndReplicate( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn GetReplicationStream(&self) -> ::windows::core::Result; - fn GetCopyStream(&self) -> ::windows::core::Result; - fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStateReplicator {} -impl IFabricStateReplicator_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >() -> IFabricStateReplicator_Vtbl { - unsafe extern "system" fn BeginReplicate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - operationdata: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.BeginReplicate( - ::core::mem::transmute(&operationdata), - ::core::mem::transmute(&callback), - ::core::mem::transmute_copy(&sequencenumber), - ::core::mem::transmute_copy(&context), - ) - .into() - } - unsafe extern "system" fn EndReplicate< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndReplicate(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetReplicationStream< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetReplicationStream() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(stream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetCopyStream< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetCopyStream() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(stream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn UpdateReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.UpdateReplicatorSettings(::core::mem::transmute_copy(&replicatorsettings)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginReplicate: BeginReplicate::, - EndReplicate: EndReplicate::, - GetReplicationStream: GetReplicationStream::, - GetCopyStream: GetCopyStream::, - UpdateReplicatorSettings: UpdateReplicatorSettings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStateReplicator2_Impl: Sized + IFabricStateReplicator_Impl { - fn GetReplicatorSettings(&self) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStateReplicator2 {} -impl IFabricStateReplicator2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator2_Impl, - const OFFSET: isize, - >() -> IFabricStateReplicator2_Vtbl { - unsafe extern "system" fn GetReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStateReplicator2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetReplicatorSettings() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(replicatorsettings, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricStateReplicator_Vtbl::new::(), - GetReplicatorSettings: GetReplicatorSettings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatefulServiceFactory_Impl: Sized { - fn CreateReplica( - &self, - servicetypename: &::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: &::windows::core::GUID, - replicaid: i64, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStatefulServiceFactory {} -impl IFabricStatefulServiceFactory_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceFactory_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServiceFactory_Vtbl { - unsafe extern "system" fn CreateReplica< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceFactory_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicereplica: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateReplica( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute_copy(&initializationdatalength), - ::core::mem::transmute_copy(&initializationdata), - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&replicaid), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(servicereplica, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - CreateReplica: CreateReplica::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatefulServicePartition_Impl: Sized { - fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; - fn GetReadStatus( - &self, - ) -> ::windows::core::Result; - fn GetWriteStatus( - &self, - ) -> ::windows::core::Result; - fn CreateReplicator( - &self, - stateprovider: &::core::option::Option, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut ::core::option::Option, - statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; - fn ReportLoad( - &self, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::Result<()>; - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition {} -impl IFabricStatefulServicePartition_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServicePartition_Vtbl { - unsafe extern "system" fn GetPartitionInfo< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetPartitionInfo() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetReadStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetReadStatus() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(readstatus, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn GetWriteStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetWriteStatus() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(writestatus, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn CreateReplicator< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - stateprovider: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut *mut ::core::ffi::c_void, - statereplicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CreateReplicator( - ::core::mem::transmute(&stateprovider), - ::core::mem::transmute_copy(&replicatorsettings), - ::core::mem::transmute_copy(&replicator), - ::core::mem::transmute_copy(&statereplicator), - ) - .into() - } - unsafe extern "system" fn ReportLoad< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportLoad( - ::core::mem::transmute_copy(&metriccount), - ::core::mem::transmute_copy(&metrics), - ) - .into() - } - unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportFault(::core::mem::transmute_copy(&faulttype)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetPartitionInfo: GetPartitionInfo::, - GetReadStatus: GetReadStatus::, - GetWriteStatus: GetWriteStatus::, - CreateReplicator: CreateReplicator::, - ReportLoad: ReportLoad::, - ReportFault: ReportFault::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatefulServicePartition1_Impl: - Sized + IFabricStatefulServicePartition_Impl -{ - fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition1 {} -impl IFabricStatefulServicePartition1_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition1_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServicePartition1_Vtbl { - unsafe extern "system" fn ReportMoveCost< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition1_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) - .into() - } - Self { - base__: IFabricStatefulServicePartition_Vtbl::new::(), - ReportMoveCost: ReportMoveCost::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatefulServicePartition2_Impl: - Sized + IFabricStatefulServicePartition1_Impl -{ - fn ReportReplicaHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; - fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition2 {} -impl IFabricStatefulServicePartition2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition2_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServicePartition2_Vtbl { - unsafe extern "system" fn ReportReplicaHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportReplicaHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - unsafe extern "system" fn ReportPartitionHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - Self { - base__: IFabricStatefulServicePartition1_Vtbl::new::(), - ReportReplicaHealth: ReportReplicaHealth::, - ReportPartitionHealth: ReportPartitionHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatefulServicePartition3_Impl: - Sized + IFabricStatefulServicePartition2_Impl -{ - fn ReportReplicaHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; - fn ReportPartitionHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition3 {} -impl IFabricStatefulServicePartition3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition3_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServicePartition3_Vtbl { - unsafe extern "system" fn ReportReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportReplicaHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - unsafe extern "system" fn ReportPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServicePartition3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportPartitionHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - Self { - base__: IFabricStatefulServicePartition2_Vtbl::new::(), - ReportReplicaHealth2: ReportReplicaHealth2::, - ReportPartitionHealth2: ReportPartitionHealth2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatefulServiceReplica_Impl: Sized { - fn BeginOpen( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOpen( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginChangeRole( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndChangeRole( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginClose( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndClose( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn Abort(&self); -} -impl ::windows::core::RuntimeName for IFabricStatefulServiceReplica {} -impl IFabricStatefulServiceReplica_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >() -> IFabricStatefulServiceReplica_Vtbl { - unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOpen( - ::core::mem::transmute_copy(&openmode), - ::core::mem::transmute(&partition), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - replicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(replicator, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginChangeRole< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginChangeRole( - ::core::mem::transmute_copy(&newrole), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndChangeRole< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndChangeRole(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatefulServiceReplica_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Abort() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginChangeRole: BeginChangeRole::, - EndChangeRole: EndChangeRole::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatelessServiceFactory_Impl: Sized { - fn CreateInstance( - &self, - servicetypename: &::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: &::windows::core::GUID, - instanceid: i64, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStatelessServiceFactory {} -impl IFabricStatelessServiceFactory_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceFactory_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServiceFactory_Vtbl { - unsafe extern "system" fn CreateInstance< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceFactory_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: ::windows::core::GUID, - instanceid: i64, - serviceinstance: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.CreateInstance( - ::core::mem::transmute(&servicetypename), - ::core::mem::transmute_copy(&servicename), - ::core::mem::transmute_copy(&initializationdatalength), - ::core::mem::transmute_copy(&initializationdata), - ::core::mem::transmute(&partitionid), - ::core::mem::transmute_copy(&instanceid), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(serviceinstance, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - CreateInstance: CreateInstance::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatelessServiceInstance_Impl: Sized { - fn BeginOpen( - &self, - partition: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOpen( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginClose( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndClose( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn Abort(&self); -} -impl ::windows::core::RuntimeName for IFabricStatelessServiceInstance {} -impl IFabricStatelessServiceInstance_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServiceInstance_Vtbl { - unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - partition: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOpen( - ::core::mem::transmute(&partition), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServiceInstance_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Abort() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatelessServicePartition_Impl: Sized { - fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; - fn ReportLoad( - &self, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::Result<()>; - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition {} -impl IFabricStatelessServicePartition_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServicePartition_Vtbl { - unsafe extern "system" fn GetPartitionInfo< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.GetPartitionInfo() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn ReportLoad< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportLoad( - ::core::mem::transmute_copy(&metriccount), - ::core::mem::transmute_copy(&metrics), - ) - .into() - } - unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportFault(::core::mem::transmute_copy(&faulttype)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetPartitionInfo: GetPartitionInfo::, - ReportLoad: ReportLoad::, - ReportFault: ReportFault::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStatelessServicePartition1_Impl: - Sized + IFabricStatelessServicePartition_Impl -{ - fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition1 {} -impl IFabricStatelessServicePartition1_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition1_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServicePartition1_Vtbl { - unsafe extern "system" fn ReportMoveCost< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition1_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) - .into() - } - Self { - base__: IFabricStatelessServicePartition_Vtbl::new::(), - ReportMoveCost: ReportMoveCost::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatelessServicePartition2_Impl: - Sized + IFabricStatelessServicePartition1_Impl -{ - fn ReportInstanceHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; - fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition2 {} -impl IFabricStatelessServicePartition2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition2_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServicePartition2_Vtbl { - unsafe extern "system" fn ReportInstanceHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportInstanceHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - unsafe extern "system" fn ReportPartitionHealth< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) - .into() - } - Self { - base__: IFabricStatelessServicePartition1_Vtbl::new::(), - ReportInstanceHealth: ReportInstanceHealth::, - ReportPartitionHealth: ReportPartitionHealth::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStatelessServicePartition3_Impl: - Sized + IFabricStatelessServicePartition2_Impl -{ - fn ReportInstanceHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; - fn ReportPartitionHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition3 {} -impl IFabricStatelessServicePartition3_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition3_Impl, - const OFFSET: isize, - >() -> IFabricStatelessServicePartition3_Vtbl { - unsafe extern "system" fn ReportInstanceHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportInstanceHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - unsafe extern "system" fn ReportPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStatelessServicePartition3_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.ReportPartitionHealth2( - ::core::mem::transmute_copy(&healthinfo), - ::core::mem::transmute_copy(&sendoptions), - ) - .into() - } - Self { - base__: IFabricStatelessServicePartition2_Vtbl::new::(), - ReportInstanceHealth2: ReportInstanceHealth2::, - ReportPartitionHealth2: ReportPartitionHealth2::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStoreEventHandler_Impl: Sized { - fn OnDataLoss(&self); -} -impl ::windows::core::RuntimeName for IFabricStoreEventHandler {} -impl IFabricStoreEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStoreEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricStoreEventHandler_Vtbl { - unsafe extern "system" fn OnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStoreEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDataLoss() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnDataLoss: OnDataLoss::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStoreEventHandler2_Impl: Sized + IFabricStoreEventHandler_Impl { - fn BeginOnDataLoss( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOnDataLoss( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStoreEventHandler2 {} -impl IFabricStoreEventHandler2_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStoreEventHandler2_Impl, - const OFFSET: isize, - >() -> IFabricStoreEventHandler2_Vtbl { - unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStoreEventHandler2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStoreEventHandler2_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: IFabricStoreEventHandler_Vtbl::new::(), - BeginOnDataLoss: BeginOnDataLoss::, - EndOnDataLoss: EndOnDataLoss::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricStorePostBackupHandler_Impl: Sized { - fn BeginPostBackup( - &self, - info: *const super::super::FABRIC_STORE_BACKUP_INFO, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndPostBackup( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; -} -impl ::windows::core::RuntimeName for IFabricStorePostBackupHandler {} -impl IFabricStorePostBackupHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStorePostBackupHandler_Impl, - const OFFSET: isize, - >() -> IFabricStorePostBackupHandler_Vtbl { - unsafe extern "system" fn BeginPostBackup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStorePostBackupHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - info: *const super::super::FABRIC_STORE_BACKUP_INFO, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginPostBackup( - ::core::mem::transmute_copy(&info), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndPostBackup< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStorePostBackupHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - status: *mut u8, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndPostBackup(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(status, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginPostBackup: BeginPostBackup::, - EndPostBackup: EndPostBackup::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransaction_Impl: Sized + IFabricTransactionBase_Impl { - fn BeginCommit( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndCommit( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn Rollback(&self); -} -impl ::windows::core::RuntimeName for IFabricTransaction {} -impl IFabricTransaction_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransaction_Impl, - const OFFSET: isize, - >() -> IFabricTransaction_Vtbl { - unsafe extern "system" fn BeginCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransaction_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginCommit( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndCommit< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransaction_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndCommit(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(commitsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Rollback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransaction_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Rollback() - } - Self { - base__: IFabricTransactionBase_Vtbl::new::(), - BeginCommit: BeginCommit::, - EndCommit: EndCommit::, - Rollback: Rollback::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - } -} -pub trait IFabricTransactionBase_Impl: Sized { - fn get_Id(&self) -> *mut ::windows::core::GUID; - fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL; -} -impl ::windows::core::RuntimeName for IFabricTransactionBase {} -impl IFabricTransactionBase_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransactionBase_Impl, - const OFFSET: isize, - >() -> IFabricTransactionBase_Vtbl { - unsafe extern "system" fn get_Id< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransactionBase_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut ::windows::core::GUID { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_Id() - } - unsafe extern "system" fn get_IsolationLevel< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransactionBase_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_IsolationLevel() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_Id: get_Id::, - get_IsolationLevel: get_IsolationLevel::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs deleted file mode 100644 index d6849190..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs +++ /dev/null @@ -1,12484 +0,0 @@ -#[inline] -pub unsafe fn FabricBeginCreateRuntime<'a, P0, P1>( - riid: *const ::windows::core::GUID, - exithandler: P0, - timeoutmilliseconds: u32, - callback: P1, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricProcessExitHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricBeginCreateRuntime( - riid: *const ::windows::core::GUID, - exithandler: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricBeginCreateRuntime( - ::core::mem::transmute(riid), - exithandler.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricBeginGetActivationContext<'a, P0>( - riid: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricBeginGetActivationContext( - riid: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricBeginGetActivationContext( - ::core::mem::transmute(riid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricBeginGetCodePackageActivator<'a, P0>( - riid: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: P0, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricBeginGetCodePackageActivator( - riid: *const ::windows::core::GUID, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricBeginGetCodePackageActivator( - ::core::mem::transmute(riid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricBeginGetNodeContext<'a, P0>( - timeoutmilliseconds: u32, - callback: P0, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricBeginGetNodeContext( - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricBeginGetNodeContext( - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica<'a, P0, P1>( - riid: *const ::windows::core::GUID, - storename: P0, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: P1, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateKeyValueStoreReplica( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: *mut ::core::ffi::c_void, - keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateKeyValueStoreReplica( - ::core::mem::transmute(riid), - storename.into(), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(replicatorsettings), - localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica2<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, - storename: P0, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: P1, - secondaryeventhandler: P2, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateKeyValueStoreReplica2( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: *mut ::core::ffi::c_void, - secondaryeventhandler: *mut ::core::ffi::c_void, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, - keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateKeyValueStoreReplica2( - ::core::mem::transmute(riid), - storename.into(), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(replicatorsettings), - localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), - notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica3<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, - storename: P0, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: P1, - secondaryeventhandler: P2, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateKeyValueStoreReplica3( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, - replicaid: i64, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: *mut ::core::ffi::c_void, - secondaryeventhandler: *mut ::core::ffi::c_void, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, - keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateKeyValueStoreReplica3( - ::core::mem::transmute(riid), - storename.into(), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(replicatorsettings), - localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), - notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica4<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, - storename: P0, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicename: *const u16, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: P1, - secondaryeventhandler: P2, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateKeyValueStoreReplica4( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicename: *const u16, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: *mut ::core::ffi::c_void, - secondaryeventhandler: *mut ::core::ffi::c_void, - notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, - keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateKeyValueStoreReplica4( - ::core::mem::transmute(riid), - storename.into(), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(servicename), - ::core::mem::transmute(replicatorsettings), - localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), - notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica5<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, - storename: P0, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicename: *const u16, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - kvssettings: *const super::super::FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: P1, - secondaryeventhandler: P2, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateKeyValueStoreReplica5( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicename: *const u16, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - kvssettings: *const super::super::FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS, - localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, - localstoresettings: *const ::core::ffi::c_void, - storeeventhandler: *mut ::core::ffi::c_void, - secondaryeventhandler: *mut ::core::ffi::c_void, - keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateKeyValueStoreReplica5( - ::core::mem::transmute(riid), - storename.into(), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(servicename), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(kvssettings), - localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricCreateRuntime( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricruntime")] - extern "system" { - fn FabricCreateRuntime( - riid: *const ::windows::core::GUID, - fabricruntime: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateRuntime( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricEndCreateRuntime<'a, P0>( - context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricEndCreateRuntime( - context: *mut ::core::ffi::c_void, - fabricruntime: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndCreateRuntime( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricEndGetActivationContext<'a, P0>( - context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricEndGetActivationContext( - context: *mut ::core::ffi::c_void, - activationcontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetActivationContext( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricEndGetCodePackageActivator<'a, P0>( - context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricEndGetCodePackageActivator( - context: *mut ::core::ffi::c_void, - activator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetCodePackageActivator( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricEndGetNodeContext<'a, P0>( - context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> -where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricEndGetNodeContext( - context: *mut ::core::ffi::c_void, - nodecontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetNodeContext( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricGetActivationContext( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricruntime")] - extern "system" { - fn FabricGetActivationContext( - riid: *const ::windows::core::GUID, - activationcontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetActivationContext( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricGetCodePackageActivator( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricruntime")] - extern "system" { - fn FabricGetCodePackageActivator( - riid: *const ::windows::core::GUID, - activator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetCodePackageActivator( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricGetNodeContext() -> ::windows::core::Result<*mut ::core::ffi::c_void> { - #[link(name = "fabricruntime")] - extern "system" { - fn FabricGetNodeContext( - nodecontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetNodeContext(::core::mem::transmute(result__.as_mut_ptr())) - .from_abi::<*mut ::core::ffi::c_void>(result__) -} -#[inline] -pub unsafe fn FabricLoadEseLocalStoreSettings<'a, P0, P1, P2>( - codepackageactivationcontext: P0, - configurationpackagename: P1, - sectionname: P2, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricLoadEseLocalStoreSettings( - codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, - settings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricLoadEseLocalStoreSettings( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricLoadReplicatorSettings<'a, P0, P1, P2>( - codepackageactivationcontext: P0, - configurationpackagename: P1, - sectionname: P2, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricLoadReplicatorSettings( - codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, - replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricLoadReplicatorSettings( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn FabricLoadSecurityCredentials<'a, P0, P1, P2>( - codepackageactivationcontext: P0, - configurationpackagename: P1, - sectionname: P2, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, -{ - #[link(name = "fabricruntime")] - extern "system" { - fn FabricLoadSecurityCredentials( - codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, - securitycredentials: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricLoadSecurityCredentials( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[repr(transparent)] -pub struct IFabricAtomicGroupStateProvider(::windows::core::IUnknown); -impl IFabricAtomicGroupStateProvider { - pub unsafe fn BeginAtomicGroupCommit<'a, P0>( - &self, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - atomicgroupid, - commitsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndAtomicGroupCommit<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginAtomicGroupRollback<'a, P0>( - &self, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - atomicgroupid, - rollbackequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndAtomicGroupRollback<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUndoProgress<'a, P0>( - &self, - fromcommitsequencenumber: i64, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUndoProgress)( - ::windows::core::Vtable::as_raw(self), - fromcommitsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUndoProgress<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUndoProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricAtomicGroupStateProvider, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAtomicGroupStateProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricAtomicGroupStateProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricAtomicGroupStateProvider {} -impl ::core::fmt::Debug for IFabricAtomicGroupStateProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricAtomicGroupStateProvider") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricAtomicGroupStateProvider { - type Vtable = IFabricAtomicGroupStateProvider_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricAtomicGroupStateProvider { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2b670953_6148_4f7d_a920_b390de43d913); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricAtomicGroupStateProvider_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginAtomicGroupCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - commitsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndAtomicGroupCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginAtomicGroupRollback: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - rollbackequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndAtomicGroupRollback: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUndoProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - fromcommitsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUndoProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricAtomicGroupStateReplicator(::windows::core::IUnknown); -impl IFabricAtomicGroupStateReplicator { - pub unsafe fn CreateAtomicGroup(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateAtomicGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginReplicateAtomicGroupOperation<'a, P0, P1>( - &self, - atomicgroupid: i64, - operationdata: P0, - callback: P1, - operationsequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupOperation)( - ::windows::core::Vtable::as_raw(self), - atomicgroupid, - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(operationsequencenumber), - ::core::mem::transmute(context), - ) - .ok() - } - pub unsafe fn EndReplicateAtomicGroupOperation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginReplicateAtomicGroupCommit<'a, P0>( - &self, - atomicgroupid: i64, - callback: P0, - commitsequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - atomicgroupid, - callback.into().abi(), - ::core::mem::transmute(commitsequencenumber), - ::core::mem::transmute(context), - ) - .ok() - } - pub unsafe fn EndReplicateAtomicGroupCommit<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginReplicateAtomicGroupRollback<'a, P0>( - &self, - atomicgroupid: i64, - callback: P0, - rollbacksequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - atomicgroupid, - callback.into().abi(), - ::core::mem::transmute(rollbacksequencenumber), - ::core::mem::transmute(context), - ) - .ok() - } - pub unsafe fn EndReplicateAtomicGroupRollback<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricAtomicGroupStateReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAtomicGroupStateReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricAtomicGroupStateReplicator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricAtomicGroupStateReplicator {} -impl ::core::fmt::Debug for IFabricAtomicGroupStateReplicator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricAtomicGroupStateReplicator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricAtomicGroupStateReplicator { - type Vtable = IFabricAtomicGroupStateReplicator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricAtomicGroupStateReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x80d2155c_4fc2_4fde_9696_c2f39b471c3d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricAtomicGroupStateReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub CreateAtomicGroup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginReplicateAtomicGroupOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - operationdata: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - operationsequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndReplicateAtomicGroupOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operationsequencenumber: *mut i64, - ) - -> ::windows::core::HRESULT, - pub BeginReplicateAtomicGroupCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - callback: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndReplicateAtomicGroupCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginReplicateAtomicGroupRollback: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - atomicgroupid: i64, - callback: *mut ::core::ffi::c_void, - rollbacksequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndReplicateAtomicGroupRollback: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - rollbacksequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackage(::windows::core::IUnknown); -impl IFabricCodePackage { - pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricCodePackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackage { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackage { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackage {} -impl ::core::fmt::Debug for IFabricCodePackage { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackage").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackage { - type Vtable = IFabricCodePackage_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x20792b45_4d13_41a4_af13_346e529f00c5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION, - pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[repr(transparent)] -pub struct IFabricCodePackage2(::windows::core::IUnknown); -impl IFabricCodePackage2 { - pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).base__.get_Description)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_Path)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_SetupEntryPointRunAsPolicy( - &self, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_SetupEntryPointRunAsPolicy)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_EntryPointRunAsPolicy( - &self, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_EntryPointRunAsPolicy)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackage2, - ::windows::core::IUnknown, - IFabricCodePackage -); -impl ::core::clone::Clone for IFabricCodePackage2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackage2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackage2 {} -impl ::core::fmt::Debug for IFabricCodePackage2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackage2").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackage2 { - type Vtable = IFabricCodePackage2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackage2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackage2_Vtbl { - pub base__: IFabricCodePackage_Vtbl, - pub get_SetupEntryPointRunAsPolicy: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION, - pub get_EntryPointRunAsPolicy: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ContextId)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_CodePackageName)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_CodePackageVersion)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_WorkDirectory)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_LogDirectory)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TempDirectory)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceTypes)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupTypes)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ApplicationPrincipals)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceEndpointResources)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext { - type Vtable = IFabricCodePackageActivationContext_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x68a971e2_f15f_4d95_a79c_8a257909659e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ContextId: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_CodePackageName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_CodePackageVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_WorkDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_LogDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_TempDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_ServiceTypes: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST, - pub get_ServiceGroupTypes: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST, - pub get_ApplicationPrincipals: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION, - pub get_ServiceEndpointResources: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST, - pub GetServiceEndpointResource: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - serviceendpointresourcename: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, - ) -> ::windows::core::HRESULT, - pub GetCodePackageNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetConfigurationPackageNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetDataPackageNames: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codepackagename: ::windows::core::PCWSTR, - codepackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetConfigurationPackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - configpackagename: ::windows::core::PCWSTR, - configpackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetDataPackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - datapackagename: ::windows::core::PCWSTR, - datapackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub RegisterCodePackageChangeHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) - -> ::windows::core::HRESULT, - pub UnregisterCodePackageChangeHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) - -> ::windows::core::HRESULT, - pub RegisterConfigurationPackageChangeHandler: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT, - pub UnregisterConfigurationPackageChangeHandler: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) -> ::windows::core::HRESULT, - pub RegisterDataPackageChangeHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - callbackhandle: *mut i64, - ) - -> ::windows::core::HRESULT, - pub UnregisterDataPackageChangeHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callbackhandle: i64, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext2(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext2 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_ContextId)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeName)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetServiceManifestName( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetServiceManifestVersion( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext2, - ::windows::core::IUnknown, - IFabricCodePackageActivationContext -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext2 {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext2 { - type Vtable = IFabricCodePackageActivationContext2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext2_Vtbl { - pub base__: IFabricCodePackageActivationContext_Vtbl, - pub get_ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, - pub get_ApplicationTypeName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub GetServiceManifestName: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicemanifestname: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetServiceManifestVersion: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicemanifestversion: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext3(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext3 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceManifestName( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetServiceManifestVersion( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext3, - ::windows::core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2 -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext3 {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext3 { - type Vtable = IFabricCodePackageActivationContext3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6efee900_f491_4b03_bc5b_3a70de103593); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext3_Vtbl { - pub base__: IFabricCodePackageActivationContext2_Vtbl, - pub ReportApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, - pub ReportDeployedApplicationHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, - pub ReportDeployedServicePackageHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext4(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext4 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceManifestName( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetServiceManifestVersion( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext4, - ::windows::core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3 -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext4 {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext4 { - type Vtable = IFabricCodePackageActivationContext4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x99efebb6_a7b4_4d45_b45e_f191a66eef03); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext4_Vtbl { - pub base__: IFabricCodePackageActivationContext3_Vtbl, - pub ReportApplicationHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, - pub ReportDeployedApplicationHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) - -> ::windows::core::HRESULT, - pub ReportDeployedServicePackageHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext5(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext5 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceManifestName( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetServiceManifestVersion( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ServiceListenAddress)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_ServicePublishAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ServicePublishAddress)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext5, - ::windows::core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3, - IFabricCodePackageActivationContext4 -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext5 {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext5") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext5 { - type Vtable = IFabricCodePackageActivationContext5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe45387e_8711_4949_ac36_31dc95035513); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext5_Vtbl { - pub base__: IFabricCodePackageActivationContext4_Vtbl, - pub get_ServiceListenAddress: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_ServicePublishAddress: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivationContext6(::windows::core::IUnknown); -impl IFabricCodePackageActivationContext6 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceGroupTypes( - &self, - ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationPrincipals( - &self, - ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServiceEndpointResources( - &self, - ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceEndpointResource<'a, P0>( - &self, - serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) - } - pub unsafe fn GetCodePackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackageNames( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCodePackage<'a, P0>( - &self, - codepackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetConfigurationPackage<'a, P0>( - &self, - configpackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetDataPackage<'a, P0>( - &self, - datapackagename: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterConfigurationPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } - pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetServiceManifestName( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetServiceManifestVersion( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedApplicationHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportDeployedServicePackageHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ServiceListenAddress)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_ServicePublishAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) - .base__ - .get_ServicePublishAddress)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetDirectory<'a, P0>( - &self, - logicaldirectoryname: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDirectory)( - ::windows::core::Vtable::as_raw(self), - logicaldirectoryname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricCodePackageActivationContext6, - ::windows::core::IUnknown, - IFabricCodePackageActivationContext, - IFabricCodePackageActivationContext2, - IFabricCodePackageActivationContext3, - IFabricCodePackageActivationContext4, - IFabricCodePackageActivationContext5 -); -impl ::core::clone::Clone for IFabricCodePackageActivationContext6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivationContext6 {} -impl ::core::fmt::Debug for IFabricCodePackageActivationContext6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivationContext6") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext6 { - type Vtable = IFabricCodePackageActivationContext6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfa5fda9b_472c_45a0_9b60_a374691227a4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivationContext6_Vtbl { - pub base__: IFabricCodePackageActivationContext5_Vtbl, - pub GetDirectory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, - directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageActivator(::windows::core::IUnknown); -impl IFabricCodePackageActivator { - pub unsafe fn BeginActivateCodePackage<'a, P0>( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - environment: *const super::super::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginActivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), - ::core::mem::transmute(environment), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndActivateCodePackage<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndActivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginDeactivateCodePackage<'a, P0>( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeactivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndDeactivateCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndDeactivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn AbortCodePackage( - &self, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).AbortCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), - ) - .ok() - } - pub unsafe fn RegisterCodePackageEventHandler<'a, P0>( - &self, - eventhandler: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageEventHandler>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterCodePackageEventHandler)( - ::windows::core::Vtable::as_raw(self), - eventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UnregisterCodePackageEventHandler( - &self, - callbackhandle: u64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterCodePackageEventHandler)( - ::windows::core::Vtable::as_raw(self), - callbackhandle, - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricCodePackageActivator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageActivator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageActivator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageActivator {} -impl ::core::fmt::Debug for IFabricCodePackageActivator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageActivator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivator { - type Vtable = IFabricCodePackageActivator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageActivator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x70be1b10_b259_46fc_b813_0b75720e7183); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageActivator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginActivateCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - environment: *const super::super::FABRIC_STRING_MAP, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndActivateCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginDeactivateCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndDeactivateCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub AbortCodePackage: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::HRESULT, - pub RegisterCodePackageEventHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - eventhandler: *mut ::core::ffi::c_void, - callbackhandle: *mut u64, - ) -> ::windows::core::HRESULT, - pub UnregisterCodePackageEventHandler: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callbackhandle: u64, - ) - -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricCodePackageChangeHandler(::windows::core::IUnknown); -impl IFabricCodePackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, codepackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - codepackage.into().abi(), - ) - } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, codepackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - codepackage.into().abi(), - ) - } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( - &self, - source: P0, - previouscodepackage: P1, - codepackage: P2, - ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previouscodepackage.into().abi(), - codepackage.into().abi(), - ) - } -} -::windows::core::interface_hierarchy!(IFabricCodePackageChangeHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageChangeHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageChangeHandler {} -impl ::core::fmt::Debug for IFabricCodePackageChangeHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageChangeHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageChangeHandler { - type Vtable = IFabricCodePackageChangeHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb90d36cd_acb5_427a_b318_3b045981d0cc); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previouscodepackage: *mut ::core::ffi::c_void, - codepackage: *mut ::core::ffi::c_void, - ), -} -#[repr(transparent)] -pub struct IFabricCodePackageEventHandler(::windows::core::IUnknown); -impl IFabricCodePackageEventHandler { - pub unsafe fn OnCodePackageEvent<'a, P0>( - &self, - source: P0, - eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivator>>, - { - (::windows::core::Vtable::vtable(self).OnCodePackageEvent)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - ::core::mem::transmute(eventdesc), - ) - } -} -::windows::core::interface_hierarchy!(IFabricCodePackageEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricCodePackageEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricCodePackageEventHandler {} -impl ::core::fmt::Debug for IFabricCodePackageEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricCodePackageEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricCodePackageEventHandler { - type Vtable = IFabricCodePackageEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricCodePackageEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x899e0ca8_16df_458e_8915_d0307b4ab101); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricCodePackageEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnCodePackageEvent: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, - ), -} -#[repr(transparent)] -pub struct IFabricConfigurationPackage(::windows::core::IUnknown); -impl IFabricConfigurationPackage { - pub unsafe fn get_Description( - &self, - ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetSection<'a, P0>( - &self, - sectionname: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetSection)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_SECTION>(result__) - } - pub unsafe fn GetValue<'a, P0, P1>( - &self, - sectionname: P0, - parametername: P1, - isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).GetValue)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parametername.into(), - ::core::mem::transmute(isencrypted), - ::core::mem::transmute(bufferedvalue), - ) - .ok() - } - pub unsafe fn DecryptValue<'a, P0>( - &self, - encryptedvalue: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).DecryptValue)( - ::windows::core::Vtable::as_raw(self), - encryptedvalue.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricConfigurationPackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricConfigurationPackage { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricConfigurationPackage { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricConfigurationPackage {} -impl ::core::fmt::Debug for IFabricConfigurationPackage { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricConfigurationPackage") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackage { - type Vtable = IFabricConfigurationPackage_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricConfigurationPackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricConfigurationPackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, - pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, - pub get_Settings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS, - pub GetSection: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_SECTION, - ) -> ::windows::core::HRESULT, - pub GetValue: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parametername: ::windows::core::PCWSTR, - isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, - pub DecryptValue: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - encryptedvalue: ::windows::core::PCWSTR, - decryptedvalue: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricConfigurationPackage2(::windows::core::IUnknown); -impl IFabricConfigurationPackage2 { - pub unsafe fn get_Description( - &self, - ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).base__.get_Description)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_Path)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { - (::windows::core::Vtable::vtable(self).base__.get_Settings)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetSection<'a, P0>( - &self, - sectionname: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetSection)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_SECTION>(result__) - } - pub unsafe fn GetValue<'a, P0, P1>( - &self, - sectionname: P0, - parametername: P1, - isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.GetValue)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parametername.into(), - ::core::mem::transmute(isencrypted), - ::core::mem::transmute(bufferedvalue), - ) - .ok() - } - pub unsafe fn DecryptValue<'a, P0>( - &self, - encryptedvalue: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.DecryptValue)( - ::windows::core::Vtable::as_raw(self), - encryptedvalue.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetValues<'a, P0, P1>( - &self, - sectionname: P0, - parameterprefix: P1, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValues)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parameterprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricConfigurationPackage2, - ::windows::core::IUnknown, - IFabricConfigurationPackage -); -impl ::core::clone::Clone for IFabricConfigurationPackage2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricConfigurationPackage2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricConfigurationPackage2 {} -impl ::core::fmt::Debug for IFabricConfigurationPackage2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricConfigurationPackage2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackage2 { - type Vtable = IFabricConfigurationPackage2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricConfigurationPackage2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd3161f31_708a_4f83_91ff_f2af15f74a2f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricConfigurationPackage2_Vtbl { - pub base__: IFabricConfigurationPackage_Vtbl, - pub GetValues: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parameterprefix: ::windows::core::PCWSTR, - bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricConfigurationPackageChangeHandler(::windows::core::IUnknown); -impl IFabricConfigurationPackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, configpackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - configpackage.into().abi(), - ) - } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, configpackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - configpackage.into().abi(), - ) - } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( - &self, - source: P0, - previousconfigpackage: P1, - configpackage: P2, - ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previousconfigpackage.into().abi(), - configpackage.into().abi(), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricConfigurationPackageChangeHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricConfigurationPackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricConfigurationPackageChangeHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricConfigurationPackageChangeHandler {} -impl ::core::fmt::Debug for IFabricConfigurationPackageChangeHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricConfigurationPackageChangeHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackageChangeHandler { - type Vtable = IFabricConfigurationPackageChangeHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricConfigurationPackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricConfigurationPackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previousconfigpackage: *mut ::core::ffi::c_void, - configpackage: *mut ::core::ffi::c_void, - ), -} -#[repr(transparent)] -pub struct IFabricDataPackage(::windows::core::IUnknown); -impl IFabricDataPackage { - pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricDataPackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricDataPackage { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricDataPackage { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricDataPackage {} -impl ::core::fmt::Debug for IFabricDataPackage { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricDataPackage").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricDataPackage { - type Vtable = IFabricDataPackage_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricDataPackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaa67de09_3657_435f_a2f6_b3a17a0a4371); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricDataPackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Description: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION, - pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[repr(transparent)] -pub struct IFabricDataPackageChangeHandler(::windows::core::IUnknown); -impl IFabricDataPackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, datapackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - datapackage.into().abi(), - ) - } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, datapackage: P1) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - datapackage.into().abi(), - ) - } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( - &self, - source: P0, - previousdatapackage: P1, - datapackage: P2, - ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, - { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previousdatapackage.into().abi(), - datapackage.into().abi(), - ) - } -} -::windows::core::interface_hierarchy!(IFabricDataPackageChangeHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricDataPackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricDataPackageChangeHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricDataPackageChangeHandler {} -impl ::core::fmt::Debug for IFabricDataPackageChangeHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricDataPackageChangeHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricDataPackageChangeHandler { - type Vtable = IFabricDataPackageChangeHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricDataPackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8d0a726f_bd17_4b32_807b_be2a8024b2e0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricDataPackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnPackageAdded: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ), - pub OnPackageRemoved: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ), - pub OnPackageModified: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - source: *mut ::core::ffi::c_void, - previousdatapackage: *mut ::core::ffi::c_void, - datapackage: *mut ::core::ffi::c_void, - ), -} -#[repr(transparent)] -pub struct IFabricEseLocalStoreSettingsResult(::windows::core::IUnknown); -impl IFabricEseLocalStoreSettingsResult { - pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricEseLocalStoreSettingsResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricEseLocalStoreSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricEseLocalStoreSettingsResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricEseLocalStoreSettingsResult {} -impl ::core::fmt::Debug for IFabricEseLocalStoreSettingsResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricEseLocalStoreSettingsResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricEseLocalStoreSettingsResult { - type Vtable = IFabricEseLocalStoreSettingsResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricEseLocalStoreSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricEseLocalStoreSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Settings: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreEnumerator(::windows::core::IUnknown); -impl IFabricKeyValueStoreEnumerator { - pub unsafe fn EnumerateByKey<'a, P0>( - &self, - keyprefix: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0>( - &self, - keyprefix: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricKeyValueStoreEnumerator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreEnumerator {} -impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreEnumerator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreEnumerator { - type Vtable = IFabricKeyValueStoreEnumerator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6722b848_15bb_4528_bf54_c7bbe27b6f9a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub EnumerateByKey: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateMetadataByKey: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreEnumerator2(::windows::core::IUnknown); -impl IFabricKeyValueStoreEnumerator2 { - pub unsafe fn EnumerateByKey<'a, P0>( - &self, - keyprefix: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0>( - &self, - keyprefix: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey2<'a, P0, P1>( - &self, - keyprefix: P0, - strictprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1>( - &self, - keyprefix: P0, - strictprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreEnumerator2, - ::windows::core::IUnknown, - IFabricKeyValueStoreEnumerator -); -impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreEnumerator2 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreEnumerator2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreEnumerator2 { - type Vtable = IFabricKeyValueStoreEnumerator2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x63dfd264_4f2b_4be6_8234_1fa200165fe9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreEnumerator_Vtbl, - pub EnumerateByKey2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateMetadataByKey2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemEnumerator(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() - } - pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreItemEnumerator, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemEnumerator {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemEnumerator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemEnumerator { - type Vtable = IFabricKeyValueStoreItemEnumerator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub get_Current: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option< - IFabricKeyValueStoreItemResult, - >, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemEnumerator2(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) - .ok() - } - pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreItemEnumerator2, - ::windows::core::IUnknown, - IFabricKeyValueStoreItemEnumerator -); -impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemEnumerator2 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemEnumerator2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemEnumerator2 { - type Vtable = IFabricKeyValueStoreItemEnumerator2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreItemEnumerator_Vtbl, - pub TryMoveNext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemMetadataEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() - } - pub unsafe fn get_Current( - &self, - ) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataEnumerator, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataEnumerator {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemMetadataEnumerator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataEnumerator { - type Vtable = IFabricKeyValueStoreItemMetadataEnumerator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0bc06aee_fffa_4450_9099_116a5f0e0b53); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub get_Current: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option< - IFabricKeyValueStoreItemMetadataResult, - >, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator2(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemMetadataEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) - .ok() - } - pub unsafe fn get_Current( - &self, - ) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataEnumerator2, - ::windows::core::IUnknown, - IFabricKeyValueStoreItemMetadataEnumerator -); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataEnumerator2 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemMetadataEnumerator2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataEnumerator2 { - type Vtable = IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8803d53e_dd73_40fc_a662_1bfe999419ea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreItemMetadataEnumerator_Vtbl, - pub TryMoveNext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataResult(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemMetadataResult { - pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreItemMetadataResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemMetadataResult {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemMetadataResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataResult { - type Vtable = IFabricKeyValueStoreItemMetadataResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x17c483a1_69e6_4bdc_a058_54fd4a1839fd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemMetadataResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Metadata: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreItemResult(::windows::core::IUnknown); -impl IFabricKeyValueStoreItemResult { - pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { - (::windows::core::Vtable::vtable(self).get_Item)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricKeyValueStoreItemResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricKeyValueStoreItemResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreItemResult {} -impl ::core::fmt::Debug for IFabricKeyValueStoreItemResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreItemResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemResult { - type Vtable = IFabricKeyValueStoreItemResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreItemResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Item: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreNotification(::windows::core::IUnknown); -impl IFabricKeyValueStoreNotification { - pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { - (::windows::core::Vtable::vtable(self).base__.get_Item)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).IsDelete)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreNotification, - ::windows::core::IUnknown, - IFabricKeyValueStoreItemResult -); -impl ::core::clone::Clone for IFabricKeyValueStoreNotification { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotification { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreNotification {} -impl ::core::fmt::Debug for IFabricKeyValueStoreNotification { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreNotification") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotification { - type Vtable = IFabricKeyValueStoreNotification_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotification { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcb660aa6_c51e_4f05_9526_93982b550e8f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreNotification_Vtbl { - pub base__: IFabricKeyValueStoreItemResult_Vtbl, - pub IsDelete: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> ::windows::Win32::Foundation::BOOLEAN, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreNotificationEnumerator(::windows::core::IUnknown); -impl IFabricKeyValueStoreNotificationEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() - } - pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn Reset(&self) { - (::windows::core::Vtable::vtable(self).Reset)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreNotificationEnumerator, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreNotificationEnumerator {} -impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreNotificationEnumerator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotificationEnumerator { - type Vtable = IFabricKeyValueStoreNotificationEnumerator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotificationEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xef25bc08_be76_43c7_adad_20f01fba3399); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, - pub get_Current: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> ::core::option::Option< - IFabricKeyValueStoreNotification, - >, - pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreNotificationEnumerator2(::windows::core::IUnknown); -impl IFabricKeyValueStoreNotificationEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) - .ok() - } - pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn Reset(&self) { - (::windows::core::Vtable::vtable(self).base__.Reset)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreNotificationEnumerator2, - ::windows::core::IUnknown, - IFabricKeyValueStoreNotificationEnumerator -); -impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreNotificationEnumerator2 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreNotificationEnumerator2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotificationEnumerator2 { - type Vtable = IFabricKeyValueStoreNotificationEnumerator2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotificationEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x55eec7c6_ae81_407a_b84c_22771d314ac7); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreNotificationEnumerator2_Vtbl { - pub base__: IFabricKeyValueStoreNotificationEnumerator_Vtbl, - pub TryMoveNext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - success: *mut u8, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica { - type Vtable = IFabricKeyValueStoreReplica_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x97da35c4_38ed_4a2a_8f37_fbeb56382235); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica_Vtbl { - pub base__: IFabricStatefulServiceReplica_Vtbl, - pub GetCurrentEpoch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - currentepoch: *mut super::super::FABRIC_EPOCH, - ) -> ::windows::core::HRESULT, - pub UpdateReplicatorSettings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT, - pub CreateTransaction: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Add: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - ) -> ::windows::core::HRESULT, - pub Remove: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - checksequencenumber: i64, - ) -> ::windows::core::HRESULT, - pub Update: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - ) -> ::windows::core::HRESULT, - pub Get: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetMetadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Contains: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut u8, - ) -> ::windows::core::HRESULT, - pub Enumerate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateByKey: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateMetadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateMetadataByKey: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica2(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica2 { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.base__.Abort)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica2, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica2 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica2 { - type Vtable = IFabricKeyValueStoreReplica2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfef805b2_5aca_4caa_9c51_fb3bd577a792); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica2_Vtbl { - pub base__: IFabricKeyValueStoreReplica_Vtbl, - pub Backup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, - pub Restore: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, - pub CreateTransaction2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica3(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica3 { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.base__.Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.base__.Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.base__.Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( - &self, - backupdirectory: P0, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: P1, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica3, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2 -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica3 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica3 { - type Vtable = IFabricKeyValueStoreReplica3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica3_Vtbl { - pub base__: IFabricKeyValueStoreReplica2_Vtbl, - pub BeginBackup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndBackup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica4(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica4 { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.base__.Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).base__.base__.Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( - &self, - backupdirectory: P0, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: P1, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRestore<'a, P0, P1>( - &self, - backupdirectory: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRestore)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica4, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3 -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica4 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica4 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica4") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica4 { - type Vtable = IFabricKeyValueStoreReplica4_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xff16d2f1_41a9_4c64_804a_a20bf28c04f3); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica4_Vtbl { - pub base__: IFabricKeyValueStoreReplica3_Vtbl, - pub BeginRestore: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRestore: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica5(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica5 { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( - &self, - backupdirectory: P0, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: P1, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndBackup)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestore<'a, P0, P1>( - &self, - backupdirectory: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndRestore)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn TryAdd<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryAdd)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryRemove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryRemove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryUpdate<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryUpdate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryGet<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryGet)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryGetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryGetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey2<'a, P0, P1, P2>( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1, P2>( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica5, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3, - IFabricKeyValueStoreReplica4 -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica5 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica5 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica5") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica5 { - type Vtable = IFabricKeyValueStoreReplica5_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x34f2da40_6227_448a_be72_c517b0d69432); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica5_Vtbl { - pub base__: IFabricKeyValueStoreReplica4_Vtbl, - pub TryAdd: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - added: *mut u8, - ) -> ::windows::core::HRESULT, - pub TryRemove: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - checksequencenumber: i64, - exists: *mut u8, - ) -> ::windows::core::HRESULT, - pub TryUpdate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - valuesizeinbytes: i32, - value: *const u8, - checksequencenumber: i64, - exists: *mut u8, - ) -> ::windows::core::HRESULT, - pub TryGet: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub TryGetMetadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateByKey2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EnumerateMetadataByKey2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, - strictprefix: ::windows::Win32::Foundation::BOOLEAN, - result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricKeyValueStoreReplica6(::windows::core::IUnknown); -impl IFabricKeyValueStoreReplica6 { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Add<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ) - .ok() - } - pub unsafe fn Remove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Update<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ) - .ok() - } - pub unsafe fn Get<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Enumerate<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadata<'a, P0>( - &self, - transaction: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( - &self, - transaction: P0, - keyprefix: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .base__ - .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ) - .ok() - } - pub unsafe fn CreateTransaction2( - &self, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .base__ - .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( - &self, - backupdirectory: P0, - backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: P1, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .EndBackup)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn BeginRestore<'a, P0, P1>( - &self, - backupdirectory: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .EndRestore)(::windows::core::Vtable::as_raw(self), context.into().abi()) - .ok() - } - pub unsafe fn TryAdd<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryAdd)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryRemove<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - checksequencenumber: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryRemove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryUpdate<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - value: &[u8], - checksequencenumber: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryUpdate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - value.len() as _, - ::core::mem::transmute(value.as_ptr()), - checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryGet<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryGet)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn TryGetMetadata<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryGetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateByKey2<'a, P0, P1, P2>( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1, P2>( - &self, - transaction: P0, - keyprefix: P1, - strictprefix: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRestore2<'a, P0, P1>( - &self, - backupdirectory: P0, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestore2)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ::core::mem::transmute(settings), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricKeyValueStoreReplica6, - ::windows::core::IUnknown, - IFabricStatefulServiceReplica, - IFabricKeyValueStoreReplica, - IFabricKeyValueStoreReplica2, - IFabricKeyValueStoreReplica3, - IFabricKeyValueStoreReplica4, - IFabricKeyValueStoreReplica5 -); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica6 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricKeyValueStoreReplica6 {} -impl ::core::fmt::Debug for IFabricKeyValueStoreReplica6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricKeyValueStoreReplica6") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica6 { - type Vtable = IFabricKeyValueStoreReplica6_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x56e77be1_e81f_4e42_8522_162c2d608184); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricKeyValueStoreReplica6_Vtbl { - pub base__: IFabricKeyValueStoreReplica5_Vtbl, - pub BeginRestore2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricNodeContextResult(::windows::core::IUnknown); -impl IFabricNodeContextResult { - pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { - (::windows::core::Vtable::vtable(self).get_NodeContext)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricNodeContextResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNodeContextResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNodeContextResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNodeContextResult {} -impl ::core::fmt::Debug for IFabricNodeContextResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNodeContextResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNodeContextResult { - type Vtable = IFabricNodeContextResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNodeContextResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNodeContextResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_NodeContext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_NODE_CONTEXT, -} -#[repr(transparent)] -pub struct IFabricNodeContextResult2(::windows::core::IUnknown); -impl IFabricNodeContextResult2 { - pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { - (::windows::core::Vtable::vtable(self).base__.get_NodeContext)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn GetDirectory<'a, P0>( - &self, - logicaldirectoryname: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDirectory)( - ::windows::core::Vtable::as_raw(self), - logicaldirectoryname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricNodeContextResult2, - ::windows::core::IUnknown, - IFabricNodeContextResult -); -impl ::core::clone::Clone for IFabricNodeContextResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricNodeContextResult2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricNodeContextResult2 {} -impl ::core::fmt::Debug for IFabricNodeContextResult2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricNodeContextResult2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricNodeContextResult2 { - type Vtable = IFabricNodeContextResult2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricNodeContextResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x472bf2e1_d617_4b5c_a91d_fabed9ff3550); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricNodeContextResult2_Vtbl { - pub base__: IFabricNodeContextResult_Vtbl, - pub GetDirectory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, - directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricOperation(::windows::core::IUnknown); -impl IFabricOperation { - pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetData( - &self, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetData)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(count), - ::core::mem::transmute(buffers), - ) - .ok() - } - pub unsafe fn Acknowledge(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).Acknowledge)(::windows::core::Vtable::as_raw(self)) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricOperation, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperation { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOperation { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOperation {} -impl ::core::fmt::Debug for IFabricOperation { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOperation").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOperation { - type Vtable = IFabricOperation_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOperation { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOperation_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Metadata: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> *mut super::super::FABRIC_OPERATION_METADATA, - pub GetData: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT, - pub Acknowledge: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricOperationData(::windows::core::IUnknown); -impl IFabricOperationData { - pub unsafe fn GetData( - &self, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetData)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(count), - ::core::mem::transmute(buffers), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricOperationData, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationData { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOperationData { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOperationData {} -impl ::core::fmt::Debug for IFabricOperationData { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOperationData") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOperationData { - type Vtable = IFabricOperationData_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOperationData { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbab8ad87_37b7_482a_985d_baf38a785dcd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOperationData_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetData: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - count: *mut u32, - buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricOperationDataStream(::windows::core::IUnknown); -impl IFabricOperationDataStream { - pub unsafe fn BeginGetNext<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNext)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetNext<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNext)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricOperationDataStream, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationDataStream { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOperationDataStream { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOperationDataStream {} -impl ::core::fmt::Debug for IFabricOperationDataStream { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOperationDataStream") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOperationDataStream { - type Vtable = IFabricOperationDataStream_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOperationDataStream { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc4e9084c_be92_49c9_8c18_d44d088c2e32); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOperationDataStream_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginGetNext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetNext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operationdata: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricOperationStream(::windows::core::IUnknown); -impl IFabricOperationStream { - pub unsafe fn BeginGetOperation<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetOperation)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetOperation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricOperationStream, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationStream { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOperationStream { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOperationStream {} -impl ::core::fmt::Debug for IFabricOperationStream { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOperationStream") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOperationStream { - type Vtable = IFabricOperationStream_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOperationStream { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa98fb97a_d6b0_408a_a878_a9edb09c2587); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOperationStream_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginGetOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndGetOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - operation: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricOperationStream2(::windows::core::IUnknown); -impl IFabricOperationStream2 { - pub unsafe fn BeginGetOperation<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginGetOperation)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndGetOperation<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), - faulttype, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricOperationStream2, - ::windows::core::IUnknown, - IFabricOperationStream -); -impl ::core::clone::Clone for IFabricOperationStream2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricOperationStream2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricOperationStream2 {} -impl ::core::fmt::Debug for IFabricOperationStream2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricOperationStream2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricOperationStream2 { - type Vtable = IFabricOperationStream2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricOperationStream2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0930199b_590a_4065_bec9_5f93b6aae086); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricOperationStream2_Vtbl { - pub base__: IFabricOperationStream_Vtbl, - pub ReportFault: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricPrimaryReplicator(::windows::core::IUnknown); -impl IFabricPrimaryReplicator { - pub unsafe fn BeginOpen<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - epoch: *const super::super::FABRIC_EPOCH, - role: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - role, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateEpoch<'a, P0>( - &self, - epoch: *const super::super::FABRIC_EPOCH, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentProgress(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetCurrentProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCatchUpCapability(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetCatchUpCapability)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginOnDataLoss<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateCatchUpReplicaSetConfiguration( - &self, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateCatchUpReplicaSetConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(currentconfiguration), - ::core::mem::transmute(previousconfiguration), - ) - .ok() - } - pub unsafe fn BeginWaitForCatchUpQuorum<'a, P0>( - &self, - catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginWaitForCatchUpQuorum)( - ::windows::core::Vtable::as_raw(self), - catchupmode, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndWaitForCatchUpQuorum<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndWaitForCatchUpQuorum)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn UpdateCurrentReplicaSetConfiguration( - &self, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateCurrentReplicaSetConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(currentconfiguration), - ) - .ok() - } - pub unsafe fn BeginBuildReplica<'a, P0>( - &self, - replica: *const super::super::FABRIC_REPLICA_INFORMATION, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginBuildReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replica), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndBuildReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndBuildReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn RemoveReplica(&self, replicaid: i64) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).RemoveReplica)( - ::windows::core::Vtable::as_raw(self), - replicaid, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricPrimaryReplicator, - ::windows::core::IUnknown, - IFabricReplicator -); -impl ::core::clone::Clone for IFabricPrimaryReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricPrimaryReplicator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricPrimaryReplicator {} -impl ::core::fmt::Debug for IFabricPrimaryReplicator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricPrimaryReplicator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricPrimaryReplicator { - type Vtable = IFabricPrimaryReplicator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricPrimaryReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x564e50dd_c3a4_4600_a60e_6658874307ae); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricPrimaryReplicator_Vtbl { - pub base__: IFabricReplicator_Vtbl, - pub BeginOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, - pub UpdateCatchUpReplicaSetConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) - -> ::windows::core::HRESULT, - pub BeginWaitForCatchUpQuorum: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndWaitForCatchUpQuorum: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub UpdateCurrentReplicaSetConfiguration: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) - -> ::windows::core::HRESULT, - pub BeginBuildReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - replica: *const super::super::FABRIC_REPLICA_INFORMATION, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndBuildReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub RemoveReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - replicaid: i64, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricProcessExitHandler(::windows::core::IUnknown); -impl IFabricProcessExitHandler { - pub unsafe fn FabricProcessExited(&self) { - (::windows::core::Vtable::vtable(self).FabricProcessExited)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricProcessExitHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricProcessExitHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricProcessExitHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricProcessExitHandler {} -impl ::core::fmt::Debug for IFabricProcessExitHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricProcessExitHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricProcessExitHandler { - type Vtable = IFabricProcessExitHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricProcessExitHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc58d50a2_01f0_4267_bbe7_223b565c1346); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricProcessExitHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub FabricProcessExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricReplicator(::windows::core::IUnknown); -impl IFabricReplicator { - pub unsafe fn BeginOpen<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - epoch: *const super::super::FABRIC_EPOCH, - role: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - role, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginUpdateEpoch<'a, P0>( - &self, - epoch: *const super::super::FABRIC_EPOCH, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn GetCurrentProgress(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCurrentProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCatchUpCapability(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCatchUpCapability)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricReplicator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricReplicator {} -impl ::core::fmt::Debug for IFabricReplicator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricReplicator").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricReplicator { - type Vtable = IFabricReplicator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x067f144a_e5be_4f5e_a181_8b5593e20242); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - replicationaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginChangeRole: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - role: super::super::FABRIC_REPLICA_ROLE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndChangeRole: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginUpdateEpoch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateEpoch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), - pub GetCurrentProgress: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - lastsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, - pub GetCatchUpCapability: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - fromsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricReplicatorCatchupSpecificQuorum(::windows::core::IUnknown); -impl IFabricReplicatorCatchupSpecificQuorum {} -::windows::core::interface_hierarchy!( - IFabricReplicatorCatchupSpecificQuorum, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricReplicatorCatchupSpecificQuorum { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricReplicatorCatchupSpecificQuorum { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricReplicatorCatchupSpecificQuorum {} -impl ::core::fmt::Debug for IFabricReplicatorCatchupSpecificQuorum { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricReplicatorCatchupSpecificQuorum") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricReplicatorCatchupSpecificQuorum { - type Vtable = IFabricReplicatorCatchupSpecificQuorum_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricReplicatorCatchupSpecificQuorum { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaa3116fe_277d_482d_bd16_5366fa405757); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricReplicatorCatchupSpecificQuorum_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, -} -#[repr(transparent)] -pub struct IFabricReplicatorSettingsResult(::windows::core::IUnknown); -impl IFabricReplicatorSettingsResult { - pub unsafe fn get_ReplicatorSettings(&self) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS { - (::windows::core::Vtable::vtable(self).get_ReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricReplicatorSettingsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicatorSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricReplicatorSettingsResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricReplicatorSettingsResult {} -impl ::core::fmt::Debug for IFabricReplicatorSettingsResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricReplicatorSettingsResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricReplicatorSettingsResult { - type Vtable = IFabricReplicatorSettingsResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricReplicatorSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x718954f3_dc1e_4060_9806_0cbf36f71051); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricReplicatorSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ReplicatorSettings: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS, -} -#[repr(transparent)] -pub struct IFabricRuntime(::windows::core::IUnknown); -impl IFabricRuntime { - pub unsafe fn BeginRegisterStatelessServiceFactory<'a, P0, P1, P2>( - &self, - servicetypename: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterStatelessServiceFactory<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn RegisterStatelessServiceFactory<'a, P0, P1>( - &self, - servicetypename: P0, - factory: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, - { - (::windows::core::Vtable::vtable(self).RegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), - ) - .ok() - } - pub unsafe fn BeginRegisterStatefulServiceFactory<'a, P0, P1, P2>( - &self, - servicetypename: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterStatefulServiceFactory<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn RegisterStatefulServiceFactory<'a, P0, P1>( - &self, - servicetypename: P0, - factory: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, - { - (::windows::core::Vtable::vtable(self).RegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), - ) - .ok() - } - pub unsafe fn CreateServiceGroupFactoryBuilder( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateServiceGroupFactoryBuilder)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginRegisterServiceGroupFactory<'a, P0, P1, P2>( - &self, - groupservicetype: P0, - factory: P1, - timeoutmilliseconds: u32, - callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceGroupFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - groupservicetype.into(), - factory.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRegisterServiceGroupFactory<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndRegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn RegisterServiceGroupFactory<'a, P0, P1>( - &self, - groupservicetype: P0, - factory: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceGroupFactory>>, - { - (::windows::core::Vtable::vtable(self).RegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - groupservicetype.into(), - factory.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricRuntime, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRuntime { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricRuntime { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricRuntime {} -impl ::core::fmt::Debug for IFabricRuntime { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricRuntime").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricRuntime { - type Vtable = IFabricRuntime_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricRuntime { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8e_74cd_11df_ac3e_0024811e3892); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricRuntime_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginRegisterStatelessServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndRegisterStatelessServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub RegisterStatelessServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginRegisterStatefulServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndRegisterStatefulServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub RegisterStatefulServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub CreateServiceGroupFactoryBuilder: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - builder: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub BeginRegisterServiceGroupFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, - pub EndRegisterServiceGroupFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub RegisterServiceGroupFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricSecondaryEventHandler(::windows::core::IUnknown); -impl IFabricSecondaryEventHandler { - pub unsafe fn OnCopyComplete<'a, P0>(&self, enumerator: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricKeyValueStoreEnumerator>>, - { - (::windows::core::Vtable::vtable(self).OnCopyComplete)( - ::windows::core::Vtable::as_raw(self), - enumerator.into().abi(), - ) - .ok() - } - pub unsafe fn OnReplicationOperation<'a, P0>( - &self, - enumerator: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricKeyValueStoreNotificationEnumerator>, - >, - { - (::windows::core::Vtable::vtable(self).OnReplicationOperation)( - ::windows::core::Vtable::as_raw(self), - enumerator.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricSecondaryEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecondaryEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricSecondaryEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricSecondaryEventHandler {} -impl ::core::fmt::Debug for IFabricSecondaryEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricSecondaryEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricSecondaryEventHandler { - type Vtable = IFabricSecondaryEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricSecondaryEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7d124a7d_258e_49f2_a9b0_e800406103fb); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricSecondaryEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnCopyComplete: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub OnReplicationOperation: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricSecurityCredentialsResult(::windows::core::IUnknown); -impl IFabricSecurityCredentialsResult { - pub unsafe fn get_SecurityCredentials(&self) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS { - (::windows::core::Vtable::vtable(self).get_SecurityCredentials)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricSecurityCredentialsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecurityCredentialsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricSecurityCredentialsResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricSecurityCredentialsResult {} -impl ::core::fmt::Debug for IFabricSecurityCredentialsResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricSecurityCredentialsResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricSecurityCredentialsResult { - type Vtable = IFabricSecurityCredentialsResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricSecurityCredentialsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x049a111d_6a30_48e9_8f69_470760d3efb9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricSecurityCredentialsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_SecurityCredentials: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS, -} -#[repr(transparent)] -pub struct IFabricServiceGroupFactory(::windows::core::IUnknown); -impl IFabricServiceGroupFactory {} -::windows::core::interface_hierarchy!(IFabricServiceGroupFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupFactory { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupFactory {} -impl ::core::fmt::Debug for IFabricServiceGroupFactory { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupFactory") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupFactory { - type Vtable = IFabricServiceGroupFactory_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3860d61d_1e51_4a65_b109_d93c11311657); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, -} -#[repr(transparent)] -pub struct IFabricServiceGroupFactoryBuilder(::windows::core::IUnknown); -impl IFabricServiceGroupFactoryBuilder { - pub unsafe fn AddStatelessServiceFactory<'a, P0, P1>( - &self, - memberservicetype: P0, - factory: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, - { - (::windows::core::Vtable::vtable(self).AddStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), - factory.into().abi(), - ) - .ok() - } - pub unsafe fn AddStatefulServiceFactory<'a, P0, P1>( - &self, - memberservicetype: P0, - factory: P1, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, - { - (::windows::core::Vtable::vtable(self).AddStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), - factory.into().abi(), - ) - .ok() - } - pub unsafe fn RemoveServiceFactory<'a, P0>( - &self, - memberservicetype: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).RemoveServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), - ) - .ok() - } - pub unsafe fn ToServiceGroupFactory( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).ToServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceGroupFactoryBuilder, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupFactoryBuilder { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupFactoryBuilder { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupFactoryBuilder {} -impl ::core::fmt::Debug for IFabricServiceGroupFactoryBuilder { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupFactoryBuilder") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupFactoryBuilder { - type Vtable = IFabricServiceGroupFactoryBuilder_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupFactoryBuilder { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupFactoryBuilder_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub AddStatelessServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub AddStatefulServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub RemoveServiceFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, - pub ToServiceGroupFactory: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - factory: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricServiceGroupPartition(::windows::core::IUnknown); -impl IFabricServiceGroupPartition { - pub unsafe fn ResolveMember( - &self, - name: *const u16, - riid: *const ::windows::core::GUID, - ) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).ResolveMember)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceGroupPartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupPartition { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricServiceGroupPartition { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricServiceGroupPartition {} -impl ::core::fmt::Debug for IFabricServiceGroupPartition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricServiceGroupPartition") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricServiceGroupPartition { - type Vtable = IFabricServiceGroupPartition_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceGroupPartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2b24299a_7489_467f_8e7f_4507bff73b86); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricServiceGroupPartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub ResolveMember: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - name: *const u16, - riid: *const ::windows::core::GUID, - member: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStateProvider(::windows::core::IUnknown); -impl IFabricStateProvider { - pub unsafe fn BeginUpdateEpoch<'a, P0>( - &self, - epoch: *const super::super::FABRIC_EPOCH, - previousepochlastsequencenumber: i64, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - previousepochlastsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn GetLastCommittedSequenceNumber(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetLastCommittedSequenceNumber)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginOnDataLoss<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCopyContext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyContext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCopyState<'a, P0>( - &self, - uptosequencenumber: i64, - copycontextstream: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationDataStream>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyState)( - ::windows::core::Vtable::as_raw(self), - uptosequencenumber, - copycontextstream.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStateProvider, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStateProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStateProvider { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStateProvider {} -impl ::core::fmt::Debug for IFabricStateProvider { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStateProvider") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStateProvider { - type Vtable = IFabricStateProvider_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStateProvider { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ebfec79_bd27_43f3_8be8_da38ee723951); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStateProvider_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginUpdateEpoch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - epoch: *const super::super::FABRIC_EPOCH, - previousepochlastsequencenumber: i64, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndUpdateEpoch: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetLastCommittedSequenceNumber: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, - pub BeginOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, - pub GetCopyContext: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - copycontextstream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetCopyState: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - uptosequencenumber: i64, - copycontextstream: *mut ::core::ffi::c_void, - copystatestream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStateReplicator(::windows::core::IUnknown); -impl IFabricStateReplicator { - pub unsafe fn BeginReplicate<'a, P0, P1>( - &self, - operationdata: P0, - callback: P1, - sequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).BeginReplicate)( - ::windows::core::Vtable::as_raw(self), - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(sequencenumber), - ::core::mem::transmute(context), - ) - .ok() - } - pub unsafe fn EndReplicate<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetReplicationStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReplicationStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCopyStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricStateReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStateReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStateReplicator { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStateReplicator {} -impl ::core::fmt::Debug for IFabricStateReplicator { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStateReplicator") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStateReplicator { - type Vtable = IFabricStateReplicator_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStateReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x89e9a978_c771_44f2_92e8_3bf271cabe9c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStateReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginReplicate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - operationdata: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndReplicate: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, - pub GetReplicationStream: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub GetCopyStream: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub UpdateReplicatorSettings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStateReplicator2(::windows::core::IUnknown); -impl IFabricStateReplicator2 { - pub unsafe fn BeginReplicate<'a, P0, P1>( - &self, - operationdata: P0, - callback: P1, - sequencenumber: *mut i64, - context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).base__.BeginReplicate)( - ::windows::core::Vtable::as_raw(self), - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(sequencenumber), - ::core::mem::transmute(context), - ) - .ok() - } - pub unsafe fn EndReplicate<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndReplicate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetReplicationStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetReplicationStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetCopyStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCopyStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn UpdateReplicatorSettings( - &self, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), - ) - .ok() - } - pub unsafe fn GetReplicatorSettings( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricStateReplicator2, - ::windows::core::IUnknown, - IFabricStateReplicator -); -impl ::core::clone::Clone for IFabricStateReplicator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStateReplicator2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStateReplicator2 {} -impl ::core::fmt::Debug for IFabricStateReplicator2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStateReplicator2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStateReplicator2 { - type Vtable = IFabricStateReplicator2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStateReplicator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4a28d542_658f_46f9_9bf4_79b7cae25c5d); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStateReplicator2_Vtbl { - pub base__: IFabricStateReplicator_Vtbl, - pub GetReplicatorSettings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServiceFactory(::windows::core::IUnknown); -impl IFabricStatefulServiceFactory { - pub unsafe fn CreateReplica<'a, P0>( - &self, - servicetypename: P0, - servicename: *const u16, - initializationdata: &[u8], - partitionid: ::windows::core::GUID, - replicaid: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateReplica)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - ::core::mem::transmute(servicename), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - ::core::mem::transmute(partitionid), - replicaid, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStatefulServiceFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServiceFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServiceFactory { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServiceFactory {} -impl ::core::fmt::Debug for IFabricStatefulServiceFactory { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServiceFactory") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServiceFactory { - type Vtable = IFabricStatefulServiceFactory_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServiceFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x77ff0c6b_6780_48ec_b4b0_61989327b0f2); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServiceFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub CreateReplica: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: ::windows::core::GUID, - replicaid: i64, - servicereplica: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServicePartition(::windows::core::IUnknown); -impl IFabricStatefulServicePartition { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn GetReadStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetWriteStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn CreateReplicator<'a, P0>( - &self, - stateprovider: P0, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut ::core::option::Option, - statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, - { - (::windows::core::Vtable::vtable(self).CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(replicator), - ::core::mem::transmute(statereplicator), - ) - .ok() - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), - faulttype, - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricStatefulServicePartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServicePartition { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServicePartition { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServicePartition {} -impl ::core::fmt::Debug for IFabricStatefulServicePartition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServicePartition") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition { - type Vtable = IFabricStatefulServicePartition_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5beccc37_8655_4f20_bd43_f50691d7cd16); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServicePartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetPartitionInfo: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT, - pub GetReadStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT, - pub GetWriteStatus: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT, - pub CreateReplicator: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - stateprovider: *mut ::core::ffi::c_void, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut *mut ::core::ffi::c_void, - statereplicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub ReportLoad: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT, - pub ReportFault: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServicePartition1(::windows::core::IUnknown); -impl IFabricStatefulServicePartition1 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn GetReadStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetWriteStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn CreateReplicator<'a, P0>( - &self, - stateprovider: P0, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut ::core::option::Option, - statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(replicator), - ::core::mem::transmute(statereplicator), - ) - .ok() - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportFault)( - ::windows::core::Vtable::as_raw(self), - faulttype, - ) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatefulServicePartition1, - ::windows::core::IUnknown, - IFabricStatefulServicePartition -); -impl ::core::clone::Clone for IFabricStatefulServicePartition1 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServicePartition1 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServicePartition1 {} -impl ::core::fmt::Debug for IFabricStatefulServicePartition1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServicePartition1") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition1 { - type Vtable = IFabricStatefulServicePartition1_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition1 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServicePartition1_Vtbl { - pub base__: IFabricStatefulServicePartition_Vtbl, - pub ReportMoveCost: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServicePartition2(::windows::core::IUnknown); -impl IFabricStatefulServicePartition2 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn GetReadStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetWriteStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn CreateReplicator<'a, P0>( - &self, - stateprovider: P0, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut ::core::option::Option, - statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(replicator), - ::core::mem::transmute(statereplicator), - ) - .ok() - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) - .ok() - } - pub unsafe fn ReportReplicaHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatefulServicePartition2, - ::windows::core::IUnknown, - IFabricStatefulServicePartition, - IFabricStatefulServicePartition1 -); -impl ::core::clone::Clone for IFabricStatefulServicePartition2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServicePartition2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServicePartition2 {} -impl ::core::fmt::Debug for IFabricStatefulServicePartition2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServicePartition2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition2 { - type Vtable = IFabricStatefulServicePartition2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdf27b476_fa25_459f_a7d3_87d3eec9c73c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServicePartition2_Vtbl { - pub base__: IFabricStatefulServicePartition1_Vtbl, - pub ReportReplicaHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, - pub ReportPartitionHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServicePartition3(::windows::core::IUnknown); -impl IFabricStatefulServicePartition3 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn GetReadStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn GetWriteStatus( - &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn CreateReplicator<'a, P0>( - &self, - stateprovider: P0, - replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - replicator: *mut ::core::option::Option, - statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, - { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(replicator), - ::core::mem::transmute(statereplicator), - ) - .ok() - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportMoveCost)(::windows::core::Vtable::as_raw(self), movecost) - .ok() - } - pub unsafe fn ReportReplicaHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportReplicaHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatefulServicePartition3, - ::windows::core::IUnknown, - IFabricStatefulServicePartition, - IFabricStatefulServicePartition1, - IFabricStatefulServicePartition2 -); -impl ::core::clone::Clone for IFabricStatefulServicePartition3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServicePartition3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServicePartition3 {} -impl ::core::fmt::Debug for IFabricStatefulServicePartition3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServicePartition3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition3 { - type Vtable = IFabricStatefulServicePartition3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x51f1269d_b061_4c1c_96cf_6508cece813b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServicePartition3_Vtbl { - pub base__: IFabricStatefulServicePartition2_Vtbl, - pub ReportReplicaHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, - pub ReportPartitionHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatefulServiceReplica(::windows::core::IUnknown); -impl IFabricStatefulServiceReplica { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginChangeRole<'a, P0>( - &self, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndChangeRole<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStatefulServiceReplica, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServiceReplica { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatefulServiceReplica { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatefulServiceReplica {} -impl ::core::fmt::Debug for IFabricStatefulServiceReplica { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatefulServiceReplica") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatefulServiceReplica { - type Vtable = IFabricStatefulServiceReplica_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatefulServiceReplica { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatefulServiceReplica_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - replicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginChangeRole: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - newrole: super::super::FABRIC_REPLICA_ROLE, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndChangeRole: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricStatelessServiceFactory(::windows::core::IUnknown); -impl IFabricStatelessServiceFactory { - pub unsafe fn CreateInstance<'a, P0>( - &self, - servicetypename: P0, - servicename: *const u16, - initializationdata: &[u8], - partitionid: ::windows::core::GUID, - instanceid: i64, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateInstance)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - ::core::mem::transmute(servicename), - initializationdata.len() as _, - ::core::mem::transmute(initializationdata.as_ptr()), - ::core::mem::transmute(partitionid), - instanceid, - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStatelessServiceFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServiceFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServiceFactory { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServiceFactory {} -impl ::core::fmt::Debug for IFabricStatelessServiceFactory { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServiceFactory") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServiceFactory { - type Vtable = IFabricStatelessServiceFactory_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServiceFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8f_74cd_11df_ac3e_0024811e3892); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServiceFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub CreateInstance: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, - servicename: *const u16, - initializationdatalength: u32, - initializationdata: *const u8, - partitionid: ::windows::core::GUID, - instanceid: i64, - serviceinstance: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatelessServiceInstance(::windows::core::IUnknown); -impl IFabricStatelessServiceInstance { - pub unsafe fn BeginOpen<'a, P0, P1>( - &self, - partition: P0, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStatelessServiceInstance, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServiceInstance { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServiceInstance { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServiceInstance {} -impl ::core::fmt::Debug for IFabricStatelessServiceInstance { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServiceInstance") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServiceInstance { - type Vtable = IFabricStatelessServiceInstance_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServiceInstance { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af90_74cd_11df_ac3e_0024811e3892); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServiceInstance_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - partition: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricStatelessServicePartition(::windows::core::IUnknown); -impl IFabricStatelessServicePartition { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), - faulttype, - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricStatelessServicePartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServicePartition { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServicePartition { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServicePartition {} -impl ::core::fmt::Debug for IFabricStatelessServicePartition { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServicePartition") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition { - type Vtable = IFabricStatelessServicePartition_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af91_74cd_11df_ac3e_0024811e3892); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServicePartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetPartitionInfo: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT, - pub ReportLoad: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - metriccount: u32, - metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT, - pub ReportFault: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatelessServicePartition1(::windows::core::IUnknown); -impl IFabricStatelessServicePartition1 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportFault)( - ::windows::core::Vtable::as_raw(self), - faulttype, - ) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatelessServicePartition1, - ::windows::core::IUnknown, - IFabricStatelessServicePartition -); -impl ::core::clone::Clone for IFabricStatelessServicePartition1 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServicePartition1 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServicePartition1 {} -impl ::core::fmt::Debug for IFabricStatelessServicePartition1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServicePartition1") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition1 { - type Vtable = IFabricStatelessServicePartition1_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition1 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServicePartition1_Vtbl { - pub base__: IFabricStatelessServicePartition_Vtbl, - pub ReportMoveCost: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatelessServicePartition2(::windows::core::IUnknown); -impl IFabricStatelessServicePartition2 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) - .ok() - } - pub unsafe fn ReportInstanceHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportInstanceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatelessServicePartition2, - ::windows::core::IUnknown, - IFabricStatelessServicePartition, - IFabricStatelessServicePartition1 -); -impl ::core::clone::Clone for IFabricStatelessServicePartition2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServicePartition2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServicePartition2 {} -impl ::core::fmt::Debug for IFabricStatelessServicePartition2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServicePartition2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition2 { - type Vtable = IFabricStatelessServicePartition2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServicePartition2_Vtbl { - pub base__: IFabricStatelessServicePartition1_Vtbl, - pub ReportInstanceHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, - pub ReportPartitionHealth: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStatelessServicePartition3(::windows::core::IUnknown); -impl IFabricStatelessServicePartition3 { - pub unsafe fn GetPartitionInfo( - &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) - } - pub unsafe fn ReportLoad( - &self, - metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportLoad)( - ::windows::core::Vtable::as_raw(self), - metrics.len() as _, - ::core::mem::transmute(metrics.as_ptr()), - ) - .ok() - } - pub unsafe fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) - .ok() - } - pub unsafe fn ReportMoveCost( - &self, - movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .base__ - .ReportMoveCost)(::windows::core::Vtable::as_raw(self), movecost) - .ok() - } - pub unsafe fn ReportInstanceHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportInstanceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) - .base__ - .ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) - .ok() - } - pub unsafe fn ReportInstanceHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportInstanceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } - pub unsafe fn ReportPartitionHealth2( - &self, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricStatelessServicePartition3, - ::windows::core::IUnknown, - IFabricStatelessServicePartition, - IFabricStatelessServicePartition1, - IFabricStatelessServicePartition2 -); -impl ::core::clone::Clone for IFabricStatelessServicePartition3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStatelessServicePartition3 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStatelessServicePartition3 {} -impl ::core::fmt::Debug for IFabricStatelessServicePartition3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStatelessServicePartition3") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition3 { - type Vtable = IFabricStatelessServicePartition3_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStatelessServicePartition3_Vtbl { - pub base__: IFabricStatelessServicePartition2_Vtbl, - pub ReportInstanceHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, - pub ReportPartitionHealth2: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStoreEventHandler(::windows::core::IUnknown); -impl IFabricStoreEventHandler { - pub unsafe fn OnDataLoss(&self) { - (::windows::core::Vtable::vtable(self).OnDataLoss)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStoreEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStoreEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStoreEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStoreEventHandler {} -impl ::core::fmt::Debug for IFabricStoreEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStoreEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStoreEventHandler { - type Vtable = IFabricStoreEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStoreEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x220e6da4_985b_4dee_8fe9_77521b838795); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStoreEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnDataLoss: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricStoreEventHandler2(::windows::core::IUnknown); -impl IFabricStoreEventHandler2 { - pub unsafe fn OnDataLoss(&self) { - (::windows::core::Vtable::vtable(self).base__.OnDataLoss)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn BeginOnDataLoss<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!( - IFabricStoreEventHandler2, - ::windows::core::IUnknown, - IFabricStoreEventHandler -); -impl ::core::clone::Clone for IFabricStoreEventHandler2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStoreEventHandler2 { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStoreEventHandler2 {} -impl ::core::fmt::Debug for IFabricStoreEventHandler2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStoreEventHandler2") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStoreEventHandler2 { - type Vtable = IFabricStoreEventHandler2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStoreEventHandler2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcce4523f_614b_4d6a_98a3_1e197c0213ea); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStoreEventHandler2_Vtbl { - pub base__: IFabricStoreEventHandler_Vtbl, - pub BeginOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOnDataLoss: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStorePostBackupHandler(::windows::core::IUnknown); -impl IFabricStorePostBackupHandler { - pub unsafe fn BeginPostBackup<'a, P0>( - &self, - info: *const super::super::FABRIC_STORE_BACKUP_INFO, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPostBackup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(info), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndPostBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndPostBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStorePostBackupHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStorePostBackupHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStorePostBackupHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStorePostBackupHandler {} -impl ::core::fmt::Debug for IFabricStorePostBackupHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStorePostBackupHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStorePostBackupHandler { - type Vtable = IFabricStorePostBackupHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStorePostBackupHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2af2e8a6_41df_4e32_9d2a_d73a711e652a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStorePostBackupHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginPostBackup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - info: *const super::super::FABRIC_STORE_BACKUP_INFO, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndPostBackup: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - status: *mut u8, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTransaction(::windows::core::IUnknown); -impl IFabricTransaction { - pub unsafe fn get_Id(&self) -> *mut ::windows::core::GUID { - (::windows::core::Vtable::vtable(self).base__.get_Id)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { - (::windows::core::Vtable::vtable(self) - .base__ - .get_IsolationLevel)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn BeginCommit<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCommit)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndCommit<'a, P0>(&self, context: P0) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Rollback(&self) { - (::windows::core::Vtable::vtable(self).Rollback)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!( - IFabricTransaction, - ::windows::core::IUnknown, - IFabricTransactionBase -); -impl ::core::clone::Clone for IFabricTransaction { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransaction { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransaction {} -impl ::core::fmt::Debug for IFabricTransaction { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransaction").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransaction { - type Vtable = IFabricTransaction_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransaction { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransaction_Vtbl { - pub base__: IFabricTransactionBase_Vtbl, - pub BeginCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndCommit: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, - pub Rollback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricTransactionBase(::windows::core::IUnknown); -impl IFabricTransactionBase { - pub unsafe fn get_Id(&self) -> *mut ::windows::core::GUID { - (::windows::core::Vtable::vtable(self).get_Id)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { - (::windows::core::Vtable::vtable(self).get_IsolationLevel)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricTransactionBase, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransactionBase { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransactionBase { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransactionBase {} -impl ::core::fmt::Debug for IFabricTransactionBase { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransactionBase") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransactionBase { - type Vtable = IFabricTransactionBase_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransactionBase { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x32d656a1_7ad5_47b8_bd66_a2e302626b7e); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransactionBase_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_Id: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::GUID, - pub get_IsolationLevel: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL, -} -pub const FabricRuntime: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); -pub type FnFabricMain = ::core::option::Option< - unsafe extern "system" fn( - runtime: ::core::option::Option, - activationcontext: ::core::option::Option, - ) -> ::windows::core::HRESULT, ->; -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs deleted file mode 100644 index c700c38d..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs +++ /dev/null @@ -1,759 +0,0 @@ -pub trait IFabricTransportCallbackMessageHandler_Impl: Sized { - fn HandleOneWay( - &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricTransportCallbackMessageHandler {} -impl IFabricTransportCallbackMessageHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportCallbackMessageHandler_Impl, - const OFFSET: isize, - >() -> IFabricTransportCallbackMessageHandler_Vtbl { - unsafe extern "system" fn HandleOneWay< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportCallbackMessageHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.HandleOneWay(::core::mem::transmute(&message)).into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - HandleOneWay: HandleOneWay::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportClient_Impl: Sized { - fn BeginRequest( - &self, - message: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndRequest( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn Send( - &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginOpen( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOpen( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginClose( - &self, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndClose( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn Abort(&self); -} -impl ::windows::core::RuntimeName for IFabricTransportClient {} -impl IFabricTransportClient_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >() -> IFabricTransportClient_Vtbl { - unsafe extern "system" fn BeginRequest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginRequest( - ::core::mem::transmute(&message), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndRequest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndRequest(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(reply, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Send< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Send(::core::mem::transmute(&message)).into() - } - unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOpen( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndOpen(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginClose( - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClient_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Abort() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginRequest: BeginRequest::, - EndRequest: EndRequest::, - Send: Send::, - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportClientConnection_Impl: Sized { - fn Send( - &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn get_ClientId(&self) -> *mut u16; -} -impl ::windows::core::RuntimeName for IFabricTransportClientConnection {} -impl IFabricTransportClientConnection_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientConnection_Impl, - const OFFSET: isize, - >() -> IFabricTransportClientConnection_Vtbl { - unsafe extern "system" fn Send< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientConnection_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Send(::core::mem::transmute(&message)).into() - } - unsafe extern "system" fn get_ClientId< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientConnection_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut u16 { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ClientId() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - Send: Send::, - get_ClientId: get_ClientId::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportClientEventHandler_Impl: Sized { - fn OnConnected( - &self, - connectionaddress: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; - fn OnDisconnected( - &self, - connectionaddress: &::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricTransportClientEventHandler {} -impl IFabricTransportClientEventHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientEventHandler_Impl, - const OFFSET: isize, - >() -> IFabricTransportClientEventHandler_Vtbl { - unsafe extern "system" fn OnConnected< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnConnected(::core::mem::transmute(&connectionaddress)) - .into() - } - unsafe extern "system" fn OnDisconnected< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportClientEventHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.OnDisconnected( - ::core::mem::transmute(&connectionaddress), - ::core::mem::transmute_copy(&error), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - OnConnected: OnConnected::, - OnDisconnected: OnDisconnected::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportConnectionHandler_Impl: Sized { - fn BeginProcessConnect( - &self, - clientconnection: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProcessConnect( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn BeginProcessDisconnect( - &self, - clientid: *const u16, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProcessDisconnect( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricTransportConnectionHandler {} -impl IFabricTransportConnectionHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportConnectionHandler_Impl, - const OFFSET: isize, - >() -> IFabricTransportConnectionHandler_Vtbl { - unsafe extern "system" fn BeginProcessConnect< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportConnectionHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - clientconnection: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProcessConnect( - ::core::mem::transmute(&clientconnection), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProcessConnect< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportConnectionHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProcessConnect(::core::mem::transmute(&context)) - .into() - } - unsafe extern "system" fn BeginProcessDisconnect< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportConnectionHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProcessDisconnect( - ::core::mem::transmute_copy(&clientid), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProcessDisconnect< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportConnectionHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndProcessDisconnect(::core::mem::transmute(&context)) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginProcessConnect: BeginProcessConnect::, - EndProcessConnect: EndProcessConnect::, - BeginProcessDisconnect: BeginProcessDisconnect::, - EndProcessDisconnect: EndProcessDisconnect::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportListener_Impl: Sized { - fn BeginOpen( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndOpen( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn BeginClose( - &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndClose( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn Abort(&self); -} -impl ::windows::core::RuntimeName for IFabricTransportListener {} -impl IFabricTransportListener_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >() -> IFabricTransportListener_Vtbl { - unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginOpen(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() - } - unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportListener_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Abort() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginOpen: BeginOpen::, - EndOpen: EndOpen::, - BeginClose: BeginClose::, - EndClose: EndClose::, - Abort: Abort::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportMessage_Impl: Sized { - fn GetHeaderAndBodyBuffer( - &self, - headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - msgbuffercount: *mut u32, - msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - ); - fn Dispose(&self); -} -impl ::windows::core::RuntimeName for IFabricTransportMessage {} -impl IFabricTransportMessage_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessage_Impl, - const OFFSET: isize, - >() -> IFabricTransportMessage_Vtbl { - unsafe extern "system" fn GetHeaderAndBodyBuffer< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - msgbuffercount: *mut u32, - msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetHeaderAndBodyBuffer( - ::core::mem::transmute_copy(&headerbuffer), - ::core::mem::transmute_copy(&msgbuffercount), - ::core::mem::transmute_copy(&msgbuffers), - ) - } - unsafe extern "system" fn Dispose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessage_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Dispose() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetHeaderAndBodyBuffer: GetHeaderAndBodyBuffer::, - Dispose: Dispose::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportMessageDisposer_Impl: Sized { - fn Dispose(&self, count: u32, messages: *const ::core::option::Option); -} -impl ::windows::core::RuntimeName for IFabricTransportMessageDisposer {} -impl IFabricTransportMessageDisposer_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageDisposer_Impl, - const OFFSET: isize, - >() -> IFabricTransportMessageDisposer_Vtbl { - unsafe extern "system" fn Dispose< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageDisposer_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - count: u32, - messages: *const *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Dispose( - ::core::mem::transmute_copy(&count), - ::core::mem::transmute_copy(&messages), - ) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - Dispose: Dispose::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricTransportMessageHandler_Impl: Sized { - fn BeginProcessRequest( - &self, - clientid: *const u16, - message: &::core::option::Option, - timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn EndProcessRequest( - &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn HandleOneWay( - &self, - clientid: *const u16, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricTransportMessageHandler {} -impl IFabricTransportMessageHandler_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageHandler_Impl, - const OFFSET: isize, - >() -> IFabricTransportMessageHandler_Vtbl { - unsafe extern "system" fn BeginProcessRequest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - message: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.BeginProcessRequest( - ::core::mem::transmute_copy(&clientid), - ::core::mem::transmute(&message), - ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), - ) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn EndProcessRequest< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.EndProcessRequest(::core::mem::transmute(&context)) { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(reply, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn HandleOneWay< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricTransportMessageHandler_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.HandleOneWay( - ::core::mem::transmute_copy(&clientid), - ::core::mem::transmute(&message), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - BeginProcessRequest: BeginProcessRequest::, - EndProcessRequest: EndProcessRequest::, - HandleOneWay: HandleOneWay::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs deleted file mode 100644 index 2c6e9ffc..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs +++ /dev/null @@ -1,1014 +0,0 @@ -#[inline] -pub unsafe fn CreateFabricTransportClient<'a, P0, P1, P2, P3>( - interfaceid: *const ::windows::core::GUID, - settings: *const FABRIC_TRANSPORT_SETTINGS, - connectionaddress: P0, - notificationhandler: P1, - clienteventhandler: P2, - messagedisposer: P3, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportCallbackMessageHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportClientEventHandler>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageDisposer>>, -{ - #[link(name = "fabrictransport")] - extern "system" { - fn CreateFabricTransportClient( - interfaceid: *const ::windows::core::GUID, - settings: *const FABRIC_TRANSPORT_SETTINGS, - connectionaddress: ::windows::core::PCWSTR, - notificationhandler: *mut ::core::ffi::c_void, - clienteventhandler: *mut ::core::ffi::c_void, - messagedisposer: *mut ::core::ffi::c_void, - client: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - CreateFabricTransportClient( - ::core::mem::transmute(interfaceid), - ::core::mem::transmute(settings), - connectionaddress.into(), - notificationhandler.into().abi(), - clienteventhandler.into().abi(), - messagedisposer.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[inline] -pub unsafe fn CreateFabricTransportListener<'a, P0, P1, P2>( - interfaceid: *const ::windows::core::GUID, - settings: *const FABRIC_TRANSPORT_SETTINGS, - address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, - requesthandler: P0, - connectionhandler: P1, - disposeprocessor: P2, -) -> ::windows::core::Result -where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportConnectionHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageDisposer>>, -{ - #[link(name = "fabrictransport")] - extern "system" { - fn CreateFabricTransportListener( - interfaceid: *const ::windows::core::GUID, - settings: *const FABRIC_TRANSPORT_SETTINGS, - address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, - requesthandler: *mut ::core::ffi::c_void, - connectionhandler: *mut ::core::ffi::c_void, - disposeprocessor: *mut ::core::ffi::c_void, - listener: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; - } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - CreateFabricTransportListener( - ::core::mem::transmute(interfaceid), - ::core::mem::transmute(settings), - ::core::mem::transmute(address), - requesthandler.into().abi(), - connectionhandler.into().abi(), - disposeprocessor.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) -} -#[repr(transparent)] -pub struct IFabricTransportCallbackMessageHandler(::windows::core::IUnknown); -impl IFabricTransportCallbackMessageHandler { - pub unsafe fn HandleOneWay<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - { - (::windows::core::Vtable::vtable(self).HandleOneWay)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricTransportCallbackMessageHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricTransportCallbackMessageHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportCallbackMessageHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportCallbackMessageHandler {} -impl ::core::fmt::Debug for IFabricTransportCallbackMessageHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportCallbackMessageHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportCallbackMessageHandler { - type Vtable = IFabricTransportCallbackMessageHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportCallbackMessageHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9ba8ac7a_3464_4774_b9b9_1d7f0f1920ba); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportCallbackMessageHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub HandleOneWay: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTransportClient(::windows::core::IUnknown); -impl IFabricTransportClient { - pub unsafe fn BeginRequest<'a, P0, P1>( - &self, - message: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRequest)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndRequest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRequest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Send<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - { - (::windows::core::Vtable::vtable(self).Send)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), - ) - .ok() - } - pub unsafe fn BeginOpen<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginClose<'a, P0>( - &self, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportClient { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportClient {} -impl ::core::fmt::Debug for IFabricTransportClient { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportClient") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportClient { - type Vtable = IFabricTransportClient_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5b0634fe_6a52_4bd9_8059_892c72c1d73a); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginRequest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndRequest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Send: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricTransportClientConnection(::windows::core::IUnknown); -impl IFabricTransportClientConnection { - pub unsafe fn Send<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - { - (::windows::core::Vtable::vtable(self).Send)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), - ) - .ok() - } - pub unsafe fn get_ClientId(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ClientId)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportClientConnection, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportClientConnection { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportClientConnection { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportClientConnection {} -impl ::core::fmt::Debug for IFabricTransportClientConnection { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportClientConnection") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportClientConnection { - type Vtable = IFabricTransportClientConnection_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportClientConnection { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa54c17f7_fe94_4838_b14d_e9b5c258e2d0); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportClientConnection_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub Send: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub get_ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, -} -#[repr(transparent)] -pub struct IFabricTransportClientEventHandler(::windows::core::IUnknown); -impl IFabricTransportClientEventHandler { - pub unsafe fn OnConnected<'a, P0>(&self, connectionaddress: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).OnConnected)( - ::windows::core::Vtable::as_raw(self), - connectionaddress.into(), - ) - .ok() - } - pub unsafe fn OnDisconnected<'a, P0>( - &self, - connectionaddress: P0, - error: ::windows::core::HRESULT, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - { - (::windows::core::Vtable::vtable(self).OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - connectionaddress.into(), - error, - ) - .ok() - } -} -::windows::core::interface_hierarchy!( - IFabricTransportClientEventHandler, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricTransportClientEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportClientEventHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportClientEventHandler {} -impl ::core::fmt::Debug for IFabricTransportClientEventHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportClientEventHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportClientEventHandler { - type Vtable = IFabricTransportClientEventHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportClientEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4935ab6f_a8bc_4b10_a69e_7a3ba3324892); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportClientEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub OnConnected: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, - pub OnDisconnected: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTransportConnectionHandler(::windows::core::IUnknown); -impl IFabricTransportConnectionHandler { - pub unsafe fn BeginProcessConnect<'a, P0, P1>( - &self, - clientconnection: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportClientConnection>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessConnect)( - ::windows::core::Vtable::as_raw(self), - clientconnection.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProcessConnect<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProcessConnect)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn BeginProcessDisconnect<'a, P0>( - &self, - clientid: *const u16, - timeoutmilliseconds: u32, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessDisconnect)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProcessDisconnect<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndProcessDisconnect)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricTransportConnectionHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportConnectionHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportConnectionHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportConnectionHandler {} -impl ::core::fmt::Debug for IFabricTransportConnectionHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportConnectionHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportConnectionHandler { - type Vtable = IFabricTransportConnectionHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportConnectionHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb069692d_e8f0_4f25_a3b6_b2992598a64c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportConnectionHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginProcessConnect: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - clientconnection: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProcessConnect: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginProcessDisconnect: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProcessDisconnect: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricTransportListener(::windows::core::IUnknown); -impl IFabricTransportListener { - pub unsafe fn BeginOpen<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndOpen<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn BeginClose<'a, P0>( - &self, - callback: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - .ok() - } - pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportListener, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportListener { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportListener { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportListener {} -impl ::core::fmt::Debug for IFabricTransportListener { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportListener") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportListener { - type Vtable = IFabricTransportListener_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportListener { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1b63a266_1eeb_4f3e_8886_521458980d10); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportListener_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndOpen: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub BeginClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndClose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricTransportMessage(::windows::core::IUnknown); -impl IFabricTransportMessage { - pub unsafe fn GetHeaderAndBodyBuffer( - &self, - headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - msgbuffercount: *mut u32, - msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - ) { - (::windows::core::Vtable::vtable(self).GetHeaderAndBodyBuffer)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(headerbuffer), - ::core::mem::transmute(msgbuffercount), - ::core::mem::transmute(msgbuffers), - ) - } - pub unsafe fn Dispose(&self) { - (::windows::core::Vtable::vtable(self).Dispose)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportMessage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessage { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportMessage { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportMessage {} -impl ::core::fmt::Debug for IFabricTransportMessage { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportMessage") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportMessage { - type Vtable = IFabricTransportMessage_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportMessage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb4357dab_ef06_465f_b453_938f3b0ad4b5); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportMessage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetHeaderAndBodyBuffer: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - msgbuffercount: *mut u32, - msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, - ), - pub Dispose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), -} -#[repr(transparent)] -pub struct IFabricTransportMessageDisposer(::windows::core::IUnknown); -impl IFabricTransportMessageDisposer { - pub unsafe fn Dispose(&self, messages: &[::core::option::Option]) { - (::windows::core::Vtable::vtable(self).Dispose)( - ::windows::core::Vtable::as_raw(self), - messages.len() as _, - ::core::mem::transmute(messages.as_ptr()), - ) - } -} -::windows::core::interface_hierarchy!(IFabricTransportMessageDisposer, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessageDisposer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportMessageDisposer { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportMessageDisposer {} -impl ::core::fmt::Debug for IFabricTransportMessageDisposer { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportMessageDisposer") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportMessageDisposer { - type Vtable = IFabricTransportMessageDisposer_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportMessageDisposer { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x914097f3_a821_46ea_b3d9_feafe5f7c4a9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportMessageDisposer_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub Dispose: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - count: u32, - messages: *const *mut ::core::ffi::c_void, - ), -} -#[repr(transparent)] -pub struct IFabricTransportMessageHandler(::windows::core::IUnknown); -impl IFabricTransportMessageHandler { - pub unsafe fn BeginProcessRequest<'a, P0, P1>( - &self, - clientid: *const u16, - message: P0, - timeoutmilliseconds: u32, - callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessRequest)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), - message.into().abi(), - timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn EndProcessRequest<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndProcessRequest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn HandleOneWay<'a, P0>( - &self, - clientid: *const u16, - message: P0, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - { - (::windows::core::Vtable::vtable(self).HandleOneWay)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), - message.into().abi(), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricTransportMessageHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessageHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricTransportMessageHandler { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricTransportMessageHandler {} -impl ::core::fmt::Debug for IFabricTransportMessageHandler { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricTransportMessageHandler") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricTransportMessageHandler { - type Vtable = IFabricTransportMessageHandler_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricTransportMessageHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6815bdb4_1479_4c44_8b9d_57d6d0cc9d64); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricTransportMessageHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub BeginProcessRequest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - message: *mut ::core::ffi::c_void, - timeoutmilliseconds: u32, - callback: *mut ::core::ffi::c_void, - context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub EndProcessRequest: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub HandleOneWay: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - clientid: *const u16, - message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, -} -#[repr(C)] -pub struct FABRIC_TRANSPORT_LISTEN_ADDRESS { - pub IPAddressOrFQDN: ::windows::core::PCWSTR, - pub Port: u32, - pub Path: ::windows::core::PCWSTR, -} -impl ::core::marker::Copy for FABRIC_TRANSPORT_LISTEN_ADDRESS {} -impl ::core::clone::Clone for FABRIC_TRANSPORT_LISTEN_ADDRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_TRANSPORT_LISTEN_ADDRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_TRANSPORT_LISTEN_ADDRESS") - .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) - .field("Port", &self.Port) - .field("Path", &self.Path) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_LISTEN_ADDRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_LISTEN_ADDRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_TRANSPORT_LISTEN_ADDRESS {} -impl ::core::default::Default for FABRIC_TRANSPORT_LISTEN_ADDRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_TRANSPORT_MESSAGE_BUFFER { - pub BufferSize: u32, - pub Buffer: *mut u8, -} -impl ::core::marker::Copy for FABRIC_TRANSPORT_MESSAGE_BUFFER {} -impl ::core::clone::Clone for FABRIC_TRANSPORT_MESSAGE_BUFFER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_TRANSPORT_MESSAGE_BUFFER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_TRANSPORT_MESSAGE_BUFFER") - .field("BufferSize", &self.BufferSize) - .field("Buffer", &self.Buffer) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_MESSAGE_BUFFER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_MESSAGE_BUFFER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_TRANSPORT_MESSAGE_BUFFER {} -impl ::core::default::Default for FABRIC_TRANSPORT_MESSAGE_BUFFER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_TRANSPORT_SETTINGS { - pub OperationTimeoutInSeconds: u32, - pub KeepAliveTimeoutInSeconds: u32, - pub MaxMessageSize: u32, - pub MaxConcurrentCalls: u32, - pub MaxQueueSize: u32, - pub SecurityCredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_TRANSPORT_SETTINGS {} -impl ::core::clone::Clone for FABRIC_TRANSPORT_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_TRANSPORT_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_TRANSPORT_SETTINGS") - .field("OperationTimeoutInSeconds", &self.OperationTimeoutInSeconds) - .field("KeepAliveTimeoutInSeconds", &self.KeepAliveTimeoutInSeconds) - .field("MaxMessageSize", &self.MaxMessageSize) - .field("MaxConcurrentCalls", &self.MaxConcurrentCalls) - .field("MaxQueueSize", &self.MaxQueueSize) - .field("SecurityCredentials", &self.SecurityCredentials) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_TRANSPORT_SETTINGS {} -impl ::core::default::Default for FABRIC_TRANSPORT_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/FabricCommon/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/impl.rs deleted file mode 100644 index 3feb5bda..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/impl.rs +++ /dev/null @@ -1,207 +0,0 @@ -pub trait IFabricAsyncOperationCallback_Impl: Sized { - fn Invoke(&self, context: &::core::option::Option); -} -impl ::windows::core::RuntimeName for IFabricAsyncOperationCallback {} -impl IFabricAsyncOperationCallback_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationCallback_Impl, - const OFFSET: isize, - >() -> IFabricAsyncOperationCallback_Vtbl { - unsafe extern "system" fn Invoke< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationCallback_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ) { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Invoke(::core::mem::transmute(&context)) - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricAsyncOperationContext_Impl: Sized { - fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN; - fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN; - fn Callback(&self) -> ::windows::core::Result; - fn Cancel(&self) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricAsyncOperationContext {} -impl IFabricAsyncOperationContext_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationContext_Impl, - const OFFSET: isize, - >() -> IFabricAsyncOperationContext_Vtbl { - unsafe extern "system" fn IsCompleted< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::Win32::Foundation::BOOLEAN { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.IsCompleted() - } - unsafe extern "system" fn CompletedSynchronously< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::Win32::Foundation::BOOLEAN { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.CompletedSynchronously() - } - unsafe extern "system" fn Callback< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - callback: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - match this.Callback() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(callback, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } - } - unsafe extern "system" fn Cancel< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricAsyncOperationContext_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.Cancel().into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - IsCompleted: IsCompleted::, - CompletedSynchronously: CompletedSynchronously::, - Callback: Callback::, - Cancel: Cancel::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricGetReplicatorStatusResult_Impl: Sized { - fn get_ReplicatorStatus(&self) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT; -} -impl ::windows::core::RuntimeName for IFabricGetReplicatorStatusResult {} -impl IFabricGetReplicatorStatusResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicatorStatusResult_Impl, - const OFFSET: isize, - >() -> IFabricGetReplicatorStatusResult_Vtbl { - unsafe extern "system" fn get_ReplicatorStatus< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricGetReplicatorStatusResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_ReplicatorStatus() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_ReplicatorStatus: get_ReplicatorStatus::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStringListResult_Impl: Sized { - fn GetStrings( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()>; -} -impl ::windows::core::RuntimeName for IFabricStringListResult {} -impl IFabricStringListResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStringListResult_Impl, - const OFFSET: isize, - >() -> IFabricStringListResult_Vtbl { - unsafe extern "system" fn GetStrings< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStringListResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.GetStrings( - ::core::mem::transmute_copy(&itemcount), - ::core::mem::transmute_copy(&buffereditems), - ) - .into() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - GetStrings: GetStrings::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} -pub trait IFabricStringResult_Impl: Sized { - fn get_String(&self) -> ::windows::core::PWSTR; -} -impl ::windows::core::RuntimeName for IFabricStringResult {} -impl IFabricStringResult_Vtbl { - pub const fn new< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStringResult_Impl, - const OFFSET: isize, - >() -> IFabricStringResult_Vtbl { - unsafe extern "system" fn get_String< - Identity: ::windows::core::IUnknownImpl, - Impl: IFabricStringResult_Impl, - const OFFSET: isize, - >( - this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); - this.get_String() - } - Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), - get_String: get_String::, - } - } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - } -} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/mod.rs deleted file mode 100644 index 4e765d3d..00000000 --- a/src/Microsoft/ServiceFabric/FabricCommon/mod.rs +++ /dev/null @@ -1,254 +0,0 @@ -pub mod FabricClient; -pub mod FabricRuntime; -pub mod FabricTransport; -#[repr(transparent)] -pub struct IFabricAsyncOperationCallback(::windows::core::IUnknown); -impl IFabricAsyncOperationCallback { - pub unsafe fn Invoke<'a, P0>(&self, context: P0) - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricAsyncOperationContext>>, - { - (::windows::core::Vtable::vtable(self).Invoke)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ) - } -} -::windows::core::interface_hierarchy!(IFabricAsyncOperationCallback, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAsyncOperationCallback { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricAsyncOperationCallback { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricAsyncOperationCallback {} -impl ::core::fmt::Debug for IFabricAsyncOperationCallback { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricAsyncOperationCallback") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricAsyncOperationCallback { - type Vtable = IFabricAsyncOperationCallback_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricAsyncOperationCallback { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x86f08d7e_14dd_4575_8489_b1d5d679029c); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricAsyncOperationCallback_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub Invoke: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - context: *mut ::core::ffi::c_void, - ), -} -#[repr(transparent)] -pub struct IFabricAsyncOperationContext(::windows::core::IUnknown); -impl IFabricAsyncOperationContext { - pub unsafe fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).IsCompleted)(::windows::core::Vtable::as_raw(self)) - } - pub unsafe fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).CompletedSynchronously)( - ::windows::core::Vtable::as_raw(self), - ) - } - pub unsafe fn Callback(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Callback)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) - } - pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).Cancel)(::windows::core::Vtable::as_raw(self)).ok() - } -} -::windows::core::interface_hierarchy!(IFabricAsyncOperationContext, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAsyncOperationContext { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricAsyncOperationContext { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricAsyncOperationContext {} -impl ::core::fmt::Debug for IFabricAsyncOperationContext { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricAsyncOperationContext") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricAsyncOperationContext { - type Vtable = IFabricAsyncOperationContext_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricAsyncOperationContext { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x841720bf_c9e8_4e6f_9c3f_6b7f4ac73bcd); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricAsyncOperationContext_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub IsCompleted: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> ::windows::Win32::Foundation::BOOLEAN, - pub CompletedSynchronously: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) - -> ::windows::Win32::Foundation::BOOLEAN, - pub Callback: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - callback: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, - pub Cancel: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricGetReplicatorStatusResult(::windows::core::IUnknown); -impl IFabricGetReplicatorStatusResult { - pub unsafe fn get_ReplicatorStatus(&self) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ReplicatorStatus)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!(IFabricGetReplicatorStatusResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetReplicatorStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricGetReplicatorStatusResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricGetReplicatorStatusResult {} -impl ::core::fmt::Debug for IFabricGetReplicatorStatusResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricGetReplicatorStatusResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricGetReplicatorStatusResult { - type Vtable = IFabricGetReplicatorStatusResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricGetReplicatorStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x30e10c61_a710_4f99_a623_bb1403265186); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricGetReplicatorStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_ReplicatorStatus: - unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - ) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT, -} -#[repr(transparent)] -pub struct IFabricStringListResult(::windows::core::IUnknown); -impl IFabricStringListResult { - pub unsafe fn GetStrings( - &self, - itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetStrings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), - ) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricStringListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStringListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStringListResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStringListResult {} -impl ::core::fmt::Debug for IFabricStringListResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStringListResult") - .field(&self.0) - .finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStringListResult { - type Vtable = IFabricStringListResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStringListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStringListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub GetStrings: unsafe extern "system" fn( - this: *mut ::core::ffi::c_void, - itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, -} -#[repr(transparent)] -pub struct IFabricStringResult(::windows::core::IUnknown); -impl IFabricStringResult { - pub unsafe fn get_String(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_String)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStringResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStringResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} -impl ::core::cmp::PartialEq for IFabricStringResult { - fn eq(&self, other: &Self) -> bool { - self.0 == other.0 - } -} -impl ::core::cmp::Eq for IFabricStringResult {} -impl ::core::fmt::Debug for IFabricStringResult { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("IFabricStringResult").field(&self.0).finish() - } -} -unsafe impl ::windows::core::Vtable for IFabricStringResult { - type Vtable = IFabricStringResult_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricStringResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4ae69614_7d0f_4cd4_b836_23017000d132); -} -#[repr(C)] -#[doc(hidden)] -pub struct IFabricStringResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, - pub get_String: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/impl.rs b/src/Microsoft/ServiceFabric/impl.rs deleted file mode 100644 index 8b137891..00000000 --- a/src/Microsoft/ServiceFabric/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Microsoft/ServiceFabric/mod.rs b/src/Microsoft/ServiceFabric/mod.rs deleted file mode 100644 index 02b3e90a..00000000 --- a/src/Microsoft/ServiceFabric/mod.rs +++ /dev/null @@ -1,33413 +0,0 @@ -pub mod FabricCommon; -pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; -pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; -pub const FABRIC_IGNORE_SEQUENCE_NUMBER_CHECK: u32 = 0u32; -pub const FABRIC_INFINITE_DURATION: u32 = 4294967295u32; -pub const FABRIC_INVALID_ATOMIC_GROUP_ID: i32 = -1i32; -pub const FABRIC_INVALID_INSTANCE_ID: i32 = -1i32; -pub const FABRIC_INVALID_NODE_INSTANCE_ID: u32 = 0u32; -pub const FABRIC_INVALID_OPERATION_INDEX: u32 = 4294967295u32; -pub const FABRIC_INVALID_REPLICA_ID: i32 = -1i32; -pub const FABRIC_INVALID_SEQUENCE_NUMBER: i32 = -1i32; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = - FABRIC_APPLICATION_DEFINITION_KIND(65535i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND = - FABRIC_APPLICATION_DEFINITION_KIND(1i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DEFINITION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_ALL: FABRIC_APPLICATION_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_DEFINITION_KIND_FILTER(65535i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_COMPOSE: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(2i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_DEFINITION_KIND_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_INVALID: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(0i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_DEFAULT: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_AUTOMATIC: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(2i32); -pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_MANUAL: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(3i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY {} -impl ::core::clone::Clone for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_STATUS(pub i32); -pub const FABRIC_APPLICATION_STATUS_INVALID: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(0i32); -pub const FABRIC_APPLICATION_STATUS_READY: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(1i32); -pub const FABRIC_APPLICATION_STATUS_UPGRADING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(2i32); -pub const FABRIC_APPLICATION_STATUS_CREATING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(3i32); -pub const FABRIC_APPLICATION_STATUS_DELETING: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(4i32); -pub const FABRIC_APPLICATION_STATUS_FAILED: FABRIC_APPLICATION_STATUS = - FABRIC_APPLICATION_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_STATUS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND(0i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND(2i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_ALL: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(65535i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(1i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_COMPOSE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(2i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_INVALID: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(0i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_PROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(1i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(2i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_UNPROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(3i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_STATUS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_TYPE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MAXNODES: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_METRICS: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); -pub const FABRIC_APPLICATION_UPGRADE_KIND_INVALID: FABRIC_APPLICATION_UPGRADE_KIND = - FABRIC_APPLICATION_UPGRADE_KIND(0i32); -pub const FABRIC_APPLICATION_UPGRADE_KIND_ROLLING: FABRIC_APPLICATION_UPGRADE_KIND = - FABRIC_APPLICATION_UPGRADE_KIND(1i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPGRADE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_INVALID: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(0i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_COMPLETED: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(2i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_PENDING: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(4i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(6i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(7i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_STATE {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_APPLICATION_UPGRADE_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); -pub const FABRIC_CHAOS_EVENT_KIND_INVALID: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(0i32); -pub const FABRIC_CHAOS_EVENT_KIND_STARTED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(1i32); -pub const FABRIC_CHAOS_EVENT_KIND_EXECUTING_FAULTS: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(2i32); -pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(3i32); -pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(4i32); -pub const FABRIC_CHAOS_EVENT_KIND_TEST_ERROR: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(5i32); -pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(6i32); -impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_KIND {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_EVENT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_EVENT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(0i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_ACTIVE: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(1i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_EXPIRED: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(2i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_PENDING: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(3i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_STOPPED: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(4i32); -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_STATUS {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_SCHEDULE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_STATUS(pub i32); -pub const FABRIC_CHAOS_STATUS_INVALID: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(0i32); -pub const FABRIC_CHAOS_STATUS_RUNNING: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(1i32); -pub const FABRIC_CHAOS_STATUS_STOPPED: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(2i32); -impl ::core::marker::Copy for FABRIC_CHAOS_STATUS {} -impl ::core::clone::Clone for FABRIC_CHAOS_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CHAOS_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CHAOS_STATUS").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); -pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = - FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); -pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_AAD: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = - FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(1i32); -impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND {} -impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CLIENT_ROLE(pub i32); -pub const FABRIC_CLIENT_ROLE_UNKNOWN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(0i32); -pub const FABRIC_CLIENT_ROLE_USER: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(1i32); -pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); -impl ::core::marker::Copy for FABRIC_CLIENT_ROLE {} -impl ::core::clone::Clone for FABRIC_CLIENT_ROLE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CLIENT_ROLE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_ROLE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CLIENT_ROLE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CLIENT_ROLE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_INVALID: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(0i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_NONE: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(1i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_EXEHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(2i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_INVALID: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(0i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_READY: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(3i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STOPPED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(5i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_TERMINATED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(6i32); -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_TYPE {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_EVENT_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_CODE_PACKAGE_EVENT_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DATA_LOSS_MODE(pub i32); -pub const FABRIC_DATA_LOSS_MODE_INVALID: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(0i32); -pub const FABRIC_DATA_LOSS_MODE_PARTIAL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(1i32); -pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); -impl ::core::marker::Copy for FABRIC_DATA_LOSS_MODE {} -impl ::core::clone::Clone for FABRIC_DATA_LOSS_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DATA_LOSS_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DATA_LOSS_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_DATA_LOSS_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_DATA_LOSS_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); -pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(0i32); -pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(1i32); -pub const FABRIC_DEPLOYMENT_STATUS_ACTIVATING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(2i32); -pub const FABRIC_DEPLOYMENT_STATUS_ACTIVE: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(3i32); -pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(4i32); -pub const FABRIC_DEPLOYMENT_STATUS_DEACTIVATING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_DEPLOYMENT_STATUS {} -impl ::core::clone::Clone for FABRIC_DEPLOYMENT_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DEPLOYMENT_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYMENT_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_DEPLOYMENT_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_DEPLOYMENT_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); -pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = - FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); -pub const FABRIC_DIAGNOSTICS_SINKS_KIND_AZUREINTERNAL: FABRIC_DIAGNOSTICS_SINKS_KIND = - FABRIC_DIAGNOSTICS_SINKS_KIND(1i32); -impl ::core::marker::Copy for FABRIC_DIAGNOSTICS_SINKS_KIND {} -impl ::core::clone::Clone for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DIAGNOSTICS_SINKS_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_DIAGNOSTICS_SINKS_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_INVALID: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(0i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); -pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_MANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(2i32); -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_KIND {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_DLLHOST_HOSTED_DLL_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_INVALID: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(0i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_SHARED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(1i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(2i32); -pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_PROCESS: FABRIC_DLLHOST_ISOLATION_POLICY = - FABRIC_DLLHOST_ISOLATION_POLICY(3i32); -impl ::core::marker::Copy for FABRIC_DLLHOST_ISOLATION_POLICY {} -impl ::core::clone::Clone for FABRIC_DLLHOST_ISOLATION_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DLLHOST_ISOLATION_POLICY { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_ISOLATION_POLICY { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_ISOLATION_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_DLLHOST_ISOLATION_POLICY") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); -pub const FABRIC_ENTRY_POINT_STATUS_INVALID: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(0i32); -pub const FABRIC_ENTRY_POINT_STATUS_PENDING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(1i32); -pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(2i32); -pub const FABRIC_ENTRY_POINT_STATUS_STARTED: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(3i32); -pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(4i32); -pub const FABRIC_ENTRY_POINT_STATUS_STOPPED: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_ENTRY_POINT_STATUS {} -impl ::core::clone::Clone for FABRIC_ENTRY_POINT_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ENTRY_POINT_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENTRY_POINT_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_ENTRY_POINT_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_ENTRY_POINT_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ENUMERATION_STATUS(pub i32); -pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(0i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(1i32); -pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(2i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_FINISHED: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(4i32); -pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(8i32); -pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(15i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(5i32); -pub const FABRIC_ENUMERATION_CONSISTENT_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(10i32); -pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(3i32); -pub const FABRIC_ENUMERATION_FINISHED_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(12i32); -impl ::core::marker::Copy for FABRIC_ENUMERATION_STATUS {} -impl ::core::clone::Clone for FABRIC_ENUMERATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ENUMERATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENUMERATION_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_ENUMERATION_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_ENUMERATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ERROR_CODE(pub i32); -pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); -pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); -pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); -pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); -pub const FABRIC_E_NAME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017792i32); -pub const FABRIC_E_NAME_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017791i32); -pub const FABRIC_E_NAME_NOT_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017790i32); -pub const FABRIC_E_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); -pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); -pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); -pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); -pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); -pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017784i32); -pub const FABRIC_E_PROPERTY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017783i32); -pub const FABRIC_E_RECONFIGURATION_PENDING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017782i32); -pub const FABRIC_E_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017781i32); -pub const FABRIC_E_SERVICE_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017780i32); -pub const FABRIC_E_SERVICE_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017779i32); -pub const FABRIC_E_SERVICE_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); -pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017777i32); -pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017776i32); -pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017775i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017774i32); -pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); -pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); -pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); -pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); -pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); -pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017768i32); -pub const FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017767i32); -pub const FABRIC_E_APPLICATION_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017766i32); -pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017765i32); -pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017764i32); -pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); -pub const FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017762i32); -pub const FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017761i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017760i32); -pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); -pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017758i32); -pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017757i32); -pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017756i32); -pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); -pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017754i32); -pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); -pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017752i32); -pub const FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017751i32); -pub const FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017750i32); -pub const FABRIC_E_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); -pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); -pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); -pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017746i32); -pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017745i32); -pub const FABRIC_E_INVALID_X509_STORE_LOCATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017744i32); -pub const FABRIC_E_INVALID_X509_STORE_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017743i32); -pub const FABRIC_E_INVALID_X509_THUMBPRINT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017742i32); -pub const FABRIC_E_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017741i32); -pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); -pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); -pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017738i32); -pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); -pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); -pub const FABRIC_E_CONFIGURATION_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017735i32); -pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017734i32); -pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017733i32); -pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017732i32); -pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); -pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); -pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); -pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); -pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); -pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); -pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); -pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); -pub const FABRIC_E_CORRUPTED_IMAGE_STORE_OBJECT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017723i32); -pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017722i32); -pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017721i32); -pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017720i32); -pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017719i32); -pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); -pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017717i32); -pub const FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017716i32); -pub const FABRIC_E_FABRIC_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017715i32); -pub const FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017714i32); -pub const FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017713i32); -pub const FABRIC_E_HEALTH_MAX_REPORTS_REACHED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017712i32); -pub const FABRIC_E_HEALTH_STALE_REPORT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017711i32); -pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); -pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); -pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017708i32); -pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); -pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); -pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017705i32); -pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017704i32); -pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017703i32); -pub const FABRIC_E_RELIABLE_SESSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017702i32); -pub const FABRIC_E_RELIABLE_SESSION_CANNOT_CONNECT: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017701i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017700i32); -pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017699i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017698i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017697i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_LISTENING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017696i32); -pub const FABRIC_E_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); -pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); -pub const FABRIC_E_IMAGEBUILDER_ACCESS_DENIED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017693i32); -pub const FABRIC_E_IMAGEBUILDER_INVALID_MSI_FILE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017692i32); -pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); -pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017690i32); -pub const FABRIC_E_REPAIR_TASK_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017689i32); -pub const FABRIC_E_REPAIR_TASK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017688i32); -pub const FABRIC_E_RELIABLE_SESSION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017687i32); -pub const FABRIC_E_RELIABLE_SESSION_QUEUE_EMPTY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017686i32); -pub const FABRIC_E_RELIABLE_SESSION_QUOTA_EXCEEDED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017685i32); -pub const FABRIC_E_RELIABLE_SESSION_SERVICE_FAULTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017684i32); -pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017683i32); -pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); -pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017681i32); -pub const FABRIC_E_INSTANCE_ID_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017680i32); -pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017679i32); -pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017678i32); -pub const FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017677i32); -pub const FABRIC_E_INVALID_PACKAGE_SHARING_POLICY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017676i32); -pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017675i32); -pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017674i32); -pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); -pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); -pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017671i32); -pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017670i32); -pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); -pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017668i32); -pub const FABRIC_E_INVALID_PARTITION_OPERATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017667i32); -pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017666i32); -pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017665i32); -pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017664i32); -pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017663i32); -pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017662i32); -pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); -pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017660i32); -pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017659i32); -pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017658i32); -pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017657i32); -pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017656i32); -pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); -pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017654i32); -pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); -pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); -pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); -pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017650i32); -pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); -pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017648i32); -pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017647i32); -pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017646i32); -pub const FABRIC_E_INVALID_TEST_COMMAND_STATE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017645i32); -pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017644i32); -pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); -pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017642i32); -pub const FABRIC_E_CERTIFICATE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017641i32); -pub const FABRIC_E_CHAOS_ALREADY_RUNNING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017640i32); -pub const FABRIC_E_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017639i32); -pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); -pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); -pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); -pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); -pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); -pub const FABRIC_E_NODE_IS_DOWN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017633i32); -pub const FABRIC_E_NODE_TRANSITION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017632i32); -pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); -pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); -pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); -pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017628i32); -pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); -pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017626i32); -pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017625i32); -pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017624i32); -pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017623i32); -pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); -pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); -pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017619i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017618i32); -pub const FABRIC_E_INVALID_FOR_STATEFUL_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017617i32); -pub const FABRIC_E_INVALID_FOR_STATELESS_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017616i32); -pub const FABRIC_E_ONLY_VALID_FOR_STATEFUL_PERSISTENT_SERVICES: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017615i32); -pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017614i32); -pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); -pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); -pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017611i32); -pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017610i32); -pub const FABRIC_E_RESTORE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017609i32); -pub const FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017608i32); -pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017607i32); -pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); -pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); -pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); -pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017603i32); -pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); -pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017601i32); -pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017600i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017599i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017598i32); -pub const FABRIC_E_VOLUME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017597i32); -pub const FABRIC_E_VOLUME_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017596i32); -pub const FABRIC_E_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017595i32); -pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017594i32); -pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); -pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017592i32); -pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017591i32); -pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017590i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017589i32); -pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017588i32); -pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); -pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); -pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -impl ::core::marker::Copy for FABRIC_ERROR_CODE {} -impl ::core::clone::Clone for FABRIC_ERROR_CODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ERROR_CODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ERROR_CODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_ERROR_CODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_ERROR_CODE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_INVALID: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(0i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_WORK: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(1i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(2i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(3i32); -impl ::core::marker::Copy for FABRIC_EXEHOST_WORKING_FOLDER {} -impl ::core::clone::Clone for FABRIC_EXEHOST_WORKING_FOLDER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_EXEHOST_WORKING_FOLDER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_WORKING_FOLDER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_EXEHOST_WORKING_FOLDER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_EXEHOST_WORKING_FOLDER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_FAULT_TYPE(pub i32); -pub const FABRIC_FAULT_TYPE_INVALID: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(0i32); -pub const FABRIC_FAULT_TYPE_PERMANENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(1i32); -pub const FABRIC_FAULT_TYPE_TRANSIENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(2i32); -impl ::core::marker::Copy for FABRIC_FAULT_TYPE {} -impl ::core::clone::Clone for FABRIC_FAULT_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_FAULT_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_FAULT_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_FAULT_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_FAULT_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); -pub const FABRIC_HEALTH_ENTITY_KIND_INVALID: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(0i32); -pub const FABRIC_HEALTH_ENTITY_KIND_NODE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(1i32); -pub const FABRIC_HEALTH_ENTITY_KIND_PARTITION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(2i32); -pub const FABRIC_HEALTH_ENTITY_KIND_SERVICE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(3i32); -pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(4i32); -pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(5i32); -pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(6i32); -pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(7i32); -pub const FABRIC_HEALTH_ENTITY_KIND_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(8i32); -impl ::core::marker::Copy for FABRIC_HEALTH_ENTITY_KIND {} -impl ::core::clone::Clone for FABRIC_HEALTH_ENTITY_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HEALTH_ENTITY_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_ENTITY_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HEALTH_ENTITY_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_ENTITY_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(0i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(1i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(2i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(3i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(4i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(5i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(6i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(7i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(8i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SYSTEM_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(9i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(10i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_NODES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(11i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(12i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(13i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(14i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(15i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(16i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(17i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(18i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(19i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DELTA_NODES_CHECK: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(20i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION_TYPE_APPLICATIONS: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); -impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION_KIND {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_EVALUATION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_REPORT_KIND(pub i32); -pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(0i32); -pub const FABRIC_HEALTH_REPORT_KIND_STATEFUL_SERVICE_REPLICA: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(1i32); -pub const FABRIC_HEALTH_REPORT_KIND_STATELESS_SERVICE_INSTANCE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(2i32); -pub const FABRIC_HEALTH_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(3i32); -pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(4i32); -pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(5i32); -pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(6i32); -pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(7i32); -pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(8i32); -pub const FABRIC_HEALTH_REPORT_KIND_CLUSTER: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(9i32); -impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_KIND {} -impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HEALTH_REPORT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_REPORT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_STATE(pub i32); -pub const FABRIC_HEALTH_STATE_INVALID: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(0i32); -pub const FABRIC_HEALTH_STATE_OK: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(1i32); -pub const FABRIC_HEALTH_STATE_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); -pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); -pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); -impl ::core::marker::Copy for FABRIC_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HEALTH_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_STATE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_STATE_FILTER(pub i32); -pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(0i32); -pub const FABRIC_HEALTH_STATE_FILTER_NONE: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(1i32); -pub const FABRIC_HEALTH_STATE_FILTER_OK: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(2i32); -pub const FABRIC_HEALTH_STATE_FILTER_WARNING: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(4i32); -pub const FABRIC_HEALTH_STATE_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(8i32); -pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(65535i32); -impl ::core::marker::Copy for FABRIC_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HEALTH_STATE_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HOST_ISOLATION_MODE(pub i32); -pub const FABRIC_HOST_ISOLATION_MODE_NONE: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(0i32); -pub const FABRIC_HOST_ISOLATION_MODE_PROCESS: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(1i32); -pub const FABRIC_HOST_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(2i32); -impl ::core::marker::Copy for FABRIC_HOST_ISOLATION_MODE {} -impl ::core::clone::Clone for FABRIC_HOST_ISOLATION_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HOST_ISOLATION_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HOST_ISOLATION_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HOST_ISOLATION_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HOST_ISOLATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HOST_TYPE(pub i32); -pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); -pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); -pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); -impl ::core::marker::Copy for FABRIC_HOST_TYPE {} -impl ::core::clone::Clone for FABRIC_HOST_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_HOST_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_HOST_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_HOST_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HOST_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(pub i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_DEFAULT: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(0i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_PHYSICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(1i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_LOGICAL: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(2i32); -pub const FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE_REBUILD: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(3i32); -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(pub i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(0i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_MIGRATION: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(1i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_SWAP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_CLEANUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(3i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_SOURCE_DATABASE_CLEANUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(4i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_ACTIVE: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(5i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_RESTORE_SOURCE_BACKUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(pub i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(0i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_PROCESSING: - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(1i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_COMPLETED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(2i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_CANCELED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(3i32); -pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_FAILED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_MIGRATION_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(pub i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_INVALID: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(0i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NONE: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(1i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NON_BLOCKING_QUORUM_ACKED: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(2i32); -pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(pub i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_UNKNOWN: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(0i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_ESE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(1i32); -pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_TSTORE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = - FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(2i32); -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_KEY_VALUE_STORE_PROVIDER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_LOCAL_STORE_KIND(pub i32); -pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(0i32); -pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); -impl ::core::marker::Copy for FABRIC_LOCAL_STORE_KIND {} -impl ::core::clone::Clone for FABRIC_LOCAL_STORE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_LOCAL_STORE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_STORE_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_LOCAL_STORE_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_LOCAL_STORE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(pub i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_INVALID: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(0i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_ROLLBACK: - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); -impl ::core::marker::Copy for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION {} -impl ::core::clone::Clone for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_MONITORED_UPGRADE_FAILURE_ACTION") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_MOVE_COST(pub i32); -pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); -pub const FABRIC_MOVE_COST_LOW: FABRIC_MOVE_COST = FABRIC_MOVE_COST(1i32); -pub const FABRIC_MOVE_COST_MEDIUM: FABRIC_MOVE_COST = FABRIC_MOVE_COST(2i32); -pub const FABRIC_MOVE_COST_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); -impl ::core::marker::Copy for FABRIC_MOVE_COST {} -impl ::core::clone::Clone for FABRIC_MOVE_COST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_MOVE_COST { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_COST { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_MOVE_COST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_COST").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(pub i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(0i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(1i32); -pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: - FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(2i32); -impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(pub i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(0i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(1i32); -pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: - FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(2i32); -impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NETWORK_STATUS(pub i32); -pub const FABRIC_NETWORK_STATUS_INVALID: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(0i32); -pub const FABRIC_NETWORK_STATUS_READY: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(1i32); -pub const FABRIC_NETWORK_STATUS_CREATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(2i32); -pub const FABRIC_NETWORK_STATUS_DELETING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(3i32); -pub const FABRIC_NETWORK_STATUS_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); -pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_NETWORK_STATUS {} -impl ::core::clone::Clone for FABRIC_NETWORK_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NETWORK_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NETWORK_STATUS_FILTER(pub i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(0i32); -pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(65535i32); -pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(1i32); -pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(2i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(4i32); -pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(8i32); -pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(16i32); -impl ::core::marker::Copy for FABRIC_NETWORK_STATUS_FILTER {} -impl ::core::clone::Clone for FABRIC_NETWORK_STATUS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NETWORK_STATUS_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_STATUS_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NETWORK_TYPE(pub i32); -pub const FABRIC_NETWORK_TYPE_INVALID: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(0i32); -pub const FABRIC_NETWORK_TYPE_LOCAL: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(1i32); -pub const FABRIC_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); -impl ::core::marker::Copy for FABRIC_NETWORK_TYPE {} -impl ::core::clone::Clone for FABRIC_NETWORK_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NETWORK_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NETWORK_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NETWORK_TYPE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NODE_DEACTIVATION_INTENT(pub i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_INVALID: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(0i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_PAUSE: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(1i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(2i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_DATA: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(3i32); -pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_NODE: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(4i32); -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_INTENT {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_INTENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_INTENT { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_INTENT { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_INTENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_INTENT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NODE_DEACTIVATION_STATUS(pub i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(0i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: - FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(2i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(3i32); -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_STATUS {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NODE_DEACTIVATION_TASK_TYPE(pub i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INVALID: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(0i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INFRASTRUCTURE: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_TYPE {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NODE_DEACTIVATION_TASK_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NODE_TRANSITION_TYPE(pub i32); -pub const FABRIC_NODE_TRANSITION_TYPE_INVALID: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(0i32); -pub const FABRIC_NODE_TRANSITION_TYPE_START: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(1i32); -pub const FABRIC_NODE_TRANSITION_TYPE_STOP: FABRIC_NODE_TRANSITION_TYPE = - FABRIC_NODE_TRANSITION_TYPE(2i32); -impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_TYPE {} -impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NODE_TRANSITION_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NODE_TRANSITION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_NODE_UPGRADE_PHASE(pub i32); -pub const FABRIC_NODE_UPGRADE_PHASE_INVALID: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(0i32); -pub const FABRIC_NODE_UPGRADE_PHASE_PRE_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(1i32); -pub const FABRIC_NODE_UPGRADE_PHASE_UPGRADING: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(2i32); -pub const FABRIC_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(3i32); -impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PHASE {} -impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PHASE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_NODE_UPGRADE_PHASE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PHASE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PHASE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_NODE_UPGRADE_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_OPERATION_TYPE(pub i32); -pub const FABRIC_OPERATION_TYPE_INVALID: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(0i32); -pub const FABRIC_OPERATION_TYPE_NORMAL: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(1i32); -pub const FABRIC_OPERATION_TYPE_END_OF_STREAM: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(2i32); -pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(16i32); -pub const FABRIC_OPERATION_TYPE_ATOMIC_GROUP_OPERATION: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(32i32); -pub const FABRIC_OPERATION_TYPE_COMMIT_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(64i32); -pub const FABRIC_OPERATION_TYPE_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(128i32); -pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(240i32); -impl ::core::marker::Copy for FABRIC_OPERATION_TYPE {} -impl ::core::clone::Clone for FABRIC_OPERATION_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_OPERATION_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_OPERATION_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_OPERATION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PACKAGE_SHARING_POLICY_SCOPE(pub i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_ALL: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(1i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CODE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(2i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CONFIG: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(3i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_DATA: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(4i32); -impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY_SCOPE {} -impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PACKAGE_SHARING_POLICY_SCOPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); -pub const FABRIC_PARTITION_KEY_TYPE_INVALID: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(0i32); -pub const FABRIC_PARTITION_KEY_TYPE_NONE: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(1i32); -pub const FABRIC_PARTITION_KEY_TYPE_INT64: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(2i32); -pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(3i32); -impl ::core::marker::Copy for FABRIC_PARTITION_KEY_TYPE {} -impl ::core::clone::Clone for FABRIC_PARTITION_KEY_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PARTITION_KEY_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_KEY_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PARTITION_KEY_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_KEY_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PARTITION_SCHEME(pub i32); -pub const FABRIC_PARTITION_SCHEME_INVALID: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(0i32); -pub const FABRIC_PARTITION_SCHEME_SINGLETON: FABRIC_PARTITION_SCHEME = - FABRIC_PARTITION_SCHEME(1i32); -pub const FABRIC_PARTITION_SCHEME_UNIFORM_INT64_RANGE: FABRIC_PARTITION_SCHEME = - FABRIC_PARTITION_SCHEME(2i32); -pub const FABRIC_PARTITION_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(3i32); -impl ::core::marker::Copy for FABRIC_PARTITION_SCHEME {} -impl ::core::clone::Clone for FABRIC_PARTITION_SCHEME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PARTITION_SCHEME { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SCHEME { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PARTITION_SCHEME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_SCHEME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PARTITION_SELECTOR_TYPE(pub i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(0i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(1i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(2i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(3i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_PARTITION_ID: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(4i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_RANDOM: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(5i32); -impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR_TYPE {} -impl ::core::clone::Clone for FABRIC_PARTITION_SELECTOR_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PARTITION_SELECTOR_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SELECTOR_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PARTITION_SELECTOR_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PLACEMENT_POLICY_TYPE(pub i32); -pub const FABRIC_PLACEMENT_POLICY_INVALID: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(0i32); -pub const FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(1i32); -pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(2i32); -pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(3i32); -pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(4i32); -pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(5i32); -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_TYPE {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PLACEMENT_POLICY_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PROPERTY_BATCH_OPERATION_KIND(pub i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_INVALID: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(0i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(1i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_EXISTS: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(3i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_SEQUENCE: - FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(4i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); -impl ::core::marker::Copy for FABRIC_PROPERTY_BATCH_OPERATION_KIND {} -impl ::core::clone::Clone for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PROPERTY_BATCH_OPERATION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PROPERTY_TYPE_ID(pub i32); -pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); -pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); -pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); -pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); -pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); -pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); -impl ::core::marker::Copy for FABRIC_PROPERTY_TYPE_ID {} -impl ::core::clone::Clone for FABRIC_PROPERTY_TYPE_ID { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PROPERTY_TYPE_ID { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_TYPE_ID { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PROPERTY_TYPE_ID { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PROPERTY_TYPE_ID") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PROTECTION_LEVEL(pub i32); -pub const FABRIC_PROTECTION_LEVEL_NONE: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(0i32); -pub const FABRIC_PROTECTION_LEVEL_SIGN: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(1i32); -pub const FABRIC_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = - FABRIC_PROTECTION_LEVEL(2i32); -impl ::core::marker::Copy for FABRIC_PROTECTION_LEVEL {} -impl ::core::clone::Clone for FABRIC_PROTECTION_LEVEL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PROTECTION_LEVEL { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROTECTION_LEVEL { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PROTECTION_LEVEL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PROTECTION_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PROVISION_APPLICATION_TYPE_KIND(pub i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: FABRIC_PROVISION_APPLICATION_TYPE_KIND = - FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_IMAGE_STORE_PATH: - FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(1i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_EXTERNAL_STORE: - FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); -impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_KIND {} -impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_PROVISION_APPLICATION_TYPE_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_NODE_STATUS(pub i32); -pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(0i32); -pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(1i32); -pub const FABRIC_QUERY_NODE_STATUS_DOWN: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(2i32); -pub const FABRIC_QUERY_NODE_STATUS_ENABLING: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(3i32); -pub const FABRIC_QUERY_NODE_STATUS_DISABLING: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(4i32); -pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(5i32); -pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(6i32); -pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(7i32); -impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS {} -impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_NODE_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_NODE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_NODE_STATUS_FILTER(pub i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DEFAULT: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(0i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_UP: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(1i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DOWN: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(2i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_ENABLING: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(4i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(8i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLED: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(16i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(32i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(64i32); -impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS_FILTER {} -impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_NODE_STATUS_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_NODE_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_REPLICATOR_OPERATION_NAME(pub i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_INVALID: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(0i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_NONE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(1i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CHANGEROLE: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(4i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_UPDATEEPOCH: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CLOSE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(16i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ONDATALOSS: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(64i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_WAITFORCATCHUP: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); -impl ::core::marker::Copy for FABRIC_QUERY_REPLICATOR_OPERATION_NAME {} -impl ::core::clone::Clone for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_REPLICATOR_OPERATION_NAME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_SERVICE_OPERATION_NAME(pub i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_INVALID: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(0i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_NONE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(1i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_OPEN: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(2i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CHANGEROLE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(4i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CLOSE: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(8i32); -pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); -impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_OPERATION_NAME {} -impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_OPERATION_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_SERVICE_OPERATION_NAME { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_OPERATION_NAME { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_OPERATION_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_OPERATION_NAME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_SERVICE_PARTITION_STATUS(pub i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_INVALID: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_NOT_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_IN_QUORUM_LOSS: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_PARTITION_STATUS {} -impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_PARTITION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS(pub i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INVALID: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_READY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DOWN: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DROPPED: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS {} -impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(pub i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DEFAULT: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(0i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_ALL: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_INBUILD: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(1i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_STANDBY: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_READY: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(4i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DOWN: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(8i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DROPPED: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(16i32); -impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER {} -impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUERY_SERVICE_STATUS(pub i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_STATUS {} -impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUERY_SERVICE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUERY_SERVICE_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_QUORUM_LOSS_MODE(pub i32); -pub const FABRIC_QUORUM_LOSS_MODE_INVALID: FABRIC_QUORUM_LOSS_MODE = FABRIC_QUORUM_LOSS_MODE(0i32); -pub const FABRIC_QUORUM_LOSS_MODE_QUORUM_REPLICAS: FABRIC_QUORUM_LOSS_MODE = - FABRIC_QUORUM_LOSS_MODE(1i32); -pub const FABRIC_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = - FABRIC_QUORUM_LOSS_MODE(2i32); -impl ::core::marker::Copy for FABRIC_QUORUM_LOSS_MODE {} -impl ::core::clone::Clone for FABRIC_QUORUM_LOSS_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_QUORUM_LOSS_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUORUM_LOSS_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_QUORUM_LOSS_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_QUORUM_LOSS_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_RECONFIGURATION_PHASE(pub i32); -pub const FABRIC_RECONFIGURATION_PHASE_INVALID: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(0i32); -pub const FABRIC_RECONFIGURATION_PHASE_NONE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(1i32); -pub const FABRIC_RECONFIGURATION_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(2i32); -pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(3i32); -pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(4i32); -pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(5i32); -pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(6i32); -pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(7i32); -impl ::core::marker::Copy for FABRIC_RECONFIGURATION_PHASE {} -impl ::core::clone::Clone for FABRIC_RECONFIGURATION_PHASE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_RECONFIGURATION_PHASE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_PHASE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_PHASE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_RECONFIGURATION_PHASE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_RECONFIGURATION_TYPE(pub i32); -pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(0i32); -pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(1i32); -pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(2i32); -pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(3i32); -pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(4i32); -impl ::core::marker::Copy for FABRIC_RECONFIGURATION_TYPE {} -impl ::core::clone::Clone for FABRIC_RECONFIGURATION_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_RECONFIGURATION_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_RECONFIGURATION_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_IMPACT_KIND(pub i32); -pub const FABRIC_REPAIR_IMPACT_KIND_INVALID: FABRIC_REPAIR_IMPACT_KIND = - FABRIC_REPAIR_IMPACT_KIND(0i32); -pub const FABRIC_REPAIR_IMPACT_KIND_NODE: FABRIC_REPAIR_IMPACT_KIND = - FABRIC_REPAIR_IMPACT_KIND(1i32); -impl ::core::marker::Copy for FABRIC_REPAIR_IMPACT_KIND {} -impl ::core::clone::Clone for FABRIC_REPAIR_IMPACT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_IMPACT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_IMPACT_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_IMPACT_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_NODE_IMPACT_LEVEL(pub i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_INVALID: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(0i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_NONE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(1i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_DATA: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(3i32); -pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_NODE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(4i32); -impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT_LEVEL {} -impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_NODE_IMPACT_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(pub i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); -impl ::core::marker::Copy for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND {} -impl ::core::clone::Clone for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TARGET_KIND(pub i32); -pub const FABRIC_REPAIR_TARGET_KIND_INVALID: FABRIC_REPAIR_TARGET_KIND = - FABRIC_REPAIR_TARGET_KIND(0i32); -pub const FABRIC_REPAIR_TARGET_KIND_NODE: FABRIC_REPAIR_TARGET_KIND = - FABRIC_REPAIR_TARGET_KIND(1i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TARGET_KIND {} -impl ::core::clone::Clone for FABRIC_REPAIR_TARGET_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TARGET_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TARGET_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TARGET_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_FLAGS(pub i32); -pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = FABRIC_REPAIR_TASK_FLAGS(0i32); -pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(1i32); -pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(2i32); -pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(4i32); -pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(7i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_FLAGS {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_NOT_STARTED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(0i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_IN_PROGRESS: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SUCCEEDED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(2i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(pub i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_NONE: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(0i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_PREPARING_HEALTH_CHECK: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(1i32); -pub const FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_HONOR_PERFORM_RESTORING_HEALTH_CHECK: - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS = - FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(2i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_RESULT(pub i32); -pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(0i32); -pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(1i32); -pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(2i32); -pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(4i32); -pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(8i32); -pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(16i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_RESULT {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_RESULT { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_RESULT { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_RESULT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_STATE(pub i32); -pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(0i32); -pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(1i32); -pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(2i32); -pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(4i32); -pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(8i32); -pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(16i32); -pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(32i32); -pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(64i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_STATE_FILTER(pub i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_DEFAULT: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(0i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(1i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_CLAIMED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(2i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(4i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_APPROVED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(8i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(16i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_RESTORING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(32i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(64i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_READY_TO_EXECUTE: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(24i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_ACTIVE: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(63i32); -pub const FABRIC_REPAIR_TASK_STATE_FILTER_ALL: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(127i32); -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_STATE_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPAIR_TASK_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPLICATOR_SETTINGS_FLAGS(pub i32); -pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); -pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); -pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); -pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); -pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); -pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); -pub const FABRIC_REPLICATOR_COPY_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(128i32); -pub const FABRIC_REPLICATOR_COPY_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(256i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_MEMORY_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); -pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); -pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); -pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_INITIAL_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(8192i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_INITIAL_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(65536i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); -pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); -pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); -pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_FLAGS {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPLICATOR_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPLICA_OPEN_MODE(pub i32); -pub const FABRIC_REPLICA_OPEN_MODE_INVALID: FABRIC_REPLICA_OPEN_MODE = - FABRIC_REPLICA_OPEN_MODE(0i32); -pub const FABRIC_REPLICA_OPEN_MODE_NEW: FABRIC_REPLICA_OPEN_MODE = FABRIC_REPLICA_OPEN_MODE(1i32); -pub const FABRIC_REPLICA_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = - FABRIC_REPLICA_OPEN_MODE(2i32); -impl ::core::marker::Copy for FABRIC_REPLICA_OPEN_MODE {} -impl ::core::clone::Clone for FABRIC_REPLICA_OPEN_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPLICA_OPEN_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_OPEN_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPLICA_OPEN_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_OPEN_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPLICA_ROLE(pub i32); -pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); -pub const FABRIC_REPLICA_ROLE_NONE: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(1i32); -pub const FABRIC_REPLICA_ROLE_PRIMARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(2i32); -pub const FABRIC_REPLICA_ROLE_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); -pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); -impl ::core::marker::Copy for FABRIC_REPLICA_ROLE {} -impl ::core::clone::Clone for FABRIC_REPLICA_ROLE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPLICA_ROLE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_ROLE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPLICA_ROLE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_ROLE").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPLICA_SET_QUORUM_MODE(pub i32); -pub const FABRIC_REPLICA_SET_QUORUM_INVALID: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(0i32); -pub const FABRIC_REPLICA_SET_WRITE_QUORUM: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(1i32); -pub const FABRIC_REPLICA_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(2i32); -impl ::core::marker::Copy for FABRIC_REPLICA_SET_QUORUM_MODE {} -impl ::core::clone::Clone for FABRIC_REPLICA_SET_QUORUM_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPLICA_SET_QUORUM_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_SET_QUORUM_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPLICA_SET_QUORUM_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_SET_QUORUM_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPLICA_STATUS(pub i32); -pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); -pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); -pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); -impl ::core::marker::Copy for FABRIC_REPLICA_STATUS {} -impl ::core::clone::Clone for FABRIC_REPLICA_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_REPLICA_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_REPLICA_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(pub i32); -pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_INVALID: - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(0i32); -pub const FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND = - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND(1i32); -impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION_KIND(pub i32); -pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_INVALID: FABRIC_RESTART_NODE_DESCRIPTION_KIND = - FABRIC_RESTART_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_USING_NODE_NAME: - FABRIC_RESTART_NODE_DESCRIPTION_KIND = FABRIC_RESTART_NODE_DESCRIPTION_KIND(1i32); -impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_RESTART_PARTITION_MODE(pub i32); -pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(0i32); -pub const FABRIC_RESTART_PARTITION_MODE_ALL_REPLICAS_OR_INSTANCES: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(1i32); -pub const FABRIC_RESTART_PARTITION_MODE_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(2i32); -impl ::core::marker::Copy for FABRIC_RESTART_PARTITION_MODE {} -impl ::core::clone::Clone for FABRIC_RESTART_PARTITION_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_RESTART_PARTITION_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_PARTITION_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_RESTART_PARTITION_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_RESTART_PARTITION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ROLLING_UPGRADE_MODE(pub i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_INVALID: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(0i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_AUTO: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(1i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_MANUAL: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(2i32); -pub const FABRIC_ROLLING_UPGRADE_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(3i32); -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MODE {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_ROLLING_UPGRADE_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(pub i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_NONE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(0i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_MODE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FORCE_RESTART: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_REPLICA_SET_CHECK_TIMEOUT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FAILURE_ACTION: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(8i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_WAIT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_STABLE: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(32i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_RETRY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_DOMAIN_TIMEOUT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(256i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_POLICY: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_ENABLE_DELTAS: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1024i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_HEALTH_POLICY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SAFETY_CHECK_KIND(pub i32); -pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(0i32); -pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(1i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(2i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(3i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(4i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(5i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(6i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(7i32); -impl ::core::marker::Copy for FABRIC_SAFETY_CHECK_KIND {} -impl ::core::clone::Clone for FABRIC_SAFETY_CHECK_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SAFETY_CHECK_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SAFETY_CHECK_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SCALING_MECHANISM_KIND(pub i32); -pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = - FABRIC_SCALING_MECHANISM_KIND(0i32); -pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); -pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); -impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_KIND {} -impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SCALING_MECHANISM_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SCALING_MECHANISM_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SCALING_TRIGGER_KIND(pub i32); -pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(0i32); -pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_PARTITION_LOAD: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(1i32); -pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_SERVICE_LOAD: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(2i32); -impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_KIND {} -impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SCALING_TRIGGER_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SCALING_TRIGGER_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SECURITY_CREDENTIAL_KIND(pub i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(0i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(1i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(2i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(3i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(4i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(255i32); -impl ::core::marker::Copy for FABRIC_SECURITY_CREDENTIAL_KIND {} -impl ::core::clone::Clone for FABRIC_SECURITY_CREDENTIAL_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SECURITY_CREDENTIAL_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_CREDENTIAL_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIAL_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SECURITY_CREDENTIAL_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_CORRELATION_SCHEME(pub i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(0i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(1i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_ALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(2i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_NONALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(3i32); -impl ::core::marker::Copy for FABRIC_SERVICE_CORRELATION_SCHEME {} -impl ::core::clone::Clone for FABRIC_SERVICE_CORRELATION_SCHEME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_SCHEME { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_CORRELATION_SCHEME { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_SCHEME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_CORRELATION_SCHEME") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_DESCRIPTION_KIND(pub i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_INVALID: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(0i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(1i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(2i32); -impl ::core::marker::Copy for FABRIC_SERVICE_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_SERVICE_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_ENDPOINT_ROLE(pub i32); -pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(0i32); -pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(1i32); -pub const FABRIC_SERVICE_ROLE_STATEFUL_PRIMARY: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(2i32); -pub const FABRIC_SERVICE_ROLE_STATEFUL_SECONDARY: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(3i32); -impl ::core::marker::Copy for FABRIC_SERVICE_ENDPOINT_ROLE {} -impl ::core::clone::Clone for FABRIC_SERVICE_ENDPOINT_ROLE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_ENDPOINT_ROLE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_ENDPOINT_ROLE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_ENDPOINT_ROLE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_ENDPOINT_ROLE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_KIND(pub i32); -pub const FABRIC_SERVICE_KIND_INVALID: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(0i32); -pub const FABRIC_SERVICE_KIND_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); -pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); -impl ::core::marker::Copy for FABRIC_SERVICE_KIND {} -impl ::core::clone::Clone for FABRIC_SERVICE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_KIND").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_LOAD_METRIC_WEIGHT(pub i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_LOW: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(1i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_MEDIUM: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(2i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); -impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_WEIGHT {} -impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_LOAD_METRIC_WEIGHT") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(pub i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NONE: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(0i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NAME_PREFIX: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); -impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS {} -impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(pub i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); -impl ::core::marker::Copy for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE {} -impl ::core::clone::Clone for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_PARTITION_ACCESS_STATUS(pub i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_INVALID: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = - FABRIC_SERVICE_PARTITION_ACCESS_STATUS(0i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_GRANTED: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = - FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_RECONFIGURATION_PENDING: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(2i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NOT_PRIMARY: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(3i32); -pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NO_WRITE_QUORUM: - FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(4i32); -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_ACCESS_STATUS {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PARTITION_ACCESS_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_PARTITION_KIND(pub i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(0i32); -pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(1i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(2i32); -pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(3i32); -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_KIND {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_PARTITION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_REPLICA_KIND(pub i32); -pub const FABRIC_SERVICE_REPLICA_KIND_INVALID: FABRIC_SERVICE_REPLICA_KIND = - FABRIC_SERVICE_REPLICA_KIND(0i32); -pub const FABRIC_SERVICE_REPLICA_KIND_KEY_VALUE_STORE: FABRIC_SERVICE_REPLICA_KIND = - FABRIC_SERVICE_REPLICA_KIND(1i32); -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_KIND {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_REPLICA_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(pub i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_INVALID: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(0i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_DISABLED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_NOT_REGISTERED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(2i32); -pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_REGISTERED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(3i32); -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_SERVICE_TYPE_REGISTRATION_STATUS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_START_NODE_DESCRIPTION_KIND(pub i32); -pub const FABRIC_START_NODE_DESCRIPTION_KIND_INVALID: FABRIC_START_NODE_DESCRIPTION_KIND = - FABRIC_START_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_START_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_START_NODE_DESCRIPTION_KIND = - FABRIC_START_NODE_DESCRIPTION_KIND(1i32); -impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_START_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(pub i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_NONE: FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(0i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_QUORUM_LOSS_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(2i32); -pub const FABRIC_STATEFUL_SERVICE_SETTINGS_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_STATEFUL_SERVICE_TARGET_REPLICA_SET_SIZE: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_STATEFUL_SERVICE_QUORUM_LOSS_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); -pub const FABRIC_STATEFUL_SERVICE_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -pub const FABRIC_STATEFUL_SERVICE_MIN_REPLICA_SET_SIZE: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); -pub const FABRIC_STATEFUL_SERVICE_PLACEMENT_CONSTRAINTS: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); -pub const FABRIC_STATEFUL_SERVICE_POLICY_LIST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); -pub const FABRIC_STATEFUL_SERVICE_CORRELATIONS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(128i32); -pub const FABRIC_STATEFUL_SERVICE_METRICS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(256i32); -pub const FABRIC_STATEFUL_SERVICE_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); -pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_STATELESS_SERVICE_INSTANCE_COUNT: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); -pub const FABRIC_STATELESS_SERVICE_PLACEMENT_CONSTRAINTS: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); -pub const FABRIC_STATELESS_SERVICE_POLICY_LIST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); -pub const FABRIC_STATELESS_SERVICE_CORRELATIONS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -pub const FABRIC_STATELESS_SERVICE_METRICS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); -pub const FABRIC_STATELESS_SERVICE_MOVE_COST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); -pub const FABRIC_STATELESS_SERVICE_SCALING_POLICY: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_STOP_NODE_DESCRIPTION_KIND(pub i32); -pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_INVALID: FABRIC_STOP_NODE_DESCRIPTION_KIND = - FABRIC_STOP_NODE_DESCRIPTION_KIND(0i32); -pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_STOP_NODE_DESCRIPTION_KIND = - FABRIC_STOP_NODE_DESCRIPTION_KIND(1i32); -impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION_KIND {} -impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_STOP_NODE_DESCRIPTION_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_STORE_BACKUP_OPTION(pub i32); -pub const FABRIC_STORE_BACKUP_OPTION_FULL: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(1i32); -pub const FABRIC_STORE_BACKUP_OPTION_INCREMENTAL: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(2i32); -pub const FABRIC_STORE_BACKUP_OPTION_TRUNCATE_LOGS_ONLY: FABRIC_STORE_BACKUP_OPTION = - FABRIC_STORE_BACKUP_OPTION(3i32); -impl ::core::marker::Copy for FABRIC_STORE_BACKUP_OPTION {} -impl ::core::clone::Clone for FABRIC_STORE_BACKUP_OPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_STORE_BACKUP_OPTION { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_OPTION { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_OPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_STORE_BACKUP_OPTION") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_TEST_COMMAND_PROGRESS_STATE(pub i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_INVALID: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(0i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_ROLLING_BACK: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(2i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_COMPLETED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(3i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FAULTED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(4i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); -impl ::core::marker::Copy for FABRIC_TEST_COMMAND_PROGRESS_STATE {} -impl ::core::clone::Clone for FABRIC_TEST_COMMAND_PROGRESS_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_TEST_COMMAND_PROGRESS_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_PROGRESS_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_PROGRESS_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_PROGRESS_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_TEST_COMMAND_STATE_FILTER(pub i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(0i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(1i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_ROLLING_BACK: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(2i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_COMPLETED_SUCCESSFULLY: - FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_FAILED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(16i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(32i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(64i32); -impl ::core::marker::Copy for FABRIC_TEST_COMMAND_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_TEST_COMMAND_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_TEST_COMMAND_STATE_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_STATE_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_STATE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_TEST_COMMAND_TYPE(pub i32); -pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(0i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(1i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(2i32); -pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_RESTART_PARTITION: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(4i32); -pub const FABRIC_TEST_COMMAND_TYPE_START_NODE_TRANSITION: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(8i32); -impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE {} -impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_TEST_COMMAND_TYPE_FILTER(pub i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(0i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(1i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(2i32); -pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_RESTART: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(4i32); -impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE_FILTER {} -impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_TYPE_FILTER { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_TEST_COMMAND_TYPE_FILTER") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_TRANSACTION_ISOLATION_LEVEL(pub i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_DEFAULT: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(0i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); -impl ::core::marker::Copy for FABRIC_TRANSACTION_ISOLATION_LEVEL {} -impl ::core::clone::Clone for FABRIC_TRANSACTION_ISOLATION_LEVEL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_TRANSACTION_ISOLATION_LEVEL { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_TRANSACTION_ISOLATION_LEVEL { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_TRANSACTION_ISOLATION_LEVEL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_TRANSACTION_ISOLATION_LEVEL") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_UPGRADE_DOMAIN_STATE(pub i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(0i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(1i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(2i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(3i32); -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATE {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_DOMAIN_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_UPGRADE_FAILURE_REASON(pub i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(0i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(1i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(2i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(3i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_OVERALL_UPGRADE_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(4i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_PROCESSING_FAILURE: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(5i32); -impl ::core::marker::Copy for FABRIC_UPGRADE_FAILURE_REASON {} -impl ::core::clone::Clone for FABRIC_UPGRADE_FAILURE_REASON { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_UPGRADE_FAILURE_REASON { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_FAILURE_REASON { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_FAILURE_REASON { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_FAILURE_REASON") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_UPGRADE_KIND(pub i32); -pub const FABRIC_UPGRADE_KIND_INVALID: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(0i32); -pub const FABRIC_UPGRADE_KIND_ROLLING: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(1i32); -impl ::core::marker::Copy for FABRIC_UPGRADE_KIND {} -impl ::core::clone::Clone for FABRIC_UPGRADE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_UPGRADE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_KIND").field(&self.0).finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_UPGRADE_SAFETY_CHECK_KIND(pub i32); -pub const FABRIC_UPGRADE_SAFETY_CHECK_KIND_INVALID: FABRIC_UPGRADE_SAFETY_CHECK_KIND = - FABRIC_UPGRADE_SAFETY_CHECK_KIND(0i32); -pub const FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(1i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(2i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(3i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(4i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(5i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(7i32); -pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RESOURCE_AVAILABILITY: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); -impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK_KIND {} -impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_SAFETY_CHECK_KIND") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_UPGRADE_STATE(pub i32); -pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(1i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(2i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(3i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(4i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(5i32); -pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(7i32); -impl ::core::marker::Copy for FABRIC_UPGRADE_STATE {} -impl ::core::clone::Clone for FABRIC_UPGRADE_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_UPGRADE_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_STATE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_UPGRADE_STATE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_X509_FIND_TYPE(pub i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(0i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(1i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(12i32); -impl ::core::marker::Copy for FABRIC_X509_FIND_TYPE {} -impl ::core::clone::Clone for FABRIC_X509_FIND_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_X509_FIND_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_FIND_TYPE { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_X509_FIND_TYPE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_X509_FIND_TYPE") - .field(&self.0) - .finish() - } -} -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_X509_STORE_LOCATION(pub i32); -pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(0i32); -pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(1i32); -pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(2i32); -impl ::core::marker::Copy for FABRIC_X509_STORE_LOCATION {} -impl ::core::clone::Clone for FABRIC_X509_STORE_LOCATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_X509_STORE_LOCATION { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_STORE_LOCATION { - type Abi = Self; -} -impl ::core::fmt::Debug for FABRIC_X509_STORE_LOCATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_X509_STORE_LOCATION") - .field(&self.0) - .finish() - } -} -#[repr(C)] -pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - pub Authority: ::windows::core::PCWSTR, - pub TenantId: ::windows::core::PCWSTR, - pub ClusterApplication: ::windows::core::PCWSTR, - pub ClientApplication: ::windows::core::PCWSTR, - pub ClientRedirect: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} -impl ::core::clone::Clone for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA") - .field("Authority", &self.Authority) - .field("TenantId", &self.TenantId) - .field("ClusterApplication", &self.ClusterApplication) - .field("ClientApplication", &self.ClientApplication) - .field("ClientRedirect", &self.ClientRedirect) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} -impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - pub LoginEndpoint: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} -impl ::core::clone::Clone for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1") - .field("LoginEndpoint", &self.LoginEndpoint) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} -impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyApplications: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATIONS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyApplications", - &self.MaxPercentUnhealthyApplications, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - pub MaximumNodes: u32, - pub MinimumNodes: u32, - pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_CAPACITY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_CAPACITY_DESCRIPTION") - .field("MaximumNodes", &self.MaximumNodes) - .field("MinimumNodes", &self.MinimumNodes) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub ApplicationParameters: *const FABRIC_APPLICATION_PARAMETER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field("ApplicationParameters", &self.ApplicationParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_DESCRIPTION_EX1 { - pub ApplicationCapacity: *const FABRIC_APPLICATION_CAPACITY_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_DESCRIPTION_EX1") - .field("ApplicationCapacity", &self.ApplicationCapacity) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH { - pub ApplicationName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub DeployedApplicationHealthStates: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST, - pub ServiceHealthStates: *const FABRIC_SERVICE_HEALTH_STATE_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH") - .field("ApplicationName", &self.ApplicationName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field( - "DeployedApplicationHealthStates", - &self.DeployedApplicationHealthStates, - ) - .field("ServiceHealthStates", &self.ServiceHealthStates) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("ApplicationName", &self.ApplicationName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_EX2 { - pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_EX2") - .field("HealthStatistics", &self.HealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_POLICY { - pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, - pub MaxPercentUnhealthyDeployedApplications: u8, - pub DefaultServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, - pub ServiceTypeHealthPolicyMap: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY") - .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) - .field( - "MaxPercentUnhealthyDeployedApplications", - &self.MaxPercentUnhealthyDeployedApplications, - ) - .field( - "DefaultServiceTypeHealthPolicy", - &self.DefaultServiceTypeHealthPolicy, - ) - .field( - "ServiceTypeHealthPolicyMap", - &self.ServiceTypeHealthPolicyMap, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP { - pub Count: u32, - pub Items: *mut FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - pub ApplicationName: *mut u16, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM") - .field("ApplicationName", &self.ApplicationName) - .field("HealthPolicy", &self.HealthPolicy) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub ServicesFilter: *const FABRIC_SERVICE_HEALTH_STATES_FILTER, - pub DeployedApplicationsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("ServicesFilter", &self.ServicesFilter) - .field( - "DeployedApplicationsFilter", - &self.DeployedApplicationsFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - pub HealthStatisticsFilter: *const FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") - .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_REPORT { - pub ApplicationName: *mut u16, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_REPORT") - .field("ApplicationName", &self.ApplicationName) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE { - pub ApplicationName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE") - .field("ApplicationName", &self.ApplicationName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - pub ApplicationName: *mut u16, - pub HealthState: FABRIC_HEALTH_STATE, - pub ServiceHealthStateChunks: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST, - pub DeployedApplicationHealthStateChunks: - *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK") - .field("ApplicationName", &self.ApplicationName) - .field("HealthState", &self.HealthState) - .field("ServiceHealthStateChunks", &self.ServiceHealthStateChunks) - .field( - "DeployedApplicationHealthStateChunks", - &self.DeployedApplicationHealthStateChunks, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - pub ApplicationTypeName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub ApplicationNameFilter: *mut u16, - pub ServiceFilters: *const FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST, - pub DeployedApplicationFilters: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("ServiceFilters", &self.ServiceFilters) - .field( - "DeployedApplicationFilters", - &self.DeployedApplicationFilters, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1") - .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER") - .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} -impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_LOAD_INFORMATION { - pub Name: ::windows::core::PCWSTR, - pub MinimumNodes: u32, - pub MaximumNodes: u32, - pub NodeCount: u32, - pub ApplicationLoadMetricInformation: *const FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_INFORMATION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_LOAD_INFORMATION") - .field("Name", &self.Name) - .field("MinimumNodes", &self.MinimumNodes) - .field("MaximumNodes", &self.MaximumNodes) - .field("NodeCount", &self.NodeCount) - .field( - "ApplicationLoadMetricInformation", - &self.ApplicationLoadMetricInformation, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION {} -impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub ApplicationName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, - pub ReservationCapacity: i64, - pub ApplicationCapacity: i64, - pub ApplicationLoad: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_LOAD_METRIC_INFORMATION") - .field("Name", &self.Name) - .field("ReservationCapacity", &self.ReservationCapacity) - .field("ApplicationCapacity", &self.ApplicationCapacity) - .field("ApplicationLoad", &self.ApplicationLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION {} -impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - pub Count: u32, - pub LoadMetrics: *mut FABRIC_APPLICATION_LOAD_METRIC_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST") - .field("Count", &self.Count) - .field("LoadMetrics", &self.LoadMetrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_METRIC_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub NodeReservationCapacity: u32, - pub MaximumNodeCapacity: u32, - pub TotalApplicationCapacity: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_METRIC_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_METRIC_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_METRIC_DESCRIPTION") - .field("Name", &self.Name) - .field("NodeReservationCapacity", &self.NodeReservationCapacity) - .field("MaximumNodeCapacity", &self.MaximumNodeCapacity) - .field("TotalApplicationCapacity", &self.TotalApplicationCapacity) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_METRIC_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_METRIC_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_METRIC_LIST { - pub Count: u32, - pub Capacities: *mut FABRIC_APPLICATION_METRIC_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_METRIC_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_METRIC_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_METRIC_LIST") - .field("Count", &self.Count) - .field("Capacities", &self.Capacities) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_METRIC_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_METRIC_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - pub ServiceName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_NAME_QUERY_RESULT { - pub ApplicationName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_NAME_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_APPLICATION_NAME_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_NAME_QUERY_RESULT") - .field("ApplicationName", &self.ApplicationName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NAME_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - pub NetworkName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM") - .field("NetworkName", &self.NetworkName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_PARAMETER { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_PARAMETER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_PARAMETER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_PARAMETER") - .field("Name", &self.Name) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PARAMETER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER {} -impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_PARAMETER_LIST { - pub Count: u32, - pub Items: *mut FABRIC_APPLICATION_PARAMETER, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_PARAMETER_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_PARAMETER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_PARAMETER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PARAMETER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - pub Users: *const FABRIC_SECURITY_USER_DESCRIPTION_LIST, - pub Groups: *const FABRIC_SECURITY_GROUP_DESCRIPTION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION") - .field("Users", &self.Users) - .field("Groups", &self.Groups) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION { - pub ApplicationNameFilter: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION") - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, - pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2") - .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) - .field( - "ExcludeApplicationParameters", - &self.ExcludeApplicationParameters, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - pub ApplicationDefinitionKindFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3") - .field( - "ApplicationDefinitionKindFilter", - &self.ApplicationDefinitionKindFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - pub MaxResults: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4") - .field("MaxResults", &self.MaxResults) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM { - pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub Status: FABRIC_APPLICATION_STATUS, - pub HealthState: FABRIC_HEALTH_STATE, - pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM") - .field("ApplicationName", &self.ApplicationName) - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field("Status", &self.Status) - .field("HealthState", &self.HealthState) - .field("ApplicationParameters", &self.ApplicationParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - pub UpgradeTypeVersion: ::windows::core::PCWSTR, - pub UpgradeParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1") - .field("UpgradeTypeVersion", &self.UpgradeTypeVersion) - .field("UpgradeParameters", &self.UpgradeParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - pub ApplicationDefinitionKind: FABRIC_APPLICATION_DEFINITION_KIND, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2") - .field("ApplicationDefinitionKind", &self.ApplicationDefinitionKind) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyApplications: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyApplications", - &self.MaxPercentUnhealthyApplications, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub MaxPercentUnhealthyApplications: u8, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field( - "MaxPercentUnhealthyApplications", - &self.MaxPercentUnhealthyApplications, - ) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION") - .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub DefaultParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field("DefaultParameters", &self.DefaultParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - pub Status: FABRIC_APPLICATION_TYPE_STATUS, - pub StatusDetails: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1") - .field("Status", &self.Status) - .field("StatusDetails", &self.StatusDetails) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - pub ApplicationTypeDefinitionKind: FABRIC_APPLICATION_TYPE_DEFINITION_KIND, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2") - .field( - "ApplicationTypeDefinitionKind", - &self.ApplicationTypeDefinitionKind, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION { - pub Flags: u32, - pub ApplicationName: *mut u16, - pub RemoveApplicationCapacity: ::windows::Win32::Foundation::BOOLEAN, - pub MaximumNodes: u32, - pub MinimumNodes: u32, - pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPDATE_DESCRIPTION") - .field("Flags", &self.Flags) - .field("ApplicationName", &self.ApplicationName) - .field("RemoveApplicationCapacity", &self.RemoveApplicationCapacity) - .field("MaximumNodes", &self.MaximumNodes) - .field("MinimumNodes", &self.MinimumNodes) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub TargetApplicationTypeVersion: ::windows::core::PCWSTR, - pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, - pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, - pub UpgradePolicyDescription: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPGRADE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field( - "TargetApplicationTypeVersion", - &self.TargetApplicationTypeVersion, - ) - .field("ApplicationParameters", &self.ApplicationParameters) - .field("UpgradeKind", &self.UpgradeKind) - .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS { - pub UpgradeDescription: *const FABRIC_APPLICATION_UPGRADE_DESCRIPTION, - pub UpgradeState: FABRIC_APPLICATION_UPGRADE_STATE, - pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub NextUpgradeDomain: ::windows::core::PCWSTR, - pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, - pub UpgradeDurationInSeconds: u32, - pub CurrentUpgradeDomainDurationInSeconds: u32, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS") - .field("UpgradeDescription", &self.UpgradeDescription) - .field("UpgradeState", &self.UpgradeState) - .field("UpgradeMode", &self.UpgradeMode) - .field("NextUpgradeDomain", &self.NextUpgradeDomain) - .field("UpgradeDomains", &self.UpgradeDomains) - .field("UpgradeDurationInSeconds", &self.UpgradeDurationInSeconds) - .field( - "CurrentUpgradeDomainDurationInSeconds", - &self.CurrentUpgradeDomainDurationInSeconds, - ) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field( - "CurrentUpgradeDomainProgress", - &self.CurrentUpgradeDomainProgress, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS {} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, - pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, - pub FailureReason: FABRIC_UPGRADE_FAILURE_REASON, - pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1") - .field("StartTimestampUtc", &self.StartTimestampUtc) - .field("FailureTimestampUtc", &self.FailureTimestampUtc) - .field("FailureReason", &self.FailureReason) - .field( - "UpgradeDomainProgressAtFailure", - &self.UpgradeDomainProgressAtFailure, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - pub UpgradeStatusDetails: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2") - .field("UpgradeStatusDetails", &self.UpgradeStatusDetails) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, - pub UpdateFlags: u32, - pub UpgradePolicyDescription: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("UpgradeKind", &self.UpgradeKind) - .field("UpdateFlags", &self.UpdateFlags) - .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub Force: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("Force", &self.Force) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_DESCRIPTION { - pub ChaosParameters: *const FABRIC_CHAOS_PARAMETERS, - pub Status: FABRIC_CHAOS_STATUS, - pub ScheduleStatus: FABRIC_CHAOS_SCHEDULE_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CHAOS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_DESCRIPTION") - .field("ChaosParameters", &self.ChaosParameters) - .field("Status", &self.Status) - .field("ScheduleStatus", &self.ScheduleStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CHAOS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_EVENT { - pub Kind: FABRIC_CHAOS_EVENT_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_EVENT {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_EVENT") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT {} -impl ::core::default::Default for FABRIC_CHAOS_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_EVENTS_SEGMENT { - pub ContinuationToken: ::windows::core::PCWSTR, - pub History: *const FABRIC_CHAOS_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT") - .field("ContinuationToken", &self.ContinuationToken) - .field("History", &self.History) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT {} -impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - pub Filter: *const FABRIC_CHAOS_EVENTS_SEGMENT_FILTER, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION") - .field("Filter", &self.Filter) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - pub StartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub EndTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_FILTER") - .field("StartTimeUtc", &self.StartTimeUtc) - .field("EndTimeUtc", &self.EndTimeUtc) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} -impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_EVENT_LIST { - pub Count: u32, - pub Items: *mut FABRIC_CHAOS_EVENT, -} -impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_LIST {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_EVENT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT_LIST {} -impl ::core::default::Default for FABRIC_CHAOS_EVENT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_PARAMETERS { - pub MaxClusterStabilizationTimeoutInSeconds: u32, - pub MaxConcurrentFaults: u32, - pub EnableMoveReplicaFaults: ::windows::Win32::Foundation::BOOLEAN, - pub TimeToRunInSeconds: u64, - pub WaitTimeBetweenIterationsInSeconds: u32, - pub WaitTimeBetweenFaultsInSeconds: u32, - pub Context: *const FABRIC_EVENT_CONTEXT_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS {} -impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_PARAMETERS") - .field( - "MaxClusterStabilizationTimeoutInSeconds", - &self.MaxClusterStabilizationTimeoutInSeconds, - ) - .field("MaxConcurrentFaults", &self.MaxConcurrentFaults) - .field("EnableMoveReplicaFaults", &self.EnableMoveReplicaFaults) - .field("TimeToRunInSeconds", &self.TimeToRunInSeconds) - .field( - "WaitTimeBetweenIterationsInSeconds", - &self.WaitTimeBetweenIterationsInSeconds, - ) - .field( - "WaitTimeBetweenFaultsInSeconds", - &self.WaitTimeBetweenFaultsInSeconds, - ) - .field("Context", &self.Context) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS {} -impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_PARAMETERS_EX1 { - pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS_EX1 {} -impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_PARAMETERS_EX1") - .field("ClusterHealthPolicy", &self.ClusterHealthPolicy) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX1 {} -impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_PARAMETERS_EX2 { - pub ChaosTargetFilter: *const FABRIC_CHAOS_TARGET_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS_EX2 {} -impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_PARAMETERS_EX2") - .field("ChaosTargetFilter", &self.ChaosTargetFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX2 {} -impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_REPORT { - pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, - pub Status: FABRIC_CHAOS_STATUS, - pub ContinuationToken: ::windows::core::PCWSTR, - pub History: *const FABRIC_CHAOS_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_REPORT {} -impl ::core::clone::Clone for FABRIC_CHAOS_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_REPORT") - .field("ChaosParameters", &self.ChaosParameters) - .field("Status", &self.Status) - .field("ContinuationToken", &self.ContinuationToken) - .field("History", &self.History) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT {} -impl ::core::default::Default for FABRIC_CHAOS_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_REPORT_FILTER { - pub StartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub EndTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_REPORT_FILTER {} -impl ::core::clone::Clone for FABRIC_CHAOS_REPORT_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_REPORT_FILTER") - .field("StartTimeUtc", &self.StartTimeUtc) - .field("EndTimeUtc", &self.EndTimeUtc) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_REPORT_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT_FILTER {} -impl ::core::default::Default for FABRIC_CHAOS_REPORT_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE { - pub StartDate: ::windows::Win32::Foundation::FILETIME, - pub ExpiryDate: ::windows::Win32::Foundation::FILETIME, - pub ChaosParametersMap: *const FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP, - pub Jobs: *const FABRIC_CHAOS_SCHEDULE_JOB_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE") - .field("StartDate", &self.StartDate) - .field("ExpiryDate", &self.ExpiryDate) - .field("ChaosParametersMap", &self.ChaosParametersMap) - .field("Jobs", &self.Jobs) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - pub Count: u32, - pub Items: *mut FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - pub Name: ::windows::core::PCWSTR, - pub Parameters: *const FABRIC_CHAOS_PARAMETERS, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM") - .field("Name", &self.Name) - .field("Parameters", &self.Parameters) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - pub Version: u32, - pub Schedule: *const FABRIC_CHAOS_SCHEDULE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_DESCRIPTION") - .field("Version", &self.Version) - .field("Schedule", &self.Schedule) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_JOB { - pub ChaosParameters: ::windows::core::PCWSTR, - pub Days: *const FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS, - pub Times: *const FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB") - .field("ChaosParameters", &self.ChaosParameters) - .field("Days", &self.Days) - .field("Times", &self.Times) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - pub Sunday: ::windows::Win32::Foundation::BOOLEAN, - pub Monday: ::windows::Win32::Foundation::BOOLEAN, - pub Tuesday: ::windows::Win32::Foundation::BOOLEAN, - pub Wednesday: ::windows::Win32::Foundation::BOOLEAN, - pub Thursday: ::windows::Win32::Foundation::BOOLEAN, - pub Friday: ::windows::Win32::Foundation::BOOLEAN, - pub Saturday: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS") - .field("Sunday", &self.Sunday) - .field("Monday", &self.Monday) - .field("Tuesday", &self.Tuesday) - .field("Wednesday", &self.Wednesday) - .field("Thursday", &self.Thursday) - .field("Friday", &self.Friday) - .field("Saturday", &self.Saturday) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_JOB_LIST { - pub Count: u32, - pub Items: *mut FABRIC_CHAOS_SCHEDULE_JOB, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - pub StartTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, - pub EndTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC") - .field("StartTime", &self.StartTime) - .field("EndTime", &self.EndTime) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - pub Count: u32, - pub Items: *mut FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SCHEDULE_TIME_UTC { - pub Hour: u32, - pub Minute: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_TIME_UTC {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SCHEDULE_TIME_UTC") - .field("Hour", &self.Hour) - .field("Minute", &self.Minute) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_UTC {} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - pub ChaosScheduleDescription: *const FABRIC_CHAOS_SCHEDULE_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION") - .field("ChaosScheduleDescription", &self.ChaosScheduleDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHAOS_TARGET_FILTER { - pub NodeTypeInclusionList: *const FABRIC_STRING_LIST, - pub ApplicationInclusionList: *const FABRIC_STRING_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHAOS_TARGET_FILTER {} -impl ::core::clone::Clone for FABRIC_CHAOS_TARGET_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHAOS_TARGET_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHAOS_TARGET_FILTER") - .field("NodeTypeInclusionList", &self.NodeTypeInclusionList) - .field("ApplicationInclusionList", &self.ApplicationInclusionList) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_TARGET_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHAOS_TARGET_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHAOS_TARGET_FILTER {} -impl ::core::default::Default for FABRIC_CHAOS_TARGET_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub ExistenceCheck: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHECK_EXISTS_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("ExistenceCheck", &self.ExistenceCheck) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub SequenceNumber: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("SequenceNumber", &self.SequenceNumber) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, - pub PropertyValue: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CHECK_VALUE_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CHECK_VALUE_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("PropertyTypeId", &self.PropertyTypeId) - .field("PropertyValue", &self.PropertyValue) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLAIMS_CREDENTIALS { - pub ServerCommonNameCount: u32, - pub ServerCommonNames: *const ::windows::core::PWSTR, - pub IssuerThumbprintCount: u32, - pub IssuerThumbprints: *const ::windows::core::PWSTR, - pub LocalClaims: ::windows::core::PCWSTR, - pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLAIMS_CREDENTIALS {} -impl ::core::clone::Clone for FABRIC_CLAIMS_CREDENTIALS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLAIMS_CREDENTIALS") - .field("ServerCommonNameCount", &self.ServerCommonNameCount) - .field("ServerCommonNames", &self.ServerCommonNames) - .field("IssuerThumbprintCount", &self.IssuerThumbprintCount) - .field("IssuerThumbprints", &self.IssuerThumbprints) - .field("LocalClaims", &self.LocalClaims) - .field("ProtectionLevel", &self.ProtectionLevel) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_CREDENTIALS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS {} -impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLAIMS_CREDENTIALS_EX1 { - pub ServerThumbprintCount: u32, - pub ServerThumbprints: *const ::windows::core::PWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLAIMS_CREDENTIALS_EX1 {} -impl ::core::clone::Clone for FABRIC_CLAIMS_CREDENTIALS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLAIMS_CREDENTIALS_EX1") - .field("ServerThumbprintCount", &self.ServerThumbprintCount) - .field("ServerThumbprints", &self.ServerThumbprints) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_CREDENTIALS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS_EX1 {} -impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA { - pub Kind: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA {} -impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLAIMS_RETRIEVAL_METADATA") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_RETRIEVAL_METADATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLAIMS_RETRIEVAL_METADATA { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLAIMS_RETRIEVAL_METADATA {} -impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLIENT_SETTINGS { - pub PartitionLocationCacheLimit: u32, - pub ServiceChangePollIntervalInSeconds: u32, - pub ConnectionInitializationTimeoutInSeconds: u32, - pub KeepAliveIntervalInSeconds: u32, - pub HealthOperationTimeoutInSeconds: u32, - pub HealthReportSendIntervalInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS {} -impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLIENT_SETTINGS") - .field( - "PartitionLocationCacheLimit", - &self.PartitionLocationCacheLimit, - ) - .field( - "ServiceChangePollIntervalInSeconds", - &self.ServiceChangePollIntervalInSeconds, - ) - .field( - "ConnectionInitializationTimeoutInSeconds", - &self.ConnectionInitializationTimeoutInSeconds, - ) - .field( - "KeepAliveIntervalInSeconds", - &self.KeepAliveIntervalInSeconds, - ) - .field( - "HealthOperationTimeoutInSeconds", - &self.HealthOperationTimeoutInSeconds, - ) - .field( - "HealthReportSendIntervalInSeconds", - &self.HealthReportSendIntervalInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS {} -impl ::core::default::Default for FABRIC_CLIENT_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLIENT_SETTINGS_EX1 { - pub ClientFriendlyName: ::windows::core::PCWSTR, - pub PartitionLocationCacheBucketCount: u32, - pub HealthReportRetrySendIntervalInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLIENT_SETTINGS_EX1") - .field("ClientFriendlyName", &self.ClientFriendlyName) - .field( - "PartitionLocationCacheBucketCount", - &self.PartitionLocationCacheBucketCount, - ) - .field( - "HealthReportRetrySendIntervalInSeconds", - &self.HealthReportRetrySendIntervalInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLIENT_SETTINGS_EX2 { - pub NotificationGatewayConnectionTimeoutInSeconds: u32, - pub NotificationCacheUpdateTimeoutInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX2 {} -impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLIENT_SETTINGS_EX2") - .field( - "NotificationGatewayConnectionTimeoutInSeconds", - &self.NotificationGatewayConnectionTimeoutInSeconds, - ) - .field( - "NotificationCacheUpdateTimeoutInSeconds", - &self.NotificationCacheUpdateTimeoutInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX2 {} -impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLIENT_SETTINGS_EX3 { - pub AuthTokenBufferSize: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX3 {} -impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLIENT_SETTINGS_EX3") - .field("AuthTokenBufferSize", &self.AuthTokenBufferSize) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX3 {} -impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLIENT_SETTINGS_EX4 { - pub ConnectionIdleTimeoutInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLIENT_SETTINGS_EX4 {} -impl ::core::clone::Clone for FABRIC_CLIENT_SETTINGS_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLIENT_SETTINGS_EX4") - .field( - "ConnectionIdleTimeoutInSeconds", - &self.ConnectionIdleTimeoutInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX4 {} -impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH { - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH") - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_CHUNK { - pub HealthState: FABRIC_HEALTH_STATE, - pub NodeHealthStateChunks: *const FABRIC_NODE_HEALTH_STATE_CHUNK_LIST, - pub ApplicationHealthStateChunks: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_CHUNK {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_CHUNK") - .field("HealthState", &self.HealthState) - .field("NodeHealthStateChunks", &self.NodeHealthStateChunks) - .field( - "ApplicationHealthStateChunks", - &self.ApplicationHealthStateChunks, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, - pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, - pub ApplicationFilters: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST, - pub NodeFilters: *const FABRIC_NODE_HEALTH_STATE_FILTER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION") - .field("ClusterHealthPolicy", &self.ClusterHealthPolicy) - .field( - "ApplicationHealthPolicyMap", - &self.ApplicationHealthPolicyMap, - ) - .field("ApplicationFilters", &self.ApplicationFilters) - .field("NodeFilters", &self.NodeFilters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_EX1 { - pub NodeHealthStates: *const FABRIC_NODE_HEALTH_STATE_LIST, - pub ApplicationHealthStates: *const FABRIC_APPLICATION_HEALTH_STATE_LIST, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_EX1") - .field("NodeHealthStates", &self.NodeHealthStates) - .field("ApplicationHealthStates", &self.ApplicationHealthStates) - .field("HealthEvents", &self.HealthEvents) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_EX2 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_EX2") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_EX3 { - pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX3 {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_EX3") - .field("HealthStatistics", &self.HealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX3 {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_POLICY { - pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, - pub MaxPercentUnhealthyNodes: u8, - pub MaxPercentUnhealthyApplications: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_POLICY {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_POLICY") - .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) - .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) - .field( - "MaxPercentUnhealthyApplications", - &self.MaxPercentUnhealthyApplications, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - pub ApplicationTypeHealthPolicyMap: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_POLICY_EX1 {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_POLICY_EX1") - .field( - "ApplicationTypeHealthPolicyMap", - &self.ApplicationTypeHealthPolicyMap, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, - pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub NodesFilter: *const FABRIC_NODE_HEALTH_STATES_FILTER, - pub ApplicationsFilter: *const FABRIC_APPLICATION_HEALTH_STATES_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION") - .field("HealthPolicy", &self.HealthPolicy) - .field( - "ApplicationHealthPolicyMap", - &self.ApplicationHealthPolicyMap, - ) - .field("EventsFilter", &self.EventsFilter) - .field("NodesFilter", &self.NodesFilter) - .field("ApplicationsFilter", &self.ApplicationsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - pub HealthStatisticsFilter: *const FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1") - .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_REPORT { - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_REPORT") - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub IncludeSystemApplicationHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} -impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER") - .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) - .field( - "IncludeSystemApplicationHealthStatistics", - &self.IncludeSystemApplicationHealthStatistics, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} -impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_LOAD_INFORMATION { - pub LastBalancingStartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub LastBalancingEndTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub LoadMetricInformation: *const FABRIC_LOAD_METRIC_INFORMATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_LOAD_INFORMATION {} -impl ::core::clone::Clone for FABRIC_CLUSTER_LOAD_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_LOAD_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_LOAD_INFORMATION") - .field("LastBalancingStartTimeUtc", &self.LastBalancingStartTimeUtc) - .field("LastBalancingEndTimeUtc", &self.LastBalancingEndTimeUtc) - .field("LoadMetricInformation", &self.LoadMetricInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_LOAD_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_LOAD_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_LOAD_INFORMATION {} -impl ::core::default::Default for FABRIC_CLUSTER_LOAD_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - pub ClusterManifestVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION") - .field("ClusterManifestVersion", &self.ClusterManifestVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - pub MaxPercentDeltaUnhealthyNodes: u8, - pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY {} -impl ::core::clone::Clone for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY") - .field( - "MaxPercentDeltaUnhealthyNodes", - &self.MaxPercentDeltaUnhealthyNodes, - ) - .field( - "MaxPercentUpgradeDomainDeltaUnhealthyNodes", - &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY {} -impl ::core::default::Default for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub IsShared: ::windows::Win32::Foundation::BOOLEAN, - pub SetupEntryPoint: *mut FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION, - pub EntryPoint: *mut FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION") - .field("Name", &self.Name) - .field("Version", &self.Version) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("IsShared", &self.IsShared) - .field("SetupEntryPoint", &self.SetupEntryPoint) - .field("EntryPoint", &self.EntryPoint) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_CODE_PACKAGE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT { - pub EntryPointLocation: ::windows::core::PCWSTR, - pub ProcessId: i64, - pub RunAsUserName: ::windows::core::PCWSTR, - pub EntryPointStatus: FABRIC_ENTRY_POINT_STATUS, - pub NextActivationUtc: ::windows::Win32::Foundation::FILETIME, - pub Statistics: *const FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT") - .field("EntryPointLocation", &self.EntryPointLocation) - .field("ProcessId", &self.ProcessId) - .field("RunAsUserName", &self.RunAsUserName) - .field("EntryPointStatus", &self.EntryPointStatus) - .field("NextActivationUtc", &self.NextActivationUtc) - .field("Statistics", &self.Statistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - pub Kind: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - pub CodePackageInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1") - .field("CodePackageInstanceId", &self.CodePackageInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - pub LastExitCode: u32, - pub LastActivationUtc: ::windows::Win32::Foundation::FILETIME, - pub LastExitUtc: ::windows::Win32::Foundation::FILETIME, - pub LastSuccessfulActivationUtc: ::windows::Win32::Foundation::FILETIME, - pub LastSuccessfulExitUtc: ::windows::Win32::Foundation::FILETIME, - pub ActivationCount: u32, - pub ActivationFailureCount: u32, - pub ContinuousActivationFailureCount: u32, - pub ExitCount: u32, - pub ExitFailureCount: u32, - pub ContinuousExitFailureCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS") - .field("LastExitCode", &self.LastExitCode) - .field("LastActivationUtc", &self.LastActivationUtc) - .field("LastExitUtc", &self.LastExitUtc) - .field( - "LastSuccessfulActivationUtc", - &self.LastSuccessfulActivationUtc, - ) - .field("LastSuccessfulExitUtc", &self.LastSuccessfulExitUtc) - .field("ActivationCount", &self.ActivationCount) - .field("ActivationFailureCount", &self.ActivationFailureCount) - .field( - "ContinuousActivationFailureCount", - &self.ContinuousActivationFailureCount, - ) - .field("ExitCount", &self.ExitCount) - .field("ExitFailureCount", &self.ExitFailureCount) - .field( - "ContinuousExitFailureCount", - &self.ContinuousExitFailureCount, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - pub CodePackageName: ::windows::core::PCWSTR, - pub IsSetupEntryPoint: ::windows::Win32::Foundation::BOOL, - pub IsContainerHost: ::windows::Win32::Foundation::BOOL, - pub EventType: FABRIC_CODE_PACKAGE_EVENT_TYPE, - pub TimeStampInTicks: i64, - pub SequenceNumber: i64, - pub Properties: *mut FABRIC_STRING_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION") - .field("CodePackageName", &self.CodePackageName) - .field("IsSetupEntryPoint", &self.IsSetupEntryPoint) - .field("IsContainerHost", &self.IsContainerHost) - .field("EventType", &self.EventType) - .field("TimeStampInTicks", &self.TimeStampInTicks) - .field("SequenceNumber", &self.SequenceNumber) - .field("Properties", &self.Properties) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION") - .field("Name", &self.Name) - .field("Version", &self.Version) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_PARAMETER { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, - pub MustOverride: ::windows::Win32::Foundation::BOOLEAN, - pub IsEncrypted: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_PARAMETER") - .field("Name", &self.Name) - .field("Value", &self.Value) - .field("MustOverride", &self.MustOverride) - .field("IsEncrypted", &self.IsEncrypted) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER {} -impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_PARAMETER_EX1 { - pub Type: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_EX1 {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_PARAMETER_EX1") - .field("Type", &self.Type) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_EX1 {} -impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_PARAMETER_LIST { - pub Count: u32, - pub Items: *const FABRIC_CONFIGURATION_PARAMETER, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_LIST {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_PARAMETER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_LIST {} -impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_SECTION { - pub Name: ::windows::core::PCWSTR, - pub Parameters: *const FABRIC_CONFIGURATION_PARAMETER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_SECTION") - .field("Name", &self.Name) - .field("Parameters", &self.Parameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SECTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION {} -impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_SECTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_CONFIGURATION_SECTION, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION_LIST {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_SECTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SECTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION_LIST {} -impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONFIGURATION_SETTINGS { - pub Sections: *const FABRIC_CONFIGURATION_SECTION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONFIGURATION_SETTINGS {} -impl ::core::clone::Clone for FABRIC_CONFIGURATION_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONFIGURATION_SETTINGS") - .field("Sections", &self.Sections) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SETTINGS {} -impl ::core::default::Default for FABRIC_CONFIGURATION_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - pub ImageName: ::windows::core::PCWSTR, - pub Commands: ::windows::core::PCWSTR, - pub EntryPoint: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION") - .field("ImageName", &self.ImageName) - .field("Commands", &self.Commands) - .field("EntryPoint", &self.EntryPoint) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DATA_PACKAGE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DATA_PACKAGE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DATA_PACKAGE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DATA_PACKAGE_DESCRIPTION") - .field("Name", &self.Name) - .field("Version", &self.Version) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DATA_PACKAGE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_DATA_PACKAGE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DATA_PACKAGE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DELETE_APPLICATION_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DELETE_APPLICATION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DELETE_APPLICATION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DELETE_APPLICATION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DELETE_APPLICATION_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ForceDelete", &self.ForceDelete) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DELETE_APPLICATION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DELETE_APPLICATION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DELETE_APPLICATION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DELETE_APPLICATION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DELETE_NETWORK_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DELETE_NETWORK_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DELETE_NETWORK_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DELETE_NETWORK_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DELETE_NETWORK_DESCRIPTION") - .field("NetworkName", &self.NetworkName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DELETE_NETWORK_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DELETE_NETWORK_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DELETE_NETWORK_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DELETE_NETWORK_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DELETE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DELETE_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_DELETE_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DELETE_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DELETE_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DELETE_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DELETE_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DELETE_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_DELETE_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DELETE_SERVICE_DESCRIPTION { - pub ServiceName: *mut u16, - pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DELETE_SERVICE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DELETE_SERVICE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DELETE_SERVICE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DELETE_SERVICE_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("ForceDelete", &self.ForceDelete) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DELETE_SERVICE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DELETE_SERVICE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DELETE_SERVICE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DELETE_SERVICE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub BaselineErrorCount: u32, - pub BaselineTotalCount: u32, - pub TotalCount: u32, - pub MaxPercentDeltaUnhealthyNodes: u8, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("BaselineErrorCount", &self.BaselineErrorCount) - .field("BaselineTotalCount", &self.BaselineTotalCount) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentDeltaUnhealthyNodes", - &self.MaxPercentDeltaUnhealthyNodes, - ) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyDeployedApplications: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyDeployedApplications", - &self.MaxPercentUnhealthyDeployedApplications, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH { - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub DeployedServicePackageHealthStates: - *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH") - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field( - "DeployedServicePackageHealthStates", - &self.DeployedServicePackageHealthStates, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2") - .field("HealthStatistics", &self.HealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub DeployedServicePackagesFilter: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field( - "DeployedServicePackagesFilter", - &self.DeployedServicePackagesFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - pub HealthStatisticsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") - .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT") - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE") - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - pub NodeName: ::windows::core::PCWSTR, - pub HealthState: FABRIC_HEALTH_STATE, - pub DeployedServicePackageHealthStateChunks: - *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK") - .field("NodeName", &self.NodeName) - .field("HealthState", &self.HealthState) - .field( - "DeployedServicePackageHealthStateChunks", - &self.DeployedServicePackageHealthStateChunks, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub NodeNameFilter: ::windows::core::PCWSTR, - pub DeployedServicePackageFilters: - *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("NodeNameFilter", &self.NodeNameFilter) - .field( - "DeployedServicePackageFilters", - &self.DeployedServicePackageFilters, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER") - .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationNameFilter: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub DeployedApplicationStatus: FABRIC_DEPLOYMENT_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM") - .field("ApplicationName", &self.ApplicationName) - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("DeployedApplicationStatus", &self.DeployedApplicationStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - pub WorkDirectory: ::windows::core::PCWSTR, - pub LogDirectory: ::windows::core::PCWSTR, - pub TempDirectory: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX") - .field("WorkDirectory", &self.WorkDirectory) - .field("LogDirectory", &self.LogDirectory) - .field("TempDirectory", &self.TempDirectory) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2") - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub CodePackageNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("CodePackageNameFilter", &self.CodePackageNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageVersion: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub RunFrequencyInterval: u32, - pub DeployedCodePackageStatus: FABRIC_DEPLOYMENT_STATUS, - pub SetupEntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, - pub EntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM") - .field("CodePackageName", &self.CodePackageName) - .field("CodePackageVersion", &self.CodePackageVersion) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("RunFrequencyInterval", &self.RunFrequencyInterval) - .field("DeployedCodePackageStatus", &self.DeployedCodePackageStatus) - .field("SetupEntryPoint", &self.SetupEntryPoint) - .field("EntryPoint", &self.EntryPoint) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub HostType: FABRIC_HOST_TYPE, - pub HostIsolationMode: FABRIC_HOST_ISOLATION_MODE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("HostType", &self.HostType) - .field("HostIsolationMode", &self.HostIsolationMode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_RESULT") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("CodePackageName", &self.CodePackageName) - .field("CodePackageInstanceId", &self.CodePackageInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub NetworkName: ::windows::core::PCWSTR, - pub ApplicationNameFilter: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub CodePackageNameFilter: ::windows::core::PCWSTR, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("NetworkName", &self.NetworkName) - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("CodePackageNameFilter", &self.CodePackageNameFilter) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - pub ApplicationName: *mut u16, - pub NetworkName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageVersion: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub ContainerAddress: ::windows::core::PCWSTR, - pub ContainerId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM") - .field("ApplicationName", &self.ApplicationName) - .field("NetworkName", &self.NetworkName) - .field("CodePackageName", &self.CodePackageName) - .field("CodePackageVersion", &self.CodePackageVersion) - .field("ServiceManifestName", &self.ServiceManifestName) - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("ContainerAddress", &self.ContainerAddress) - .field("ContainerId", &self.ContainerId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - pub NetworkName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM") - .field("NetworkName", &self.NetworkName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("NodeName", &self.NodeName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("NodeName", &self.NodeName) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK") - .field("ServiceManifestName", &self.ServiceManifestName) - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - pub ServicePackageActivationIdFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1") - .field( - "ServicePackageActivationIdFilter", - &self.ServicePackageActivationIdFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub DeployedServicePackageStatus: FABRIC_DEPLOYMENT_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM") - .field("ServiceManifestName", &self.ServiceManifestName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field( - "DeployedServicePackageStatus", - &self.DeployedServicePackageStatus, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub PartitionIdFilter: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("PartitionIdFilter", &self.PartitionIdFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestNameFilter", &self.ServiceManifestNameFilter) - .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub Status: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM") - .field("ServiceTypeName", &self.ServiceTypeName) - .field("CodePackageName", &self.CodePackageName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("Status", &self.Status) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, - pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub CurrentReplicatorOperation: FABRIC_QUERY_REPLICATOR_OPERATION_NAME, - pub ReadStatus: FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - pub WriteStatus: FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, - pub ReplicatorStatus: *mut FABRIC_REPLICATOR_STATUS_QUERY_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("CurrentServiceOperation", &self.CurrentServiceOperation) - .field( - "CurrentServiceOperationStartTimeUtc", - &self.CurrentServiceOperationStartTimeUtc, - ) - .field( - "CurrentReplicatorOperation", - &self.CurrentReplicatorOperation, - ) - .field("ReadStatus", &self.ReadStatus) - .field("WriteStatus", &self.WriteStatus) - .field("ReportedLoad", &self.ReportedLoad) - .field("ReplicatorStatus", &self.ReplicatorStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::default::Default - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { - pub ReplicaStatus: *mut FABRIC_REPLICA_STATUS_QUERY_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ -} -impl ::core::clone::Clone - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1") - .field("ReplicaStatus", &self.ReplicaStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { - pub DeployedServiceReplica: *mut FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ -} -impl ::core::clone::Clone - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2") - .field("DeployedServiceReplica", &self.DeployedServiceReplica) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub ReplicaRole: FABRIC_REPLICA_ROLE, - pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub Address: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("CodePackageName", &self.CodePackageName) - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("ReplicaRole", &self.ReplicaRole) - .field("ReplicaStatus", &self.ReplicaStatus) - .field("Address", &self.Address) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1") - .field("ServiceManifestName", &self.ServiceManifestName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - pub HostProcessId: i64, - pub ReconfigurationInformation: *mut FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3") - .field("HostProcessId", &self.HostProcessId) - .field( - "ReconfigurationInformation", - &self.ReconfigurationInformation, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub InstanceId: i64, - pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, - pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("InstanceId", &self.InstanceId) - .field("CurrentServiceOperation", &self.CurrentServiceOperation) - .field( - "CurrentServiceOperationStartTimeUtc", - &self.CurrentServiceOperationStartTimeUtc, - ) - .field("ReportedLoad", &self.ReportedLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM -{ - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} -impl ::core::default::Default - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { - pub DeployedServiceReplica: *mut FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ -} -impl ::core::clone::Clone - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1") - .field("DeployedServiceReplica", &self.DeployedServiceReplica) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub InstanceId: i64, - pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub Address: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("CodePackageName", &self.CodePackageName) - .field("PartitionId", &self.PartitionId) - .field("InstanceId", &self.InstanceId) - .field("ReplicaStatus", &self.ReplicaStatus) - .field("Address", &self.Address) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1") - .field("ServiceManifestName", &self.ServiceManifestName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - pub HostProcessId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 {} -impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3") - .field("HostProcessId", &self.HostProcessId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 {} -impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - pub IsolationPolicyType: FABRIC_DLLHOST_ISOLATION_POLICY, - pub HostedDlls: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION") - .field("IsolationPolicyType", &self.IsolationPolicyType) - .field("HostedDlls", &self.HostedDlls) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - pub Kind: FABRIC_DLLHOST_HOSTED_DLL_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - pub AssemblyName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION") - .field("AssemblyName", &self.AssemblyName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - pub DllName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION") - .field("DllName", &self.DllName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Protocol: ::windows::core::PCWSTR, - pub Type: ::windows::core::PCWSTR, - pub Port: u32, - pub CertificateName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION") - .field("Name", &self.Name) - .field("Protocol", &self.Protocol) - .field("Type", &self.Type) - .field("Port", &self.Port) - .field("CertificateName", &self.CertificateName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - pub UriScheme: ::windows::core::PCWSTR, - pub PathSuffix: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1") - .field("UriScheme", &self.UriScheme) - .field("PathSuffix", &self.PathSuffix) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - pub CodePackageName: ::windows::core::PCWSTR, - pub IpAddressOrFqdn: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2") - .field("CodePackageName", &self.CodePackageName) - .field("IpAddressOrFqdn", &self.IpAddressOrFqdn) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - pub EntityKind: FABRIC_HEALTH_ENTITY_KIND, - pub HealthStateCount: *const FABRIC_HEALTH_STATE_COUNT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT {} -impl ::core::clone::Clone for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT") - .field("EntityKind", &self.EntityKind) - .field("HealthStateCount", &self.HealthStateCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT {} -impl ::core::default::Default for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EPOCH { - pub DataLossNumber: i64, - pub ConfigurationNumber: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EPOCH {} -impl ::core::clone::Clone for FABRIC_EPOCH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EPOCH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EPOCH") - .field("DataLossNumber", &self.DataLossNumber) - .field("ConfigurationNumber", &self.ConfigurationNumber) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EPOCH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EPOCH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EPOCH {} -impl ::core::default::Default for FABRIC_EPOCH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS { - pub DbFolderPath: ::windows::core::PCWSTR, - pub LogFileSizeInKB: i32, - pub LogBufferSizeInKB: i32, - pub MaxCursors: i32, - pub MaxVerPages: i32, - pub MaxAsyncCommitDelayInMilliseconds: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS") - .field("DbFolderPath", &self.DbFolderPath) - .field("LogFileSizeInKB", &self.LogFileSizeInKB) - .field("LogBufferSizeInKB", &self.LogBufferSizeInKB) - .field("MaxCursors", &self.MaxCursors) - .field("MaxVerPages", &self.MaxVerPages) - .field( - "MaxAsyncCommitDelayInMilliseconds", - &self.MaxAsyncCommitDelayInMilliseconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - pub EnableIncrementalBackup: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1") - .field("EnableIncrementalBackup", &self.EnableIncrementalBackup) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - pub MaxCacheSizeInMB: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2") - .field("MaxCacheSizeInMB", &self.MaxCacheSizeInMB) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - pub MaxDefragFrequencyInMinutes: i32, - pub DefragThresholdInMB: i32, - pub DatabasePageSizeInKB: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3") - .field( - "MaxDefragFrequencyInMinutes", - &self.MaxDefragFrequencyInMinutes, - ) - .field("DefragThresholdInMB", &self.DefragThresholdInMB) - .field("DatabasePageSizeInKB", &self.DatabasePageSizeInKB) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - pub CompactionThresholdInMB: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4") - .field("CompactionThresholdInMB", &self.CompactionThresholdInMB) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - pub IntrinsicValueThresholdInBytes: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5") - .field( - "IntrinsicValueThresholdInBytes", - &self.IntrinsicValueThresholdInBytes, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - pub EnableOverwriteOnUpdate: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} -impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6") - .field("EnableOverwriteOnUpdate", &self.EnableOverwriteOnUpdate) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} -impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EVENT_CONTEXT_MAP { - pub Count: u32, - pub Items: *mut FABRIC_EVENT_CONTEXT_MAP_ITEM, -} -impl ::core::marker::Copy for FABRIC_EVENT_CONTEXT_MAP {} -impl ::core::clone::Clone for FABRIC_EVENT_CONTEXT_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EVENT_CONTEXT_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EVENT_CONTEXT_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP {} -impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EVENT_CONTEXT_MAP_ITEM { - pub Key: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, -} -impl ::core::marker::Copy for FABRIC_EVENT_CONTEXT_MAP_ITEM {} -impl ::core::clone::Clone for FABRIC_EVENT_CONTEXT_MAP_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EVENT_CONTEXT_MAP_ITEM") - .field("Key", &self.Key) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EVENT_CONTEXT_MAP_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP_ITEM {} -impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EVENT_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvent: *const FABRIC_HEALTH_EVENT, - pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EVENT_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_EVENT_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EVENT_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EVENT_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvent", &self.UnhealthyEvent) - .field("ConsiderWarningAsError", &self.ConsiderWarningAsError) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EVENT_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EVENT_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EVENT_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_EVENT_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EXECUTING_FAULTS_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Faults: *const FABRIC_STRING_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EXECUTING_FAULTS_EVENT {} -impl ::core::clone::Clone for FABRIC_EXECUTING_FAULTS_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EXECUTING_FAULTS_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EXECUTING_FAULTS_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("Faults", &self.Faults) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXECUTING_FAULTS_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EXECUTING_FAULTS_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EXECUTING_FAULTS_EVENT {} -impl ::core::default::Default for FABRIC_EXECUTING_FAULTS_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - pub Program: ::windows::core::PCWSTR, - pub Arguments: ::windows::core::PCWSTR, - pub WorkingFolder: FABRIC_EXEHOST_WORKING_FOLDER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION") - .field("Program", &self.Program) - .field("Arguments", &self.Arguments) - .field("WorkingFolder", &self.WorkingFolder) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - pub PeriodicIntervalInSeconds: u32, - pub ConsoleRedirectionEnabled: ::windows::Win32::Foundation::BOOLEAN, - pub ConsoleRedirectionFileRetentionCount: u32, - pub ConsoleRedirectionFileMaxSizeInKb: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1") - .field("PeriodicIntervalInSeconds", &self.PeriodicIntervalInSeconds) - .field("ConsoleRedirectionEnabled", &self.ConsoleRedirectionEnabled) - .field( - "ConsoleRedirectionFileRetentionCount", - &self.ConsoleRedirectionFileRetentionCount, - ) - .field( - "ConsoleRedirectionFileMaxSizeInKb", - &self.ConsoleRedirectionFileMaxSizeInKb, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - pub IsExternalExecutable: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2") - .field("IsExternalExecutable", &self.IsExternalExecutable) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub ApplicationPackageDownloadUri: ::windows::core::PCWSTR, - pub Async: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field( - "ApplicationPackageDownloadUri", - &self.ApplicationPackageDownloadUri, - ) - .field("Async", &self.Async) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_GATEWAY_INFORMATION { - pub NodeAddress: ::windows::core::PCWSTR, - pub NodeId: FABRIC_NODE_ID, - pub NodeInstanceId: u64, - pub NodeName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_GATEWAY_INFORMATION {} -impl ::core::clone::Clone for FABRIC_GATEWAY_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_GATEWAY_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_GATEWAY_INFORMATION") - .field("NodeAddress", &self.NodeAddress) - .field("NodeId", &self.NodeId) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("NodeName", &self.NodeName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_GATEWAY_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_GATEWAY_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_GATEWAY_INFORMATION {} -impl ::core::default::Default for FABRIC_GATEWAY_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - pub Filter: *mut FABRIC_CHAOS_REPORT_FILTER, - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_GET_CHAOS_REPORT_DESCRIPTION") - .field("Filter", &self.Filter) - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_GET_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub IncludeValue: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_GET_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_GET_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_GET_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_GET_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("IncludeValue", &self.IncludeValue) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_GET_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_GET_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_GET_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_GET_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVALUATION { - pub Kind: FABRIC_HEALTH_EVALUATION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVALUATION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVALUATION_LIST { - pub Count: u32, - pub Items: *const FABRIC_HEALTH_EVALUATION, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION_LIST {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVALUATION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION_LIST {} -impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVENT { - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub SourceUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub LastModifiedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub IsExpired: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVENT {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVENT") - .field("HealthInformation", &self.HealthInformation) - .field("SourceUtcTimestamp", &self.SourceUtcTimestamp) - .field("LastModifiedUtcTimestamp", &self.LastModifiedUtcTimestamp) - .field("IsExpired", &self.IsExpired) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT {} -impl ::core::default::Default for FABRIC_HEALTH_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVENTS_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVENTS_FILTER {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVENTS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVENTS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVENTS_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENTS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENTS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVENTS_FILTER {} -impl ::core::default::Default for FABRIC_HEALTH_EVENTS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVENT_EX1 { - pub LastOkTransitionAt: ::windows::Win32::Foundation::FILETIME, - pub LastWarningTransitionAt: ::windows::Win32::Foundation::FILETIME, - pub LastErrorTransitionAt: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_EX1 {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVENT_EX1") - .field("LastOkTransitionAt", &self.LastOkTransitionAt) - .field("LastWarningTransitionAt", &self.LastWarningTransitionAt) - .field("LastErrorTransitionAt", &self.LastErrorTransitionAt) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_EX1 {} -impl ::core::default::Default for FABRIC_HEALTH_EVENT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_EVENT_LIST { - pub Count: u32, - pub Items: *const FABRIC_HEALTH_EVENT, -} -impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_LIST {} -impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_EVENT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_LIST {} -impl ::core::default::Default for FABRIC_HEALTH_EVENT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_INFORMATION { - pub SourceId: ::windows::core::PCWSTR, - pub Property: ::windows::core::PCWSTR, - pub TimeToLiveSeconds: u32, - pub State: FABRIC_HEALTH_STATE, - pub Description: ::windows::core::PCWSTR, - pub SequenceNumber: i64, - pub RemoveWhenExpired: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_INFORMATION {} -impl ::core::clone::Clone for FABRIC_HEALTH_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_INFORMATION") - .field("SourceId", &self.SourceId) - .field("Property", &self.Property) - .field("TimeToLiveSeconds", &self.TimeToLiveSeconds) - .field("State", &self.State) - .field("Description", &self.Description) - .field("SequenceNumber", &self.SequenceNumber) - .field("RemoveWhenExpired", &self.RemoveWhenExpired) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_INFORMATION {} -impl ::core::default::Default for FABRIC_HEALTH_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_REPORT { - pub Kind: FABRIC_HEALTH_REPORT_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_REPORT") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_REPORT_SEND_OPTIONS { - pub Immediate: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} -impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_REPORT_SEND_OPTIONS") - .field("Immediate", &self.Immediate) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} -impl ::core::default::Default for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_STATE_COUNT { - pub OkCount: u32, - pub WarningCount: u32, - pub ErrorCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_STATE_COUNT {} -impl ::core::clone::Clone for FABRIC_HEALTH_STATE_COUNT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_COUNT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_STATE_COUNT") - .field("OkCount", &self.OkCount) - .field("WarningCount", &self.WarningCount) - .field("ErrorCount", &self.ErrorCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE_COUNT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATE_COUNT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_STATE_COUNT {} -impl ::core::default::Default for FABRIC_HEALTH_STATE_COUNT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_HEALTH_STATISTICS { - pub Count: u32, - pub Items: *const FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_HEALTH_STATISTICS {} -impl ::core::clone::Clone for FABRIC_HEALTH_STATISTICS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_HEALTH_STATISTICS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_HEALTH_STATISTICS") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATISTICS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATISTICS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_HEALTH_STATISTICS {} -impl ::core::default::Default for FABRIC_HEALTH_STATISTICS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_INT64_RANGE_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, - pub LowKey: i64, - pub HighKey: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_INT64_RANGE_PARTITION_INFORMATION {} -impl ::core::clone::Clone for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_INT64_RANGE_PARTITION_INFORMATION") - .field("Id", &self.Id) - .field("LowKey", &self.LowKey) - .field("HighKey", &self.HighKey) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_INT64_RANGE_PARTITION_INFORMATION {} -impl ::core::default::Default for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_ITEM { - pub Metadata: *const FABRIC_KEY_VALUE_STORE_ITEM_METADATA, - pub Value: *mut u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM") - .field("Metadata", &self.Metadata) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - pub Key: ::windows::core::PCWSTR, - pub ValueSizeInBytes: i32, - pub SequenceNumber: i64, - pub LastModifiedUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA") - .field("Key", &self.Key) - .field("ValueSizeInBytes", &self.ValueSizeInBytes) - .field("SequenceNumber", &self.SequenceNumber) - .field("LastModifiedUtc", &self.LastModifiedUtc) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - pub LastModifiedOnPrimaryUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1") - .field("LastModifiedOnPrimaryUtc", &self.LastModifiedOnPrimaryUtc) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - pub CurrentPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, - pub State: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE, - pub NextPhase: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT") - .field("CurrentPhase", &self.CurrentPhase) - .field("State", &self.State) - .field("NextPhase", &self.NextPhase) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - pub TransactionDrainTimeoutInSeconds: u32, - pub SecondaryNotificationMode: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS") - .field( - "TransactionDrainTimeoutInSeconds", - &self.TransactionDrainTimeoutInSeconds, - ) - .field("SecondaryNotificationMode", &self.SecondaryNotificationMode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - pub EnableCopyNotificationPrefetch: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1") - .field( - "EnableCopyNotificationPrefetch", - &self.EnableCopyNotificationPrefetch, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - pub FullCopyMode: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2") - .field("FullCopyMode", &self.FullCopyMode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - pub LogTruncationIntervalInMinutes: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3") - .field( - "LogTruncationIntervalInMinutes", - &self.LogTruncationIntervalInMinutes, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - pub InlineReopen: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS") - .field("InlineReopen", &self.InlineReopen) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - pub EnableLsnCheck: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1") - .field("EnableLsnCheck", &self.EnableLsnCheck) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - pub DatabaseRowCountEstimate: i64, - pub DatabaseLogicalSizeEstimate: i64, - pub CopyNotificationCurrentKeyFilter: ::windows::core::PCWSTR, - pub CopyNotificationCurrentProgress: i64, - pub StatusDetails: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT") - .field("DatabaseRowCountEstimate", &self.DatabaseRowCountEstimate) - .field( - "DatabaseLogicalSizeEstimate", - &self.DatabaseLogicalSizeEstimate, - ) - .field( - "CopyNotificationCurrentKeyFilter", - &self.CopyNotificationCurrentKeyFilter, - ) - .field( - "CopyNotificationCurrentProgress", - &self.CopyNotificationCurrentProgress, - ) - .field("StatusDetails", &self.StatusDetails) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - pub ProviderKind: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND, - pub MigrationStatus: *const FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1") - .field("ProviderKind", &self.ProviderKind) - .field("MigrationStatus", &self.MigrationStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - pub SerializationBlockSize: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS {} -impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS") - .field("SerializationBlockSize", &self.SerializationBlockSize) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS {} -impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC { - pub Name: ::windows::core::PCWSTR, - pub Value: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC") - .field("Name", &self.Name) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC {} -impl ::core::default::Default for FABRIC_LOAD_METRIC { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, - pub IsBalancedBefore: ::windows::Win32::Foundation::BOOLEAN, - pub IsBalancedAfter: ::windows::Win32::Foundation::BOOLEAN, - pub DeviationBefore: f64, - pub DeviationAfter: f64, - pub BalancingThreshold: f64, - pub Action: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION") - .field("Name", &self.Name) - .field("IsBalancedBefore", &self.IsBalancedBefore) - .field("IsBalancedAfter", &self.IsBalancedAfter) - .field("DeviationBefore", &self.DeviationBefore) - .field("DeviationAfter", &self.DeviationAfter) - .field("BalancingThreshold", &self.BalancingThreshold) - .field("Action", &self.Action) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_INFORMATION_EX1 { - pub ActivityThreshold: u32, - pub ClusterCapacity: i64, - pub ClusterLoad: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX1 {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX1") - .field("ActivityThreshold", &self.ActivityThreshold) - .field("ClusterCapacity", &self.ClusterCapacity) - .field("ClusterLoad", &self.ClusterLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX1 {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_INFORMATION_EX2 { - pub RemainingUnbufferedCapacity: i64, - pub NodeBufferPercentage: f64, - pub BufferedCapacity: i64, - pub RemainingBufferedCapacity: i64, - pub IsClusterCapacityViolation: ::windows::Win32::Foundation::BOOLEAN, - pub MinNodeLoadValue: i64, - pub MinNodeLoadNodeId: FABRIC_NODE_ID, - pub MaxNodeLoadValue: i64, - pub MaxNodeLoadNodeId: FABRIC_NODE_ID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX2") - .field( - "RemainingUnbufferedCapacity", - &self.RemainingUnbufferedCapacity, - ) - .field("NodeBufferPercentage", &self.NodeBufferPercentage) - .field("BufferedCapacity", &self.BufferedCapacity) - .field("RemainingBufferedCapacity", &self.RemainingBufferedCapacity) - .field( - "IsClusterCapacityViolation", - &self.IsClusterCapacityViolation, - ) - .field("MinNodeLoadValue", &self.MinNodeLoadValue) - .field("MinNodeLoadNodeId", &self.MinNodeLoadNodeId) - .field("MaxNodeLoadValue", &self.MaxNodeLoadValue) - .field("MaxNodeLoadNodeId", &self.MaxNodeLoadNodeId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_INFORMATION_EX3 { - pub CurrentClusterLoad: f64, - pub BufferedClusterCapacityRemaining: f64, - pub ClusterCapacityRemaining: f64, - pub MaximumNodeLoad: f64, - pub MinimumNodeLoad: f64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX3 {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX3") - .field("CurrentClusterLoad", &self.CurrentClusterLoad) - .field( - "BufferedClusterCapacityRemaining", - &self.BufferedClusterCapacityRemaining, - ) - .field("ClusterCapacityRemaining", &self.ClusterCapacityRemaining) - .field("MaximumNodeLoad", &self.MaximumNodeLoad) - .field("MinimumNodeLoad", &self.MinimumNodeLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX3 {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_INFORMATION_LIST { - pub Count: u32, - pub Items: *mut FABRIC_LOAD_METRIC_INFORMATION, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_REPORT { - pub Name: ::windows::core::PCWSTR, - pub Value: u32, - pub LastReportedUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_REPORT") - .field("Name", &self.Name) - .field("Value", &self.Value) - .field("LastReportedUtc", &self.LastReportedUtc) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_REPORT_EX1 { - pub CurrentValue: f64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT_EX1 {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_REPORT_EX1") - .field("CurrentValue", &self.CurrentValue) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_EX1 {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOAD_METRIC_REPORT_LIST { - pub Count: u32, - pub Items: *mut FABRIC_LOAD_METRIC_REPORT, -} -impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT_LIST {} -impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOAD_METRIC_REPORT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_LIST {} -impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - pub NetworkAddressPrefix: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION") - .field("NetworkAddressPrefix", &self.NetworkAddressPrefix) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOCAL_NETWORK_DESCRIPTION { - pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOCAL_NETWORK_DESCRIPTION") - .field("NetworkConfiguration", &self.NetworkConfiguration) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_DESCRIPTION {} -impl ::core::default::Default for FABRIC_LOCAL_NETWORK_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_LOCAL_NETWORK_INFORMATION { - pub NetworkName: ::windows::core::PCWSTR, - pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, - pub NetworkStatus: FABRIC_NETWORK_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_INFORMATION {} -impl ::core::clone::Clone for FABRIC_LOCAL_NETWORK_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_LOCAL_NETWORK_INFORMATION") - .field("NetworkName", &self.NetworkName) - .field("NetworkConfiguration", &self.NetworkConfiguration) - .field("NetworkStatus", &self.NetworkStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_INFORMATION {} -impl ::core::default::Default for FABRIC_LOCAL_NETWORK_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - pub Kind: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_PRIMARY_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME") - .field("NodeName", &self.NodeName) - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("IgnoreConstraints", &self.IgnoreConstraints) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_PRIMARY_RESULT { - pub NodeName: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_RESULT {} -impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_PRIMARY_RESULT") - .field("NodeName", &self.NodeName) - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_RESULT {} -impl ::core::default::Default for FABRIC_MOVE_PRIMARY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - pub Kind: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_SECONDARY_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - pub CurrentNodeName: ::windows::core::PCWSTR, - pub NewNodeName: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME") - .field("CurrentNodeName", &self.CurrentNodeName) - .field("NewNodeName", &self.NewNodeName) - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("IgnoreConstraints", &self.IgnoreConstraints) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_MOVE_SECONDARY_RESULT { - pub CurrentNodeName: ::windows::core::PCWSTR, - pub NewNodeName: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_RESULT {} -impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_MOVE_SECONDARY_RESULT") - .field("CurrentNodeName", &self.CurrentNodeName) - .field("NewNodeName", &self.NewNodeName) - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_RESULT {} -impl ::core::default::Default for FABRIC_MOVE_SECONDARY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, - pub Name: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_INFORMATION {} -impl ::core::clone::Clone for FABRIC_NAMED_PARTITION_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_PARTITION_INFORMATION") - .field("Id", &self.Id) - .field("Name", &self.Name) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PARTITION_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_INFORMATION {} -impl ::core::default::Default for FABRIC_NAMED_PARTITION_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - pub PartitionCount: i32, - pub Names: *const ::windows::core::PWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION") - .field("PartitionCount", &self.PartitionCount) - .field("Names", &self.Names) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_PROPERTY { - pub Metadata: *const FABRIC_NAMED_PROPERTY_METADATA, - pub Value: *mut u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY {} -impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_PROPERTY") - .field("Metadata", &self.Metadata) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY {} -impl ::core::default::Default for FABRIC_NAMED_PROPERTY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_PROPERTY_METADATA { - pub PropertyName: ::windows::core::PCWSTR, - pub TypeId: FABRIC_PROPERTY_TYPE_ID, - pub ValueSize: i32, - pub SequenceNumber: i64, - pub LastModifiedUtc: ::windows::Win32::Foundation::FILETIME, - pub Name: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA {} -impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY_METADATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_PROPERTY_METADATA") - .field("PropertyName", &self.PropertyName) - .field("TypeId", &self.TypeId) - .field("ValueSize", &self.ValueSize) - .field("SequenceNumber", &self.SequenceNumber) - .field("LastModifiedUtc", &self.LastModifiedUtc) - .field("Name", &self.Name) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY_METADATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA {} -impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_PROPERTY_METADATA_EX1 { - pub CustomTypeId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} -impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_PROPERTY_METADATA_EX1") - .field("CustomTypeId", &self.CustomTypeId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} -impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NAMED_REPARTITION_DESCRIPTION { - pub NamesToAddCount: u32, - pub NamesToAdd: *const ::windows::core::PWSTR, - pub NamesToRemoveCount: u32, - pub NamesToRemove: *const ::windows::core::PWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NAMED_REPARTITION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NAMED_REPARTITION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NAMED_REPARTITION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NAMED_REPARTITION_DESCRIPTION") - .field("NamesToAddCount", &self.NamesToAddCount) - .field("NamesToAdd", &self.NamesToAdd) - .field("NamesToRemoveCount", &self.NamesToRemoveCount) - .field("NamesToRemove", &self.NamesToRemove) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NAMED_REPARTITION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NAMED_REPARTITION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NAMED_REPARTITION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NAMED_REPARTITION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, - pub ApplicationNameFilter: *mut u16, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION") - .field("NetworkName", &self.NetworkName) - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - pub ApplicationName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM") - .field("ApplicationName", &self.ApplicationName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_DESCRIPTION { - pub NetworkType: FABRIC_NETWORK_TYPE, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NETWORK_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_DESCRIPTION") - .field("NetworkType", &self.NetworkType) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NETWORK_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_INFORMATION { - pub NetworkType: FABRIC_NETWORK_TYPE, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_INFORMATION {} -impl ::core::clone::Clone for FABRIC_NETWORK_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_INFORMATION") - .field("NetworkType", &self.NetworkType) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_INFORMATION {} -impl ::core::default::Default for FABRIC_NETWORK_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, - pub NodeNameFilter: ::windows::core::PCWSTR, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_NODE_QUERY_DESCRIPTION") - .field("NetworkName", &self.NetworkName) - .field("NodeNameFilter", &self.NodeNameFilter) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - pub NodeName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM") - .field("NodeName", &self.NodeName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_NODE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_QUERY_DESCRIPTION { - pub NetworkNameFilter: ::windows::core::PCWSTR, - pub NetworkStatusFilter: u32, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NETWORK_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NETWORK_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_QUERY_DESCRIPTION") - .field("NetworkNameFilter", &self.NetworkNameFilter) - .field("NetworkStatusFilter", &self.NetworkStatusFilter) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NETWORK_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NETWORK_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_NETWORK_INFORMATION, -} -impl ::core::marker::Copy for FABRIC_NETWORK_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_NETWORK_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NETWORK_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_NETWORK_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyNodes: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODES_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_NODES_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODES_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODES_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODES_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODES_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODES_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_NODES_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_CONTEXT { - pub NodeName: ::windows::core::PCWSTR, - pub NodeType: ::windows::core::PCWSTR, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub NodeId: FABRIC_NODE_ID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_CONTEXT {} -impl ::core::clone::Clone for FABRIC_NODE_CONTEXT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_CONTEXT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_CONTEXT") - .field("NodeName", &self.NodeName) - .field("NodeType", &self.NodeType) - .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("NodeId", &self.NodeId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_CONTEXT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_CONTEXT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_CONTEXT {} -impl ::core::default::Default for FABRIC_NODE_CONTEXT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - pub EffectiveIntent: FABRIC_NODE_DEACTIVATION_INTENT, - pub Status: FABRIC_NODE_DEACTIVATION_STATUS, - pub Tasks: *const FABRIC_NODE_DEACTIVATION_TASK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM") - .field("EffectiveIntent", &self.EffectiveIntent) - .field("Status", &self.Status) - .field("Tasks", &self.Tasks) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - pub PendingSafetyChecks: *const FABRIC_SAFETY_CHECK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1") - .field("PendingSafetyChecks", &self.PendingSafetyChecks) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_DEACTIVATION_TASK { - pub TaskId: *const FABRIC_NODE_DEACTIVATION_TASK_ID, - pub Intent: FABRIC_NODE_DEACTIVATION_INTENT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK") - .field("TaskId", &self.TaskId) - .field("Intent", &self.Intent) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK {} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_DEACTIVATION_TASK_ID { - pub Id: ::windows::core::PCWSTR, - pub Type: FABRIC_NODE_DEACTIVATION_TASK_TYPE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_ID {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_ID { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_ID { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK_ID") - .field("Id", &self.Id) - .field("Type", &self.Type) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_ID { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_ID { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_ID {} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_ID { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_DEACTIVATION_TASK_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_DEACTIVATION_TASK, -} -impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_DEACTIVATION_TASK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_LIST {} -impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH { - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH") - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH {} -impl ::core::default::Default for FABRIC_NODE_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_REPORT { - pub NodeName: ::windows::core::PCWSTR, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_REPORT") - .field("NodeName", &self.NodeName) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE { - pub NodeName: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE") - .field("NodeName", &self.NodeName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE_CHUNK { - pub NodeName: ::windows::core::PCWSTR, - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE_CHUNK") - .field("NodeName", &self.NodeName) - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub NodeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("NodeNameFilter", &self.NodeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_ID { - pub Low: u64, - pub High: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_ID {} -impl ::core::clone::Clone for FABRIC_NODE_ID { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_ID { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_ID") - .field("Low", &self.Low) - .field("High", &self.High) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_ID { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_ID { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_ID {} -impl ::core::default::Default for FABRIC_NODE_ID { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_INFORMATION { - pub NodeName: ::windows::core::PCWSTR, - pub NodeLoadMetricInformation: *const FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_INFORMATION") - .field("NodeName", &self.NodeName) - .field("NodeLoadMetricInformation", &self.NodeLoadMetricInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION {} -impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, - pub NodeCapacity: i64, - pub NodeLoad: i64, - pub NodeRemainingCapacity: i64, - pub IsCapacityViolation: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION") - .field("Name", &self.Name) - .field("NodeCapacity", &self.NodeCapacity) - .field("NodeLoad", &self.NodeLoad) - .field("NodeRemainingCapacity", &self.NodeRemainingCapacity) - .field("IsCapacityViolation", &self.IsCapacityViolation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION {} -impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - pub NodeBufferedCapacity: i64, - pub NodeRemainingBufferedCapacity: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1") - .field("NodeBufferedCapacity", &self.NodeBufferedCapacity) - .field( - "NodeRemainingBufferedCapacity", - &self.NodeRemainingBufferedCapacity, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 {} -impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - pub CurrentNodeLoad: f64, - pub NodeCapacityRemaining: f64, - pub BufferedNodeCapacityRemaining: f64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2") - .field("CurrentNodeLoad", &self.CurrentNodeLoad) - .field("NodeCapacityRemaining", &self.NodeCapacityRemaining) - .field( - "BufferedNodeCapacityRemaining", - &self.BufferedNodeCapacityRemaining, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 {} -impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - pub Count: u32, - pub Items: *mut FABRIC_NODE_LOAD_METRIC_INFORMATION, -} -impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} -impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_DESCRIPTION { - pub NodeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION") - .field("NodeNameFilter", &self.NodeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX1") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - pub NodeStatusFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX2") - .field("NodeStatusFilter", &self.NodeStatusFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - pub MaxResults: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_DESCRIPTION_EX3") - .field("MaxResults", &self.MaxResults) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM { - pub NodeName: ::windows::core::PCWSTR, - pub IpAddressOrFQDN: ::windows::core::PCWSTR, - pub NodeType: ::windows::core::PCWSTR, - pub CodeVersion: ::windows::core::PCWSTR, - pub ConfigVersion: ::windows::core::PCWSTR, - pub NodeStatus: FABRIC_QUERY_NODE_STATUS, - pub NodeUpTimeInSeconds: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub IsSeedNode: ::windows::Win32::Foundation::BOOLEAN, - pub UpgradeDomain: ::windows::core::PCWSTR, - pub FaultDomain: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM") - .field("NodeName", &self.NodeName) - .field("IpAddressOrFQDN", &self.IpAddressOrFQDN) - .field("NodeType", &self.NodeType) - .field("CodeVersion", &self.CodeVersion) - .field("ConfigVersion", &self.ConfigVersion) - .field("NodeStatus", &self.NodeStatus) - .field("NodeUpTimeInSeconds", &self.NodeUpTimeInSeconds) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("IsSeedNode", &self.IsSeedNode) - .field("UpgradeDomain", &self.UpgradeDomain) - .field("FaultDomain", &self.FaultDomain) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - pub NodeId: FABRIC_NODE_ID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX1") - .field("NodeId", &self.NodeId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - pub NodeInstanceId: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX2") - .field("NodeInstanceId", &self.NodeInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - pub NodeDeactivationInfo: *const FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX3") - .field("NodeDeactivationInfo", &self.NodeDeactivationInfo) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - pub IsStopped: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX4") - .field("IsStopped", &self.IsStopped) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - pub NodeDownTimeInSeconds: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX5") - .field("NodeDownTimeInSeconds", &self.NodeDownTimeInSeconds) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - pub NodeUpAt: ::windows::Win32::Foundation::FILETIME, - pub NodeDownAt: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX6") - .field("NodeUpAt", &self.NodeUpAt) - .field("NodeDownAt", &self.NodeDownAt) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_RESULT { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstance: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_RESULT {} -impl ::core::clone::Clone for FABRIC_NODE_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_RESULT") - .field("NodeName", &self.NodeName) - .field("NodeInstance", &self.NodeInstance) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_RESULT {} -impl ::core::default::Default for FABRIC_NODE_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_START_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_START_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_START_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_START_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_START_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_START_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_START_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_START_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_START_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_STOP_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub StopDurationInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_STOP_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_STOP_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_STOP_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_STOP_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("StopDurationInSeconds", &self.StopDurationInSeconds) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_STOP_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_STOP_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_STOP_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_STOP_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_TRANSITION_DESCRIPTION { - pub NodeTransitionType: FABRIC_NODE_TRANSITION_TYPE, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_TRANSITION_DESCRIPTION") - .field("NodeTransitionType", &self.NodeTransitionType) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_NODE_TRANSITION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_TRANSITION_PROGRESS { - pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, - pub Result: *mut FABRIC_NODE_TRANSITION_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_PROGRESS {} -impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_TRANSITION_PROGRESS") - .field("State", &self.State) - .field("Result", &self.Result) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_PROGRESS {} -impl ::core::default::Default for FABRIC_NODE_TRANSITION_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_TRANSITION_RESULT { - pub ErrorCode: ::windows::core::HRESULT, - pub NodeResult: *mut FABRIC_NODE_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_RESULT {} -impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_TRANSITION_RESULT") - .field("ErrorCode", &self.ErrorCode) - .field("NodeResult", &self.NodeResult) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_RESULT {} -impl ::core::default::Default for FABRIC_NODE_TRANSITION_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_UPGRADE_PROGRESS { - pub NodeName: ::windows::core::PCWSTR, - pub UpgradePhase: FABRIC_NODE_UPGRADE_PHASE, - pub PendingSafetyChecks: *const FABRIC_UPGRADE_SAFETY_CHECK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PROGRESS {} -impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_UPGRADE_PROGRESS") - .field("NodeName", &self.NodeName) - .field("UpgradePhase", &self.UpgradePhase) - .field("PendingSafetyChecks", &self.PendingSafetyChecks) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS {} -impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_NODE_UPGRADE_PROGRESS_LIST { - pub Count: u32, - pub Items: *const FABRIC_NODE_UPGRADE_PROGRESS, -} -impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PROGRESS_LIST {} -impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_NODE_UPGRADE_PROGRESS_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS_LIST {} -impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_OPERATION_DATA_BUFFER { - pub BufferSize: u32, - pub Buffer: *mut u8, -} -impl ::core::marker::Copy for FABRIC_OPERATION_DATA_BUFFER {} -impl ::core::clone::Clone for FABRIC_OPERATION_DATA_BUFFER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_OPERATION_DATA_BUFFER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_OPERATION_DATA_BUFFER") - .field("BufferSize", &self.BufferSize) - .field("Buffer", &self.Buffer) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_DATA_BUFFER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_OPERATION_DATA_BUFFER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_OPERATION_DATA_BUFFER {} -impl ::core::default::Default for FABRIC_OPERATION_DATA_BUFFER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_OPERATION_ID { - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_OPERATION_ID {} -impl ::core::clone::Clone for FABRIC_OPERATION_ID { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_OPERATION_ID { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_OPERATION_ID") - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_ID { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_OPERATION_ID { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_OPERATION_ID {} -impl ::core::default::Default for FABRIC_OPERATION_ID { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_OPERATION_METADATA { - pub Type: FABRIC_OPERATION_TYPE, - pub SequenceNumber: i64, - pub AtomicGroupId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_OPERATION_METADATA {} -impl ::core::clone::Clone for FABRIC_OPERATION_METADATA { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_OPERATION_METADATA { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_OPERATION_METADATA") - .field("Type", &self.Type) - .field("SequenceNumber", &self.SequenceNumber) - .field("AtomicGroupId", &self.AtomicGroupId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_METADATA { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_OPERATION_METADATA { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_OPERATION_METADATA {} -impl ::core::default::Default for FABRIC_OPERATION_METADATA { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - pub UpgradeState: FABRIC_UPGRADE_STATE, - pub ProgressStatus: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {} -impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS") - .field("UpgradeState", &self.UpgradeState) - .field("ProgressStatus", &self.ProgressStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {} -impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - pub ConfigVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} -impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1") - .field("ConfigVersion", &self.ConfigVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} -impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - pub Details: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} -impl ::core::clone::Clone for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2") - .field("Details", &self.Details) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} -impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PACKAGE_SHARING_POLICY { - pub PackageName: ::windows::core::PCWSTR, - pub Scope: FABRIC_PACKAGE_SHARING_POLICY_SCOPE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY {} -impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PACKAGE_SHARING_POLICY") - .field("PackageName", &self.PackageName) - .field("Scope", &self.Scope) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY {} -impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PACKAGE_SHARING_POLICY_LIST { - pub Count: u32, - pub Items: *const FABRIC_PACKAGE_SHARING_POLICY, -} -impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY_LIST {} -impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PACKAGE_SHARING_POLICY_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY_LIST {} -impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationNameFilter: *mut u16, - pub IncludeHealthState: ::windows::Win32::Foundation::BOOLEAN, - pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationNameFilter", &self.ApplicationNameFilter) - .field("IncludeHealthState", &self.IncludeHealthState) - .field("PagingDescription", &self.PagingDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PAGING_STATUS { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PAGING_STATUS {} -impl ::core::clone::Clone for FABRIC_PAGING_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PAGING_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PAGING_STATUS") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PAGING_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PAGING_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PAGING_STATUS {} -impl ::core::default::Default for FABRIC_PAGING_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyPartitionsPerService: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITIONS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_PARTITIONS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITIONS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITIONS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyPartitionsPerService", - &self.MaxPercentUnhealthyPartitionsPerService, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITIONS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITIONS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITIONS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_PARTITIONS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_DATA_LOSS_PROGRESS { - pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, - pub Result: *mut FABRIC_PARTITION_DATA_LOSS_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_DATA_LOSS_PROGRESS {} -impl ::core::clone::Clone for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_DATA_LOSS_PROGRESS") - .field("State", &self.State) - .field("Result", &self.Result) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_PROGRESS {} -impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_DATA_LOSS_RESULT { - pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_DATA_LOSS_RESULT {} -impl ::core::clone::Clone for FABRIC_PARTITION_DATA_LOSS_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_DATA_LOSS_RESULT") - .field("SelectedPartition", &self.SelectedPartition) - .field("ErrorCode", &self.ErrorCode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_DATA_LOSS_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_RESULT {} -impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH { - pub PartitionId: ::windows::core::GUID, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub ReplicaHealthStates: *const FABRIC_REPLICA_HEALTH_STATE_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH") - .field("PartitionId", &self.PartitionId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("ReplicaHealthStates", &self.ReplicaHealthStates) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("PartitionId", &self.PartitionId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_EX2 { - pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_EX2") - .field("HealthStatistics", &self.HealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub ReplicasFilter: *const FABRIC_REPLICA_HEALTH_STATES_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("ReplicasFilter", &self.ReplicasFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - pub HealthStatisticsFilter: *const FABRIC_PARTITION_HEALTH_STATISTICS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1") - .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_REPORT") - .field("PartitionId", &self.PartitionId) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE") - .field("PartitionId", &self.PartitionId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK { - pub PartitionId: ::windows::core::GUID, - pub HealthState: FABRIC_HEALTH_STATE, - pub ReplicaHealthStateChunks: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_CHUNK") - .field("PartitionId", &self.PartitionId) - .field("HealthState", &self.HealthState) - .field("ReplicaHealthStateChunks", &self.ReplicaHealthStateChunks) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub PartitionIdFilter: ::windows::core::GUID, - pub ReplicaFilters: *const FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("PartitionIdFilter", &self.PartitionIdFilter) - .field("ReplicaFilters", &self.ReplicaFilters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_PARTITION_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_PARTITION_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} -impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_HEALTH_STATISTICS_FILTER") - .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} -impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_LOAD_INFORMATION { - pub PartitionId: ::windows::core::GUID, - pub PrimaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, - pub SecondaryLoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION {} -impl ::core::clone::Clone for FABRIC_PARTITION_LOAD_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_LOAD_INFORMATION") - .field("PartitionId", &self.PartitionId) - .field("PrimaryLoadMetricReports", &self.PrimaryLoadMetricReports) - .field( - "SecondaryLoadMetricReports", - &self.SecondaryLoadMetricReports, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_LOAD_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION {} -impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, - pub Result: *mut FABRIC_PARTITION_QUORUM_LOSS_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {} -impl ::core::clone::Clone for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_QUORUM_LOSS_PROGRESS") - .field("State", &self.State) - .field("Result", &self.Result) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {} -impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_QUORUM_LOSS_RESULT { - pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} -impl ::core::clone::Clone for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_QUORUM_LOSS_RESULT") - .field("SelectedPartition", &self.SelectedPartition) - .field("ErrorCode", &self.ErrorCode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} -impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_RESTART_PROGRESS { - pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, - pub Result: *mut FABRIC_PARTITION_RESTART_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_RESTART_PROGRESS {} -impl ::core::clone::Clone for FABRIC_PARTITION_RESTART_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_RESTART_PROGRESS") - .field("State", &self.State) - .field("Result", &self.Result) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_RESTART_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_PROGRESS {} -impl ::core::default::Default for FABRIC_PARTITION_RESTART_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_RESTART_RESULT { - pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_RESTART_RESULT {} -impl ::core::clone::Clone for FABRIC_PARTITION_RESTART_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_RESTART_RESULT") - .field("SelectedPartition", &self.SelectedPartition) - .field("ErrorCode", &self.ErrorCode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_RESTART_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_RESULT {} -impl ::core::default::Default for FABRIC_PARTITION_RESTART_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_SAFETY_CHECK { - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_PARTITION_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_SAFETY_CHECK") - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_PARTITION_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PARTITION_SELECTOR { - pub ServiceName: *mut u16, - pub PartitionSelectorType: FABRIC_PARTITION_SELECTOR_TYPE, - pub PartitionKey: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR {} -impl ::core::clone::Clone for FABRIC_PARTITION_SELECTOR { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PARTITION_SELECTOR") - .field("ServiceName", &self.ServiceName) - .field("PartitionSelectorType", &self.PartitionSelectorType) - .field("PartitionKey", &self.PartitionKey) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SELECTOR { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PARTITION_SELECTOR { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PARTITION_SELECTOR {} -impl ::core::default::Default for FABRIC_PARTITION_SELECTOR { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - pub InvalidFaultDomain: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION") - .field("InvalidFaultDomain", &self.InvalidFaultDomain) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION") - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - pub PreferredPrimaryFaultDomain: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION") - .field( - "PreferredPrimaryFaultDomain", - &self.PreferredPrimaryFaultDomain, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - pub RequiredFaultDomain: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION") - .field("RequiredFaultDomain", &self.RequiredFaultDomain) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION") - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, - pub RemoteReplicators: *mut FABRIC_REMOTE_REPLICATOR_STATUS_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT") - .field("ReplicationQueueStatus", &self.ReplicationQueueStatus) - .field("RemoteReplicators", &self.RemoteReplicators) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROPERTY_BATCH_OPERATION { - pub Kind: FABRIC_PROPERTY_BATCH_OPERATION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROPERTY_BATCH_OPERATION {} -impl ::core::clone::Clone for FABRIC_PROPERTY_BATCH_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROPERTY_BATCH_OPERATION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_BATCH_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROPERTY_BATCH_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROPERTY_BATCH_OPERATION {} -impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - pub CodeVersionFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION") - .field("CodeVersionFilter", &self.CodeVersionFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - pub CodeVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM") - .field("CodeVersion", &self.CodeVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - pub ConfigVersionFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION") - .field("ConfigVersionFilter", &self.ConfigVersionFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - pub ConfigVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM") - .field("ConfigVersion", &self.ConfigVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - pub BuildPath: ::windows::core::PCWSTR, - pub Async: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION") - .field("BuildPath", &self.BuildPath) - .field("Async", &self.Async) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - pub Kind: FABRIC_PROVISION_APPLICATION_TYPE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE {} -impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE {} -impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - pub ApplicationPackageCleanupPolicy: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1") - .field( - "ApplicationPackageCleanupPolicy", - &self.ApplicationPackageCleanupPolicy, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, - pub PropertyValue: *mut ::core::ffi::c_void, - pub PropertyCustomTypeId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PUT_CUSTOM_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("PropertyTypeId", &self.PropertyTypeId) - .field("PropertyValue", &self.PropertyValue) - .field("PropertyCustomTypeId", &self.PropertyCustomTypeId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_PUT_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, - pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, - pub PropertyValue: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_PUT_PROPERTY_OPERATION {} -impl ::core::clone::Clone for FABRIC_PUT_PROPERTY_OPERATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_PUT_PROPERTY_OPERATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_PUT_PROPERTY_OPERATION") - .field("PropertyName", &self.PropertyName) - .field("PropertyTypeId", &self.PropertyTypeId) - .field("PropertyValue", &self.PropertyValue) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_PUT_PROPERTY_OPERATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_PUT_PROPERTY_OPERATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_PUT_PROPERTY_OPERATION {} -impl ::core::default::Default for FABRIC_PUT_PROPERTY_OPERATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_QUERY_PAGING_DESCRIPTION { - pub ContinuationToken: ::windows::core::PCWSTR, - pub MaxResults: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_QUERY_PAGING_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_QUERY_PAGING_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_QUERY_PAGING_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_QUERY_PAGING_DESCRIPTION") - .field("ContinuationToken", &self.ContinuationToken) - .field("MaxResults", &self.MaxResults) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_QUERY_PAGING_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_QUERY_PAGING_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_QUERY_PAGING_DESCRIPTION {} -impl ::core::default::Default for FABRIC_QUERY_PAGING_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - pub PreviousConfigurationRole: FABRIC_REPLICA_ROLE, - pub ReconfigurationPhase: FABRIC_RECONFIGURATION_PHASE, - pub ReconfigurationType: FABRIC_RECONFIGURATION_TYPE, - pub ReconfigurationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT") - .field("PreviousConfigurationRole", &self.PreviousConfigurationRole) - .field("ReconfigurationPhase", &self.ReconfigurationPhase) - .field("ReconfigurationType", &self.ReconfigurationType) - .field( - "ReconfigurationStartTimeUtc", - &self.ReconfigurationStartTimeUtc, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - pub AverageReceiveDurationMilliseconds: i64, - pub AverageApplyDurationMilliseconds: i64, - pub NotReceivedCount: i64, - pub ReceivedAndNotAppliedCount: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL {} -impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL") - .field( - "AverageReceiveDurationMilliseconds", - &self.AverageReceiveDurationMilliseconds, - ) - .field( - "AverageApplyDurationMilliseconds", - &self.AverageApplyDurationMilliseconds, - ) - .field("NotReceivedCount", &self.NotReceivedCount) - .field( - "ReceivedAndNotAppliedCount", - &self.ReceivedAndNotAppliedCount, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL {} -impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - pub CopyStreamAcknowledgementDetails: *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, - pub ReplicationStreamAcknowledgementDetails: - *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS {} -impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS") - .field( - "CopyStreamAcknowledgementDetails", - &self.CopyStreamAcknowledgementDetails, - ) - .field( - "ReplicationStreamAcknowledgementDetails", - &self.ReplicationStreamAcknowledgementDetails, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS {} -impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOTE_REPLICATOR_STATUS { - pub ReplicaId: i64, - pub LastAcknowledgementProcessedTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub LastReceivedReplicationSequenceNumber: i64, - pub LastAppliedReplicationSequenceNumber: i64, - pub IsInBuild: ::windows::Win32::Foundation::BOOLEAN, - pub LastReceivedCopySequenceNumber: i64, - pub LastAppliedCopySequenceNumber: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS {} -impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS") - .field("ReplicaId", &self.ReplicaId) - .field( - "LastAcknowledgementProcessedTimeUtc", - &self.LastAcknowledgementProcessedTimeUtc, - ) - .field( - "LastReceivedReplicationSequenceNumber", - &self.LastReceivedReplicationSequenceNumber, - ) - .field( - "LastAppliedReplicationSequenceNumber", - &self.LastAppliedReplicationSequenceNumber, - ) - .field("IsInBuild", &self.IsInBuild) - .field( - "LastReceivedCopySequenceNumber", - &self.LastReceivedCopySequenceNumber, - ) - .field( - "LastAppliedCopySequenceNumber", - &self.LastAppliedCopySequenceNumber, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS {} -impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - pub Count: u32, - pub Items: *mut FABRIC_REMOTE_REPLICATOR_STATUS, -} -impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} -impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} -impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REMOVE_REPLICA_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REMOVE_REPLICA_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOVE_REPLICA_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOVE_REPLICA_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - pub ForceRemove: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1") - .field("ForceRemove", &self.ForceRemove) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_APPROVE_DESCRIPTION { - pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, - pub Version: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_APPROVE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_APPROVE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_APPROVE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_APPROVE_DESCRIPTION") - .field("Scope", &self.Scope) - .field("RepairTaskId", &self.RepairTaskId) - .field("Version", &self.Version) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_APPROVE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_APPROVE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_APPROVE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_APPROVE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_CANCEL_DESCRIPTION { - pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, - pub Version: i64, - pub RequestAbort: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_CANCEL_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_CANCEL_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_CANCEL_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_CANCEL_DESCRIPTION") - .field("Scope", &self.Scope) - .field("RepairTaskId", &self.RepairTaskId) - .field("Version", &self.Version) - .field("RequestAbort", &self.RequestAbort) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_CANCEL_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_CANCEL_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_CANCEL_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_CANCEL_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_DELETE_DESCRIPTION { - pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, - pub Version: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_DELETE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_DELETE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_DELETE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_DELETE_DESCRIPTION") - .field("Scope", &self.Scope) - .field("RepairTaskId", &self.RepairTaskId) - .field("Version", &self.Version) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_DELETE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_DELETE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_DELETE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_DELETE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_EXECUTOR_STATE { - pub Executor: ::windows::core::PCWSTR, - pub ExecutorData: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_EXECUTOR_STATE {} -impl ::core::clone::Clone for FABRIC_REPAIR_EXECUTOR_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_EXECUTOR_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_EXECUTOR_STATE") - .field("Executor", &self.Executor) - .field("ExecutorData", &self.ExecutorData) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_EXECUTOR_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_EXECUTOR_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_EXECUTOR_STATE {} -impl ::core::default::Default for FABRIC_REPAIR_EXECUTOR_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_IMPACT_DESCRIPTION { - pub Kind: FABRIC_REPAIR_IMPACT_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_IMPACT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_IMPACT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_IMPACT_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_IMPACT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_IMPACT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_IMPACT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_IMPACT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_NODE_IMPACT { - pub NodeName: ::windows::core::PCWSTR, - pub ImpactLevel: FABRIC_REPAIR_NODE_IMPACT_LEVEL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT {} -impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_NODE_IMPACT") - .field("NodeName", &self.NodeName) - .field("ImpactLevel", &self.ImpactLevel) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT {} -impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_NODE_IMPACT_LIST { - pub Count: u32, - pub Items: *const FABRIC_REPAIR_NODE_IMPACT, -} -impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT_LIST {} -impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_NODE_IMPACT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT_LIST {} -impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_RESULT_DESCRIPTION { - pub ResultStatus: FABRIC_REPAIR_TASK_RESULT, - pub ResultCode: ::windows::core::HRESULT, - pub ResultDetails: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_RESULT_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_RESULT_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_RESULT_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_RESULT_DESCRIPTION") - .field("ResultStatus", &self.ResultStatus) - .field("ResultCode", &self.ResultCode) - .field("ResultDetails", &self.ResultDetails) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_RESULT_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_RESULT_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_RESULT_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_RESULT_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER { - pub Kind: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_SCOPE_IDENTIFIER {} -impl ::core::clone::Clone for FABRIC_REPAIR_SCOPE_IDENTIFIER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_SCOPE_IDENTIFIER") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_SCOPE_IDENTIFIER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_SCOPE_IDENTIFIER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_SCOPE_IDENTIFIER {} -impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TARGET_DESCRIPTION { - pub Kind: FABRIC_REPAIR_TARGET_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TARGET_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_TARGET_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TARGET_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TARGET_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TARGET_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TARGET_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_TARGET_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK { - pub Scope: *const FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub TaskId: ::windows::core::PCWSTR, - pub Version: i64, - pub Description: ::windows::core::PCWSTR, - pub State: FABRIC_REPAIR_TASK_STATE, - pub Flags: u32, - pub Action: ::windows::core::PCWSTR, - pub Target: *const FABRIC_REPAIR_TARGET_DESCRIPTION, - pub ExecutorState: *mut FABRIC_REPAIR_EXECUTOR_STATE, - pub Impact: *mut FABRIC_REPAIR_IMPACT_DESCRIPTION, - pub Result: *mut FABRIC_REPAIR_RESULT_DESCRIPTION, - pub History: *const FABRIC_REPAIR_TASK_HISTORY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK") - .field("Scope", &self.Scope) - .field("TaskId", &self.TaskId) - .field("Version", &self.Version) - .field("Description", &self.Description) - .field("State", &self.State) - .field("Flags", &self.Flags) - .field("Action", &self.Action) - .field("Target", &self.Target) - .field("ExecutorState", &self.ExecutorState) - .field("Impact", &self.Impact) - .field("Result", &self.Result) - .field("History", &self.History) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK {} -impl ::core::default::Default for FABRIC_REPAIR_TASK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_EX1 { - pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, - pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, - pub PreparingHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, - pub RestoringHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_EX1 {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_EX1") - .field( - "PerformPreparingHealthCheck", - &self.PerformPreparingHealthCheck, - ) - .field( - "PerformRestoringHealthCheck", - &self.PerformRestoringHealthCheck, - ) - .field("PreparingHealthCheckState", &self.PreparingHealthCheckState) - .field("RestoringHealthCheckState", &self.RestoringHealthCheckState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_EX1 {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, - pub Version: i64, - pub Flags: u32, - pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, - pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION") - .field("Scope", &self.Scope) - .field("RepairTaskId", &self.RepairTaskId) - .field("Version", &self.Version) - .field("Flags", &self.Flags) - .field( - "PerformPreparingHealthCheck", - &self.PerformPreparingHealthCheck, - ) - .field( - "PerformRestoringHealthCheck", - &self.PerformRestoringHealthCheck, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_HISTORY { - pub CreatedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub ClaimedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub PreparingUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub ApprovedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub ExecutingUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub RestoringUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub CompletedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_HISTORY") - .field("CreatedUtcTimestamp", &self.CreatedUtcTimestamp) - .field("ClaimedUtcTimestamp", &self.ClaimedUtcTimestamp) - .field("PreparingUtcTimestamp", &self.PreparingUtcTimestamp) - .field("ApprovedUtcTimestamp", &self.ApprovedUtcTimestamp) - .field("ExecutingUtcTimestamp", &self.ExecutingUtcTimestamp) - .field("RestoringUtcTimestamp", &self.RestoringUtcTimestamp) - .field("CompletedUtcTimestamp", &self.CompletedUtcTimestamp) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HISTORY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { - pub PreparingHealthCheckStartUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub PreparingHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub RestoringHealthCheckStartUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub RestoringHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY_EX1 {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_HISTORY_EX1") - .field( - "PreparingHealthCheckStartUtcTimestamp", - &self.PreparingHealthCheckStartUtcTimestamp, - ) - .field( - "PreparingHealthCheckEndUtcTimestamp", - &self.PreparingHealthCheckEndUtcTimestamp, - ) - .field( - "RestoringHealthCheckStartUtcTimestamp", - &self.RestoringHealthCheckStartUtcTimestamp, - ) - .field( - "RestoringHealthCheckEndUtcTimestamp", - &self.RestoringHealthCheckEndUtcTimestamp, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HISTORY_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY_EX1 {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_LIST { - pub Count: u32, - pub Items: *mut FABRIC_REPAIR_TASK, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_LIST {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_LIST {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub TaskIdFilter: ::windows::core::PCWSTR, - pub StateFilter: u32, - pub ExecutorFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPAIR_TASK_QUERY_DESCRIPTION") - .field("Scope", &self.Scope) - .field("TaskIdFilter", &self.TaskIdFilter) - .field("StateFilter", &self.StateFilter) - .field("ExecutorFilter", &self.ExecutorFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICAS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyReplicasPerPartition: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICAS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_REPLICAS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICAS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICAS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyReplicasPerPartition", - &self.MaxPercentUnhealthyReplicasPerPartition, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICAS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICAS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICAS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_REPLICAS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_QUEUE_STATUS { - pub QueueUtilizationPercentage: u32, - pub QueueMemorySize: i64, - pub FirstSequenceNumber: i64, - pub CompletedSequenceNumber: i64, - pub CommittedSequenceNumber: i64, - pub LastSequenceNumber: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_QUEUE_STATUS {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_QUEUE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_QUEUE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_QUEUE_STATUS") - .field( - "QueueUtilizationPercentage", - &self.QueueUtilizationPercentage, - ) - .field("QueueMemorySize", &self.QueueMemorySize) - .field("FirstSequenceNumber", &self.FirstSequenceNumber) - .field("CompletedSequenceNumber", &self.CompletedSequenceNumber) - .field("CommittedSequenceNumber", &self.CommittedSequenceNumber) - .field("LastSequenceNumber", &self.LastSequenceNumber) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_QUEUE_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_QUEUE_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_QUEUE_STATUS {} -impl ::core::default::Default for FABRIC_REPLICATOR_QUEUE_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_SETTINGS { - pub Flags: u32, - pub RetryIntervalMilliseconds: u32, - pub BatchAcknowledgementIntervalMilliseconds: u32, - pub ReplicatorAddress: ::windows::core::PCWSTR, - pub RequireServiceAck: ::windows::Win32::Foundation::BOOLEAN, - pub InitialReplicationQueueSize: u32, - pub MaxReplicationQueueSize: u32, - pub InitialCopyQueueSize: u32, - pub MaxCopyQueueSize: u32, - pub SecurityCredentials: *const FABRIC_SECURITY_CREDENTIALS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_SETTINGS") - .field("Flags", &self.Flags) - .field("RetryIntervalMilliseconds", &self.RetryIntervalMilliseconds) - .field( - "BatchAcknowledgementIntervalMilliseconds", - &self.BatchAcknowledgementIntervalMilliseconds, - ) - .field("ReplicatorAddress", &self.ReplicatorAddress) - .field("RequireServiceAck", &self.RequireServiceAck) - .field( - "InitialReplicationQueueSize", - &self.InitialReplicationQueueSize, - ) - .field("MaxReplicationQueueSize", &self.MaxReplicationQueueSize) - .field("InitialCopyQueueSize", &self.InitialCopyQueueSize) - .field("MaxCopyQueueSize", &self.MaxCopyQueueSize) - .field("SecurityCredentials", &self.SecurityCredentials) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS {} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_SETTINGS_EX1 { - pub MaxReplicationQueueMemorySize: u32, - pub SecondaryClearAcknowledgedOperations: ::windows::Win32::Foundation::BOOLEAN, - pub MaxReplicationMessageSize: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX1") - .field( - "MaxReplicationQueueMemorySize", - &self.MaxReplicationQueueMemorySize, - ) - .field( - "SecondaryClearAcknowledgedOperations", - &self.SecondaryClearAcknowledgedOperations, - ) - .field("MaxReplicationMessageSize", &self.MaxReplicationMessageSize) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_SETTINGS_EX2 { - pub UseStreamFaultsAndEndOfStreamOperationAck: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX2 {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX2") - .field( - "UseStreamFaultsAndEndOfStreamOperationAck", - &self.UseStreamFaultsAndEndOfStreamOperationAck, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX2 {} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_SETTINGS_EX3 { - pub InitialPrimaryReplicationQueueSize: u32, - pub MaxPrimaryReplicationQueueSize: u32, - pub MaxPrimaryReplicationQueueMemorySize: u32, - pub InitialSecondaryReplicationQueueSize: u32, - pub MaxSecondaryReplicationQueueSize: u32, - pub MaxSecondaryReplicationQueueMemorySize: u32, - pub PrimaryWaitForPendingQuorumsTimeoutMilliseconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX3 {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX3") - .field( - "InitialPrimaryReplicationQueueSize", - &self.InitialPrimaryReplicationQueueSize, - ) - .field( - "MaxPrimaryReplicationQueueSize", - &self.MaxPrimaryReplicationQueueSize, - ) - .field( - "MaxPrimaryReplicationQueueMemorySize", - &self.MaxPrimaryReplicationQueueMemorySize, - ) - .field( - "InitialSecondaryReplicationQueueSize", - &self.InitialSecondaryReplicationQueueSize, - ) - .field( - "MaxSecondaryReplicationQueueSize", - &self.MaxSecondaryReplicationQueueSize, - ) - .field( - "MaxSecondaryReplicationQueueMemorySize", - &self.MaxSecondaryReplicationQueueMemorySize, - ) - .field( - "PrimaryWaitForPendingQuorumsTimeoutMilliseconds", - &self.PrimaryWaitForPendingQuorumsTimeoutMilliseconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX3 {} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_SETTINGS_EX4 { - pub ReplicatorListenAddress: ::windows::core::PCWSTR, - pub ReplicatorPublishAddress: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX4 {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX4") - .field("ReplicatorListenAddress", &self.ReplicatorListenAddress) - .field("ReplicatorPublishAddress", &self.ReplicatorPublishAddress) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX4 {} -impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - pub Role: FABRIC_REPLICA_ROLE, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICATOR_STATUS_QUERY_RESULT") - .field("Role", &self.Role) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK { - pub ReplicaOrInstanceId: i64, - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_CHUNK") - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub ReplicaOrInstanceIdFilter: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("ReplicaOrInstanceIdFilter", &self.ReplicaOrInstanceIdFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_REPLICA_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_REPLICA_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_INFORMATION { - pub Id: i64, - pub Role: FABRIC_REPLICA_ROLE, - pub Status: FABRIC_REPLICA_STATUS, - pub ReplicatorAddress: ::windows::core::PCWSTR, - pub CurrentProgress: i64, - pub CatchUpCapability: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_INFORMATION {} -impl ::core::clone::Clone for FABRIC_REPLICA_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_INFORMATION") - .field("Id", &self.Id) - .field("Role", &self.Role) - .field("Status", &self.Status) - .field("ReplicatorAddress", &self.ReplicatorAddress) - .field("CurrentProgress", &self.CurrentProgress) - .field("CatchUpCapability", &self.CatchUpCapability) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION {} -impl ::core::default::Default for FABRIC_REPLICA_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_INFORMATION_EX1 { - pub MustCatchup: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_INFORMATION_EX1 {} -impl ::core::clone::Clone for FABRIC_REPLICA_INFORMATION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_INFORMATION_EX1") - .field("MustCatchup", &self.MustCatchup) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_INFORMATION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION_EX1 {} -impl ::core::default::Default for FABRIC_REPLICA_INFORMATION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_LOAD_INFORMATION { - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub LoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_LOAD_INFORMATION {} -impl ::core::clone::Clone for FABRIC_REPLICA_LOAD_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_LOAD_INFORMATION") - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("LoadMetricReports", &self.LoadMetricReports) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_LOAD_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION {} -impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_SET_CONFIGURATION { - pub ReplicaCount: u32, - pub Replicas: *const FABRIC_REPLICA_INFORMATION, - pub WriteQuorum: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_SET_CONFIGURATION {} -impl ::core::clone::Clone for FABRIC_REPLICA_SET_CONFIGURATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_SET_CONFIGURATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_SET_CONFIGURATION") - .field("ReplicaCount", &self.ReplicaCount) - .field("Replicas", &self.Replicas) - .field("WriteQuorum", &self.WriteQuorum) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_SET_CONFIGURATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_SET_CONFIGURATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_SET_CONFIGURATION {} -impl ::core::default::Default for FABRIC_REPLICA_SET_CONFIGURATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_REPLICA_STATUS_QUERY_RESULT { - pub Kind: FABRIC_SERVICE_REPLICA_KIND, - pub Value: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_REPLICA_STATUS_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_REPLICA_STATUS_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_REPLICA_STATUS_QUERY_RESULT") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_STATUS_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_REPLICA_STATUS_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_REPLICA_STATUS_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_REPLICA_STATUS_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESOLVED_SERVICE_ENDPOINT { - pub Address: ::windows::core::PCWSTR, - pub Role: FABRIC_SERVICE_ENDPOINT_ROLE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESOLVED_SERVICE_ENDPOINT {} -impl ::core::clone::Clone for FABRIC_RESOLVED_SERVICE_ENDPOINT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_ENDPOINT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESOLVED_SERVICE_ENDPOINT") - .field("Address", &self.Address) - .field("Role", &self.Role) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESOLVED_SERVICE_ENDPOINT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_ENDPOINT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_ENDPOINT {} -impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_ENDPOINT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESOLVED_SERVICE_PARTITION { - pub Info: FABRIC_SERVICE_PARTITION_INFORMATION, - pub EndpointCount: u32, - pub Endpoints: *mut FABRIC_RESOLVED_SERVICE_ENDPOINT, - pub ServiceName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESOLVED_SERVICE_PARTITION {} -impl ::core::clone::Clone for FABRIC_RESOLVED_SERVICE_PARTITION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_PARTITION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESOLVED_SERVICE_PARTITION") - .field("Info", &self.Info) - .field("EndpointCount", &self.EndpointCount) - .field("Endpoints", &self.Endpoints) - .field("ServiceName", &self.ServiceName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESOLVED_SERVICE_PARTITION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_PARTITION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_PARTITION {} -impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_PARTITION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("CodePackageName", &self.CodePackageName) - .field("CodePackageInstanceId", &self.CodePackageInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - pub Kind: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, - pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME") - .field("NodeName", &self.NodeName) - .field("ApplicationName", &self.ApplicationName) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("CodePackageName", &self.CodePackageName) - .field("CodePackageInstanceId", &self.CodePackageInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} -impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1") - .field( - "ServicePackageActivationId", - &self.ServicePackageActivationId, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 -{ - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1, - >(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} -impl ::core::default::Default - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 -{ - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION2 { - pub Kind: FABRIC_RESTART_NODE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - pub CreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_EX1") - .field("CreateFabricDump", &self.CreateFabricDump) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub ShouldCreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("ShouldCreateFabricDump", &self.ShouldCreateFabricDump) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_NODE_STATUS { - pub NodeResult: *mut FABRIC_NODE_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_NODE_STATUS {} -impl ::core::clone::Clone for FABRIC_RESTART_NODE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_NODE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_NODE_STATUS") - .field("NodeResult", &self.NodeResult) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_NODE_STATUS {} -impl ::core::default::Default for FABRIC_RESTART_NODE_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RESTART_REPLICA_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, - pub ReplicaOrInstanceId: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RESTART_REPLICA_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_RESTART_REPLICA_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RESTART_REPLICA_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RESTART_REPLICA_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("PartitionId", &self.PartitionId) - .field("ReplicaOrInstanceId", &self.ReplicaOrInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RESTART_REPLICA_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RESTART_REPLICA_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RESTART_REPLICA_DESCRIPTION {} -impl ::core::default::Default for FABRIC_RESTART_REPLICA_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - pub FailureAction: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION, - pub HealthCheckWaitDurationInSeconds: u32, - pub HealthCheckRetryTimeoutInSeconds: u32, - pub UpgradeTimeoutInSeconds: u32, - pub UpgradeDomainTimeoutInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_MONITORING_POLICY") - .field("FailureAction", &self.FailureAction) - .field( - "HealthCheckWaitDurationInSeconds", - &self.HealthCheckWaitDurationInSeconds, - ) - .field( - "HealthCheckRetryTimeoutInSeconds", - &self.HealthCheckRetryTimeoutInSeconds, - ) - .field("UpgradeTimeoutInSeconds", &self.UpgradeTimeoutInSeconds) - .field( - "UpgradeDomainTimeoutInSeconds", - &self.UpgradeDomainTimeoutInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - pub HealthCheckStableDurationInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1") - .field( - "HealthCheckStableDurationInSeconds", - &self.HealthCheckStableDurationInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - pub RollingUpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub ForceRestart: ::windows::Win32::Foundation::BOOLEAN, - pub UpgradeReplicaSetCheckTimeoutInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION") - .field("RollingUpgradeMode", &self.RollingUpgradeMode) - .field("ForceRestart", &self.ForceRestart) - .field( - "UpgradeReplicaSetCheckTimeoutInSeconds", - &self.UpgradeReplicaSetCheckTimeoutInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - pub MonitoringPolicy: *const FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, - pub HealthPolicy: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1") - .field("MonitoringPolicy", &self.MonitoringPolicy) - .field("HealthPolicy", &self.HealthPolicy) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - pub EnableDeltaHealthEvaluation: ::windows::Win32::Foundation::BOOLEAN, - pub UpgradeHealthPolicy: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2") - .field( - "EnableDeltaHealthEvaluation", - &self.EnableDeltaHealthEvaluation, - ) - .field("UpgradeHealthPolicy", &self.UpgradeHealthPolicy) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3") - .field( - "ApplicationHealthPolicyMap", - &self.ApplicationHealthPolicyMap, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_RUNAS_POLICY_DESCRIPTION { - pub UserName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_RUNAS_POLICY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_RUNAS_POLICY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_RUNAS_POLICY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_RUNAS_POLICY_DESCRIPTION") - .field("UserName", &self.UserName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_RUNAS_POLICY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_RUNAS_POLICY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_RUNAS_POLICY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_RUNAS_POLICY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SAFETY_CHECK { - pub Kind: FABRIC_SAFETY_CHECK_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SAFETY_CHECK") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SAFETY_CHECK_LIST { - pub Count: u32, - pub Items: *const FABRIC_SAFETY_CHECK, -} -impl ::core::marker::Copy for FABRIC_SAFETY_CHECK_LIST {} -impl ::core::clone::Clone for FABRIC_SAFETY_CHECK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SAFETY_CHECK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK_LIST {} -impl ::core::default::Default for FABRIC_SAFETY_CHECK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_MECHANISM { - pub ScalingMechanismKind: FABRIC_SCALING_MECHANISM_KIND, - pub ScalingMechanismDescription: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM {} -impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_MECHANISM") - .field("ScalingMechanismKind", &self.ScalingMechanismKind) - .field( - "ScalingMechanismDescription", - &self.ScalingMechanismDescription, - ) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM {} -impl ::core::default::Default for FABRIC_SCALING_MECHANISM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - pub MaximumPartitionCount: i32, - pub MinimumPartitionCount: i32, - pub ScaleIncrement: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION {} -impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION") - .field("MaximumPartitionCount", &self.MaximumPartitionCount) - .field("MinimumPartitionCount", &self.MinimumPartitionCount) - .field("ScaleIncrement", &self.ScaleIncrement) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi - for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION -{ - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION {} -impl ::core::default::Default for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - pub MaximumInstanceCount: i32, - pub MinimumInstanceCount: i32, - pub ScaleIncrement: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT {} -impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT") - .field("MaximumInstanceCount", &self.MaximumInstanceCount) - .field("MinimumInstanceCount", &self.MinimumInstanceCount) - .field("ScaleIncrement", &self.ScaleIncrement) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT {} -impl ::core::default::Default for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_TRIGGER { - pub ScalingTriggerKind: FABRIC_SCALING_TRIGGER_KIND, - pub ScalingTriggerDescription: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER {} -impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_TRIGGER") - .field("ScalingTriggerKind", &self.ScalingTriggerKind) - .field("ScalingTriggerDescription", &self.ScalingTriggerDescription) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER {} -impl ::core::default::Default for FABRIC_SCALING_TRIGGER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - pub MetricName: ::windows::core::PCWSTR, - pub LowerLoadThreshold: f64, - pub UpperLoadThreshold: f64, - pub ScaleIntervalInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD {} -impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD") - .field("MetricName", &self.MetricName) - .field("LowerLoadThreshold", &self.LowerLoadThreshold) - .field("UpperLoadThreshold", &self.UpperLoadThreshold) - .field("ScaleIntervalInSeconds", &self.ScaleIntervalInSeconds) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD {} -impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - pub MetricName: ::windows::core::PCWSTR, - pub LowerLoadThreshold: f64, - pub UpperLoadThreshold: f64, - pub ScaleIntervalInSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD {} -impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD") - .field("MetricName", &self.MetricName) - .field("LowerLoadThreshold", &self.LowerLoadThreshold) - .field("UpperLoadThreshold", &self.UpperLoadThreshold) - .field("ScaleIntervalInSeconds", &self.ScaleIntervalInSeconds) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD {} -impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - pub UseOnlyPrimaryLoad: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} -impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1") - .field("UseOnlyPrimaryLoad", &self.UseOnlyPrimaryLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} -impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, - pub LastReplicationOperationReceivedTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub IsInBuild: ::windows::Win32::Foundation::BOOLEAN, - pub CopyQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, - pub LastCopyOperationReceivedTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub LastAcknowledgementSentTimeUtc: ::windows::Win32::Foundation::FILETIME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT") - .field("ReplicationQueueStatus", &self.ReplicationQueueStatus) - .field( - "LastReplicationOperationReceivedTimeUtc", - &self.LastReplicationOperationReceivedTimeUtc, - ) - .field("IsInBuild", &self.IsInBuild) - .field("CopyQueueStatus", &self.CopyQueueStatus) - .field( - "LastCopyOperationReceivedTimeUtc", - &self.LastCopyOperationReceivedTimeUtc, - ) - .field( - "LastAcknowledgementSentTimeUtc", - &self.LastAcknowledgementSentTimeUtc, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECRET { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, - pub Kind: ::windows::core::PCWSTR, - pub ContentType: ::windows::core::PCWSTR, -} -impl ::core::marker::Copy for FABRIC_SECRET {} -impl ::core::clone::Clone for FABRIC_SECRET { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECRET { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECRET") - .field("Name", &self.Name) - .field("Version", &self.Version) - .field("Value", &self.Value) - .field("Kind", &self.Kind) - .field("ContentType", &self.ContentType) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECRET { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECRET { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECRET {} -impl ::core::default::Default for FABRIC_SECRET { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECRET_LIST { - pub Count: u32, - pub Items: *mut FABRIC_SECRET, -} -impl ::core::marker::Copy for FABRIC_SECRET_LIST {} -impl ::core::clone::Clone for FABRIC_SECRET_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECRET_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECRET_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECRET_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECRET_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECRET_LIST {} -impl ::core::default::Default for FABRIC_SECRET_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECRET_REFERENCE { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, -} -impl ::core::marker::Copy for FABRIC_SECRET_REFERENCE {} -impl ::core::clone::Clone for FABRIC_SECRET_REFERENCE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECRET_REFERENCE") - .field("Name", &self.Name) - .field("Version", &self.Version) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECRET_REFERENCE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE {} -impl ::core::default::Default for FABRIC_SECRET_REFERENCE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECRET_REFERENCE_LIST { - pub Count: u32, - pub Items: *mut FABRIC_SECRET_REFERENCE, -} -impl ::core::marker::Copy for FABRIC_SECRET_REFERENCE_LIST {} -impl ::core::clone::Clone for FABRIC_SECRET_REFERENCE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECRET_REFERENCE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECRET_REFERENCE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE_LIST {} -impl ::core::default::Default for FABRIC_SECRET_REFERENCE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECURITY_CREDENTIALS { - pub Kind: FABRIC_SECURITY_CREDENTIAL_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SECURITY_CREDENTIALS {} -impl ::core::clone::Clone for FABRIC_SECURITY_CREDENTIALS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIALS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECURITY_CREDENTIALS") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_CREDENTIALS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECURITY_CREDENTIALS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECURITY_CREDENTIALS {} -impl ::core::default::Default for FABRIC_SECURITY_CREDENTIALS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECURITY_GROUP_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Sid: ::windows::core::PCWSTR, - pub DomainGroupMembers: *const FABRIC_STRING_LIST, - pub SystemGroupMembers: *const FABRIC_STRING_LIST, - pub DomainUserMembers: *const FABRIC_STRING_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SECURITY_GROUP_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SECURITY_GROUP_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECURITY_GROUP_DESCRIPTION") - .field("Name", &self.Name) - .field("Sid", &self.Sid) - .field("DomainGroupMembers", &self.DomainGroupMembers) - .field("SystemGroupMembers", &self.SystemGroupMembers) - .field("DomainUserMembers", &self.DomainUserMembers) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_GROUP_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SECURITY_GROUP_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECURITY_GROUP_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECURITY_USER_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Sid: ::windows::core::PCWSTR, - pub ParentSystemGroups: *const FABRIC_STRING_LIST, - pub ParentApplicationGroups: *const FABRIC_STRING_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SECURITY_USER_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SECURITY_USER_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECURITY_USER_DESCRIPTION") - .field("Name", &self.Name) - .field("Sid", &self.Sid) - .field("ParentSystemGroups", &self.ParentSystemGroups) - .field("ParentApplicationGroups", &self.ParentApplicationGroups) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_USER_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SECURITY_USER_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SECURITY_USER_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SECURITY_USER_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SECURITY_USER_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SEED_NODE_SAFETY_CHECK { - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SEED_NODE_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_SEED_NODE_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SEED_NODE_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SEED_NODE_SAFETY_CHECK") - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SEED_NODE_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SEED_NODE_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SEED_NODE_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_SEED_NODE_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SELECTED_PARTITION { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SELECTED_PARTITION {} -impl ::core::clone::Clone for FABRIC_SELECTED_PARTITION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SELECTED_PARTITION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SELECTED_PARTITION") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SELECTED_PARTITION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SELECTED_PARTITION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SELECTED_PARTITION {} -impl ::core::default::Default for FABRIC_SELECTED_PARTITION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyServices: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICES_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_SERVICES_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICES_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICES_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyServices", - &self.MaxPercentUnhealthyServices, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICES_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICES_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICES_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_SERVICES_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_CORRELATION_DESCRIPTION { - pub ServiceName: *mut u16, - pub Scheme: FABRIC_SERVICE_CORRELATION_SCHEME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_CORRELATION_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_CORRELATION_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("Scheme", &self.Scheme) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_CORRELATION_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_DESCRIPTION { - pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceName: *mut u16, - pub ServiceDnsName: ::windows::core::PCWSTR, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub InitializationDataSize: u32, - pub InitializationData: *mut u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceName", &self.ServiceName) - .field("ServiceDnsName", &self.ServiceDnsName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field( - "ServicePackageActivationMode", - &self.ServicePackageActivationMode, - ) - .field("InitializationDataSize", &self.InitializationDataSize) - .field("InitializationData", &self.InitializationData) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_DESCRIPTION { - pub Description: *mut FABRIC_SERVICE_DESCRIPTION, - pub MemberCount: u32, - pub MemberDescriptions: *mut FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_DESCRIPTION") - .field("Description", &self.Description) - .field("MemberCount", &self.MemberCount) - .field("MemberDescriptions", &self.MemberDescriptions) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub InitializationDataSize: u32, - pub InitializationData: *mut u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field( - "ServicePackageActivationMode", - &self.ServicePackageActivationMode, - ) - .field("InitializationDataSize", &self.InitializationDataSize) - .field("InitializationData", &self.InitializationData) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - pub ServiceType: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub InitializationDataSize: u32, - pub InitializationData: *const u8, - pub MetricCount: u32, - pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION") - .field("ServiceType", &self.ServiceType) - .field("ServiceName", &self.ServiceName) - .field("InitializationDataSize", &self.InitializationDataSize) - .field("InitializationData", &self.InitializationData) - .field("MetricCount", &self.MetricCount) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - pub ServiceType: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM") - .field("ServiceType", &self.ServiceType) - .field("ServiceName", &self.ServiceName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceNameFilter: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceNameFilter", &self.ServiceNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub Members: *mut FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("Members", &self.Members) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub ServiceGroupTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field( - "ServiceGroupTypeNameFilter", - &self.ServiceGroupTypeNameFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - pub ServiceGroupMemberTypeDescription: *mut FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM") - .field( - "ServiceGroupMemberTypeDescription", - &self.ServiceGroupMemberTypeDescription, - ) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("ServiceManifestName", &self.ServiceManifestName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - pub Description: *const FABRIC_SERVICE_TYPE_DESCRIPTION, - pub Members: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST, - pub UseImplicitFactory: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION") - .field("Description", &self.Description) - .field("Members", &self.Members) - .field("UseImplicitFactory", &self.UseImplicitFactory) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION") - .field("ServiceTypeName", &self.ServiceTypeName) - .field("LoadMetrics", &self.LoadMetrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - pub Description: *mut FABRIC_SERVICE_UPDATE_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION") - .field("Description", &self.Description) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH { - pub ServiceName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub PartitionHealthStates: *const FABRIC_PARTITION_HEALTH_STATE_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH") - .field("ServiceName", &self.ServiceName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("PartitionHealthStates", &self.PartitionHealthStates) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub ServiceName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("ServiceName", &self.ServiceName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_EX2 { - pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_EX2 {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_EX2") - .field("HealthStatistics", &self.HealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX2 {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - pub ServiceName: *mut u16, - pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, - pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, - pub PartitionsFilter: *const FABRIC_PARTITION_HEALTH_STATES_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("HealthPolicy", &self.HealthPolicy) - .field("EventsFilter", &self.EventsFilter) - .field("PartitionsFilter", &self.PartitionsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - pub HealthStatisticsFilter: *const FABRIC_SERVICE_HEALTH_STATISTICS_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1") - .field("HealthStatisticsFilter", &self.HealthStatisticsFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_REPORT { - pub ServiceName: *mut u16, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_REPORT") - .field("ServiceName", &self.ServiceName) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE { - pub ServiceName: *mut u16, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE") - .field("ServiceName", &self.ServiceName) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATES_FILTER { - pub HealthStateFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATES_FILTER {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATES_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATES_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATES_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATES_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATES_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATES_FILTER {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATES_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK { - pub ServiceName: *mut u16, - pub HealthState: FABRIC_HEALTH_STATE, - pub PartitionHealthStateChunks: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_CHUNK {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_CHUNK") - .field("ServiceName", &self.ServiceName) - .field("HealthState", &self.HealthState) - .field( - "PartitionHealthStateChunks", - &self.PartitionHealthStateChunks, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK, - pub TotalCount: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .field("TotalCount", &self.TotalCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER { - pub HealthStateFilter: u32, - pub ServiceNameFilter: *mut u16, - pub PartitionFilters: *const FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_FILTER {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_FILTER") - .field("HealthStateFilter", &self.HealthStateFilter) - .field("ServiceNameFilter", &self.ServiceNameFilter) - .field("PartitionFilters", &self.PartitionFilters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_HEALTH_STATE_FILTER, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATE_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_HEALTH_STATE, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATE_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATE_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATE_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} -impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_HEALTH_STATISTICS_FILTER") - .field("ExcludeHealthStatistics", &self.ExcludeHealthStatistics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} -impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Weight: FABRIC_SERVICE_LOAD_METRIC_WEIGHT, - pub PrimaryDefaultLoad: u32, - pub SecondaryDefaultLoad: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION") - .field("Name", &self.Name) - .field("Weight", &self.Weight) - .field("PrimaryDefaultLoad", &self.PrimaryDefaultLoad) - .field("SecondaryDefaultLoad", &self.SecondaryDefaultLoad) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_NAME_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_NAME_QUERY_RESULT { - pub ServiceName: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_NAME_QUERY_RESULT {} -impl ::core::clone::Clone for FABRIC_SERVICE_NAME_QUERY_RESULT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_RESULT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_NAME_QUERY_RESULT") - .field("ServiceName", &self.ServiceName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NAME_QUERY_RESULT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_RESULT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_RESULT {} -impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_RESULT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_NOTIFICATION { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub EndpointCount: u32, - pub Endpoints: *mut FABRIC_RESOLVED_SERVICE_ENDPOINT, - pub PartitionInfo: *mut FABRIC_SERVICE_PARTITION_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION {} -impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_NOTIFICATION") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("EndpointCount", &self.EndpointCount) - .field("Endpoints", &self.Endpoints) - .field("PartitionInfo", &self.PartitionInfo) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION {} -impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - pub Name: *mut u16, - pub Flags: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION") - .field("Name", &self.Name) - .field("Flags", &self.Flags) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PARTITION_INFORMATION { - pub Kind: FABRIC_SERVICE_PARTITION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_INFORMATION {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PARTITION_INFORMATION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_INFORMATION {} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - pub ServiceName: *mut u16, - pub PartitionIdFilter: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("PartitionIdFilter", &self.PartitionIdFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - pub Type: FABRIC_PLACEMENT_POLICY_TYPE, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION") - .field("Type", &self.Type) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - pub PolicyCount: u32, - pub Policies: *mut FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_PLACEMENT_POLICY_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_PLACEMENT_POLICY_LIST") - .field("PolicyCount", &self.PolicyCount) - .field("Policies", &self.Policies) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceNameFilter: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceNameFilter", &self.ServiceNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX1") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX2") - .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - pub MaxResults: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_DESCRIPTION_EX3") - .field("MaxResults", &self.MaxResults) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_RESULT_ITEM { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_RESULT_ITEM") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, - pub ReplicaIdOrInstanceIdFilter: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION") - .field("PartitionId", &self.PartitionId) - .field( - "ReplicaIdOrInstanceIdFilter", - &self.ReplicaIdOrInstanceIdFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - pub ReplicaStatusFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1") - .field("ReplicaStatusFilter", &self.ReplicaStatusFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - pub ContinuationToken: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2") - .field("ContinuationToken", &self.ContinuationToken) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_SCALING_POLICY { - pub ServiceScalingPolicyTrigger: FABRIC_SCALING_TRIGGER, - pub ServiceScalingPolicyMechanism: FABRIC_SCALING_MECHANISM, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_SCALING_POLICY {} -impl ::core::clone::Clone for FABRIC_SERVICE_SCALING_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_SCALING_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_SCALING_POLICY") - .field( - "ServiceScalingPolicyTrigger", - &self.ServiceScalingPolicyTrigger, - ) - .field( - "ServiceScalingPolicyMechanism", - &self.ServiceScalingPolicyMechanism, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_SCALING_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_SCALING_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_SCALING_POLICY {} -impl ::core::default::Default for FABRIC_SERVICE_SCALING_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_DESCRIPTION { - pub Kind: FABRIC_SERVICE_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION") - .field("Name", &self.Name) - .field("Value", &self.Value) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY { - pub MaxPercentUnhealthyServices: u8, - pub MaxPercentUnhealthyPartitionsPerService: u8, - pub MaxPercentUnhealthyReplicasPerPartition: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY") - .field( - "MaxPercentUnhealthyServices", - &self.MaxPercentUnhealthyServices, - ) - .field( - "MaxPercentUnhealthyPartitionsPerService", - &self.MaxPercentUnhealthyPartitionsPerService, - ) - .field( - "MaxPercentUnhealthyReplicasPerPartition", - &self.MaxPercentUnhealthyReplicasPerPartition, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - pub Count: u32, - pub Items: *mut FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM") - .field("ServiceTypeName", &self.ServiceTypeName) - .field("ServiceTypeHealthPolicy", &self.ServiceTypeHealthPolicy) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field("ServiceTypeNameFilter", &self.ServiceTypeNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - pub ServiceTypeDescription: *mut FABRIC_SERVICE_TYPE_DESCRIPTION, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM") - .field("ServiceTypeDescription", &self.ServiceTypeDescription) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1") - .field("ServiceManifestName", &self.ServiceManifestName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2") - .field("IsServiceGroup", &self.IsServiceGroup) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *const FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM, -} -impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {} -impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SERVICE_UPDATE_DESCRIPTION { - pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SERVICE_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SERVICE_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SERVICE_UPDATE_DESCRIPTION") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SERVICE_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SERVICE_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SINGLETON_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SINGLETON_PARTITION_INFORMATION {} -impl ::core::clone::Clone for FABRIC_SINGLETON_PARTITION_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SINGLETON_PARTITION_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SINGLETON_PARTITION_INFORMATION") - .field("Id", &self.Id) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SINGLETON_PARTITION_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SINGLETON_PARTITION_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SINGLETON_PARTITION_INFORMATION {} -impl ::core::default::Default for FABRIC_SINGLETON_PARTITION_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STARTED_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STARTED_EVENT {} -impl ::core::clone::Clone for FABRIC_STARTED_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STARTED_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STARTED_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("ChaosParameters", &self.ChaosParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STARTED_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STARTED_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STARTED_EVENT {} -impl ::core::default::Default for FABRIC_STARTED_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub ClusterConfigPath: ::windows::core::PCWSTR, - pub RollbackOnFailure: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_APPROVED_UPGRADES_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("ClusterConfigPath", &self.ClusterConfigPath) - .field("RollbackOnFailure", &self.RollbackOnFailure) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_CHAOS_DESCRIPTION { - pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_CHAOS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_CHAOS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_CHAOS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_CHAOS_DESCRIPTION") - .field("ChaosParameters", &self.ChaosParameters) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_CHAOS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_CHAOS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_CHAOS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_CHAOS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, - pub ClusterConnectionPort: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_NODE_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) - .field("ClusterConnectionPort", &self.ClusterConnectionPort) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_NODE_DESCRIPTION2 { - pub Kind: FABRIC_START_NODE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_NODE_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, - pub ClusterConnectionPort: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("IPAddressOrFQDN", &self.IPAddressOrFQDN) - .field("ClusterConnectionPort", &self.ClusterConnectionPort) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_NODE_STATUS { - pub NodeResult: *mut FABRIC_NODE_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_NODE_STATUS {} -impl ::core::clone::Clone for FABRIC_START_NODE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_NODE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_NODE_STATUS") - .field("NodeResult", &self.NodeResult) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_NODE_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_NODE_STATUS {} -impl ::core::default::Default for FABRIC_START_NODE_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, - pub DataLossMode: FABRIC_DATA_LOSS_MODE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("PartitionSelector", &self.PartitionSelector) - .field("DataLossMode", &self.DataLossMode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, - pub QuorumLossMode: FABRIC_QUORUM_LOSS_MODE, - pub QuorumLossDurationInMilliSeconds: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("PartitionSelector", &self.PartitionSelector) - .field("QuorumLossMode", &self.QuorumLossMode) - .field( - "QuorumLossDurationInMilliSeconds", - &self.QuorumLossDurationInMilliSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_PARTITION_RESTART_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, - pub RestartPartitionMode: FABRIC_RESTART_PARTITION_MODE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_PARTITION_RESTART_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_PARTITION_RESTART_DESCRIPTION") - .field("OperationId", &self.OperationId) - .field("PartitionSelector", &self.PartitionSelector) - .field("RestartPartitionMode", &self.RestartPartitionMode) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_PARTITION_RESTART_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_UPGRADE_DESCRIPTION { - pub ClusterConfig: ::windows::core::PCWSTR, - pub HealthCheckRetryTimeoutInSeconds: u32, - pub HealthCheckWaitDurationInSeconds: u32, - pub HealthCheckStableDurationInSeconds: u32, - pub UpgradeDomainTimeoutInSeconds: u32, - pub UpgradeTimeoutInSeconds: u32, - pub MaxPercentUnhealthyApplications: u8, - pub MaxPercentUnhealthyNodes: u8, - pub MaxPercentDeltaUnhealthyNodes: u8, - pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_UPGRADE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_START_UPGRADE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_UPGRADE_DESCRIPTION") - .field("ClusterConfig", &self.ClusterConfig) - .field( - "HealthCheckRetryTimeoutInSeconds", - &self.HealthCheckRetryTimeoutInSeconds, - ) - .field( - "HealthCheckWaitDurationInSeconds", - &self.HealthCheckWaitDurationInSeconds, - ) - .field( - "HealthCheckStableDurationInSeconds", - &self.HealthCheckStableDurationInSeconds, - ) - .field( - "UpgradeDomainTimeoutInSeconds", - &self.UpgradeDomainTimeoutInSeconds, - ) - .field("UpgradeTimeoutInSeconds", &self.UpgradeTimeoutInSeconds) - .field( - "MaxPercentUnhealthyApplications", - &self.MaxPercentUnhealthyApplications, - ) - .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) - .field( - "MaxPercentDeltaUnhealthyNodes", - &self.MaxPercentDeltaUnhealthyNodes, - ) - .field( - "MaxPercentUpgradeDomainDeltaUnhealthyNodes", - &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_UPGRADE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_START_UPGRADE_DESCRIPTION_EX1") - .field( - "ApplicationHealthPolicyMap", - &self.ApplicationHealthPolicyMap, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub InitializationDataSize: u32, - pub InitializationData: *mut u8, - pub PartitionScheme: FABRIC_PARTITION_SCHEME, - pub PartitionSchemeDescription: *mut ::core::ffi::c_void, - pub TargetReplicaSetSize: i32, - pub MinReplicaSetSize: i32, - pub PlacementConstraints: ::windows::core::PCWSTR, - pub CorrelationCount: u32, - pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, - pub MetricCount: u32, - pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("InitializationDataSize", &self.InitializationDataSize) - .field("InitializationData", &self.InitializationData) - .field("PartitionScheme", &self.PartitionScheme) - .field( - "PartitionSchemeDescription", - &self.PartitionSchemeDescription, - ) - .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) - .field("MinReplicaSetSize", &self.MinReplicaSetSize) - .field("PlacementConstraints", &self.PlacementConstraints) - .field("CorrelationCount", &self.CorrelationCount) - .field("Correlations", &self.Correlations) - .field("MetricCount", &self.MetricCount) - .field("Metrics", &self.Metrics) - .field("HasPersistedState", &self.HasPersistedState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub FailoverSettings: *mut FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1") - .field("PolicyList", &self.PolicyList) - .field("FailoverSettings", &self.FailoverSettings) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, - pub DefaultMoveCost: FABRIC_MOVE_COST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2") - .field( - "IsDefaultMoveCostSpecified", - &self.IsDefaultMoveCostSpecified, - ) - .field("DefaultMoveCost", &self.DefaultMoveCost) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub ServiceDnsName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3") - .field( - "ServicePackageActivationMode", - &self.ServicePackageActivationMode, - ) - .field("ServiceDnsName", &self.ServiceDnsName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - pub ScalingPolicyCount: u32, - pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4") - .field("ScalingPolicyCount", &self.ScalingPolicyCount) - .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - pub Flags: u32, - pub ReplicaRestartWaitDurationSeconds: u32, - pub QuorumLossWaitDurationSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS") - .field("Flags", &self.Flags) - .field( - "ReplicaRestartWaitDurationSeconds", - &self.ReplicaRestartWaitDurationSeconds, - ) - .field( - "QuorumLossWaitDurationSeconds", - &self.QuorumLossWaitDurationSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - pub StandByReplicaKeepDurationSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1") - .field( - "StandByReplicaKeepDurationSeconds", - &self.StandByReplicaKeepDurationSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, - pub TargetReplicaSetSize: u32, - pub MinReplicaSetSize: u32, - pub HealthState: FABRIC_HEALTH_STATE, - pub PartitionStatus: FABRIC_QUERY_SERVICE_PARTITION_STATUS, - pub LastQuorumLossDurationInSeconds: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM") - .field("PartitionInformation", &self.PartitionInformation) - .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) - .field("MinReplicaSetSize", &self.MinReplicaSetSize) - .field("HealthState", &self.HealthState) - .field("PartitionStatus", &self.PartitionStatus) - .field( - "LastQuorumLossDurationInSeconds", - &self.LastQuorumLossDurationInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - pub PrimaryEpoch: FABRIC_EPOCH, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1") - .field("PrimaryEpoch", &self.PrimaryEpoch) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("HasPersistedState", &self.HasPersistedState) - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1") - .field("ServiceStatus", &self.ServiceStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2") - .field("IsServiceGroup", &self.IsServiceGroup) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH") - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT") - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, - pub ReplicaId: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE") - .field("PartitionId", &self.PartitionId) - .field("ReplicaId", &self.ReplicaId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - pub ReplicaId: i64, - pub ReplicaRole: FABRIC_REPLICA_ROLE, - pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ReplicaAddress: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub LastInBuildDurationInSeconds: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM") - .field("ReplicaId", &self.ReplicaId) - .field("ReplicaRole", &self.ReplicaRole) - .field("ReplicaStatus", &self.ReplicaStatus) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("ReplicaAddress", &self.ReplicaAddress) - .field("NodeName", &self.NodeName) - .field( - "LastInBuildDurationInSeconds", - &self.LastInBuildDurationInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub PlacementConstraints: ::windows::core::PCWSTR, - pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, - pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, - pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION") - .field("ServiceTypeName", &self.ServiceTypeName) - .field("PlacementConstraints", &self.PlacementConstraints) - .field("LoadMetrics", &self.LoadMetrics) - .field("Extensions", &self.Extensions) - .field("HasPersistedState", &self.HasPersistedState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1") - .field("PolicyList", &self.PolicyList) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - pub Flags: u32, - pub TargetReplicaSetSize: i32, - pub ReplicaRestartWaitDurationSeconds: u32, - pub QuorumLossWaitDurationSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION") - .field("Flags", &self.Flags) - .field("TargetReplicaSetSize", &self.TargetReplicaSetSize) - .field( - "ReplicaRestartWaitDurationSeconds", - &self.ReplicaRestartWaitDurationSeconds, - ) - .field( - "QuorumLossWaitDurationSeconds", - &self.QuorumLossWaitDurationSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - pub StandByReplicaKeepDurationSeconds: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1") - .field( - "StandByReplicaKeepDurationSeconds", - &self.StandByReplicaKeepDurationSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - pub MinReplicaSetSize: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2") - .field("MinReplicaSetSize", &self.MinReplicaSetSize) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - pub PlacementConstraints: ::windows::core::PCWSTR, - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub CorrelationCount: u32, - pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, - pub MetricCount: u32, - pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3") - .field("PlacementConstraints", &self.PlacementConstraints) - .field("PolicyList", &self.PolicyList) - .field("CorrelationCount", &self.CorrelationCount) - .field("Correlations", &self.Correlations) - .field("MetricCount", &self.MetricCount) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - pub DefaultMoveCost: FABRIC_MOVE_COST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4") - .field("DefaultMoveCost", &self.DefaultMoveCost) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, - pub RepartitionDescription: *mut ::core::ffi::c_void, - pub ScalingPolicyCount: u32, - pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 {} -impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5") - .field("RepartitionKind", &self.RepartitionKind) - .field("RepartitionDescription", &self.RepartitionDescription) - .field("ScalingPolicyCount", &self.ScalingPolicyCount) - .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 {} -impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION { - pub ApplicationName: *mut u16, - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub InitializationDataSize: u32, - pub InitializationData: *mut u8, - pub PartitionScheme: FABRIC_PARTITION_SCHEME, - pub PartitionSchemeDescription: *mut ::core::ffi::c_void, - pub InstanceCount: i32, - pub PlacementConstraints: ::windows::core::PCWSTR, - pub CorrelationCount: u32, - pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, - pub MetricCount: u32, - pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION") - .field("ApplicationName", &self.ApplicationName) - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("InitializationDataSize", &self.InitializationDataSize) - .field("InitializationData", &self.InitializationData) - .field("PartitionScheme", &self.PartitionScheme) - .field( - "PartitionSchemeDescription", - &self.PartitionSchemeDescription, - ) - .field("InstanceCount", &self.InstanceCount) - .field("PlacementConstraints", &self.PlacementConstraints) - .field("CorrelationCount", &self.CorrelationCount) - .field("Correlations", &self.Correlations) - .field("MetricCount", &self.MetricCount) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1") - .field("PolicyList", &self.PolicyList) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, - pub DefaultMoveCost: FABRIC_MOVE_COST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2") - .field( - "IsDefaultMoveCostSpecified", - &self.IsDefaultMoveCostSpecified, - ) - .field("DefaultMoveCost", &self.DefaultMoveCost) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub ServiceDnsName: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3") - .field( - "ServicePackageActivationMode", - &self.ServicePackageActivationMode, - ) - .field("ServiceDnsName", &self.ServiceDnsName) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - pub ScalingPolicyCount: u32, - pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4") - .field("ScalingPolicyCount", &self.ScalingPolicyCount) - .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - pub PartitionId: ::windows::core::GUID, - pub InstanceId: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH") - .field("PartitionId", &self.PartitionId) - .field("InstanceId", &self.InstanceId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("HealthEvents", &self.HealthEvents) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, - pub InstanceId: i64, - pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT") - .field("PartitionId", &self.PartitionId) - .field("InstanceId", &self.InstanceId) - .field("HealthInformation", &self.HealthInformation) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, - pub InstanceId: i64, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE") - .field("PartitionId", &self.PartitionId) - .field("InstanceId", &self.InstanceId) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1") - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - pub InstanceId: i64, - pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ReplicaAddress: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, - pub LastInBuildDurationInSeconds: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM") - .field("InstanceId", &self.InstanceId) - .field("ReplicaStatus", &self.ReplicaStatus) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("ReplicaAddress", &self.ReplicaAddress) - .field("NodeName", &self.NodeName) - .field( - "LastInBuildDurationInSeconds", - &self.LastInBuildDurationInSeconds, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, - pub InstanceCount: u32, - pub HealthState: FABRIC_HEALTH_STATE, - pub PartitionStatus: FABRIC_QUERY_SERVICE_PARTITION_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM") - .field("PartitionInformation", &self.PartitionInformation) - .field("InstanceCount", &self.InstanceCount) - .field("HealthState", &self.HealthState) - .field("PartitionStatus", &self.PartitionStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub HealthState: FABRIC_HEALTH_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM") - .field("ServiceName", &self.ServiceName) - .field("ServiceTypeName", &self.ServiceTypeName) - .field("ServiceManifestVersion", &self.ServiceManifestVersion) - .field("HealthState", &self.HealthState) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1") - .field("ServiceStatus", &self.ServiceStatus) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2") - .field("IsServiceGroup", &self.IsServiceGroup) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub PlacementConstraints: ::windows::core::PCWSTR, - pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, - pub Extensions: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST, - pub UseImplicitHost: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION") - .field("ServiceTypeName", &self.ServiceTypeName) - .field("PlacementConstraints", &self.PlacementConstraints) - .field("LoadMetrics", &self.LoadMetrics) - .field("Extensions", &self.Extensions) - .field("UseImplicitHost", &self.UseImplicitHost) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1") - .field("PolicyList", &self.PolicyList) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - pub Flags: u32, - pub InstanceCount: i32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION") - .field("Flags", &self.Flags) - .field("InstanceCount", &self.InstanceCount) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - pub PlacementConstraints: ::windows::core::PCWSTR, - pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, - pub CorrelationCount: u32, - pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, - pub MetricCount: u32, - pub Metrics: *mut FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1") - .field("PlacementConstraints", &self.PlacementConstraints) - .field("PolicyList", &self.PolicyList) - .field("CorrelationCount", &self.CorrelationCount) - .field("Correlations", &self.Correlations) - .field("MetricCount", &self.MetricCount) - .field("Metrics", &self.Metrics) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - pub DefaultMoveCost: FABRIC_MOVE_COST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2") - .field("DefaultMoveCost", &self.DefaultMoveCost) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, - pub RepartitionDescription: *mut ::core::ffi::c_void, - pub ScalingPolicyCount: u32, - pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 {} -impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3") - .field("RepartitionKind", &self.RepartitionKind) - .field("RepartitionDescription", &self.RepartitionDescription) - .field("ScalingPolicyCount", &self.ScalingPolicyCount) - .field("ServiceScalingPolicies", &self.ServiceScalingPolicies) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 {} -impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STOPPED_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STOPPED_EVENT {} -impl ::core::clone::Clone for FABRIC_STOPPED_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STOPPED_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STOPPED_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("Reason", &self.Reason) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOPPED_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STOPPED_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STOPPED_EVENT {} -impl ::core::default::Default for FABRIC_STOPPED_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STOP_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STOP_NODE_DESCRIPTION2 { - pub Kind: FABRIC_STOP_NODE_DESCRIPTION_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION2 {} -impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION2") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION2 {} -impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, - pub NodeInstanceId: u64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME") - .field("NodeName", &self.NodeName) - .field("NodeInstanceId", &self.NodeInstanceId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME {} -impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STOP_NODE_STATUS { - pub NodeResult: *mut FABRIC_NODE_RESULT, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STOP_NODE_STATUS {} -impl ::core::clone::Clone for FABRIC_STOP_NODE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STOP_NODE_STATUS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STOP_NODE_STATUS") - .field("NodeResult", &self.NodeResult) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_STATUS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_STATUS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STOP_NODE_STATUS {} -impl ::core::default::Default for FABRIC_STOP_NODE_STATUS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STORE_BACKUP_INFO { - pub BackupFolder: ::windows::core::PCWSTR, - pub BackupOption: FABRIC_STORE_BACKUP_OPTION, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STORE_BACKUP_INFO {} -impl ::core::clone::Clone for FABRIC_STORE_BACKUP_INFO { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STORE_BACKUP_INFO") - .field("BackupFolder", &self.BackupFolder) - .field("BackupOption", &self.BackupOption) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_INFO { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO {} -impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STORE_BACKUP_INFO_EX1 { - pub BackupChainId: ::windows::core::GUID, - pub BackupIndex: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_STORE_BACKUP_INFO_EX1 {} -impl ::core::clone::Clone for FABRIC_STORE_BACKUP_INFO_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STORE_BACKUP_INFO_EX1") - .field("BackupChainId", &self.BackupChainId) - .field("BackupIndex", &self.BackupIndex) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_INFO_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO_EX1 {} -impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STRING_LIST { - pub Count: u32, - pub Items: *const ::windows::core::PWSTR, -} -impl ::core::marker::Copy for FABRIC_STRING_LIST {} -impl ::core::clone::Clone for FABRIC_STRING_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STRING_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STRING_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STRING_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STRING_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STRING_LIST {} -impl ::core::default::Default for FABRIC_STRING_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_STRING_MAP { - pub Count: u32, - pub Items: *const FABRIC_APPLICATION_PARAMETER, -} -impl ::core::marker::Copy for FABRIC_STRING_MAP {} -impl ::core::clone::Clone for FABRIC_STRING_MAP { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_STRING_MAP { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_STRING_MAP") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_STRING_MAP { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_STRING_MAP { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_STRING_MAP {} -impl ::core::default::Default for FABRIC_STRING_MAP { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - pub SystemServiceNameFilter: *mut u16, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION") - .field("SystemServiceNameFilter", &self.SystemServiceNameFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - pub TestCommandStateFilter: FABRIC_TEST_COMMAND_STATE_FILTER, - pub TestCommandTypeFilter: FABRIC_TEST_COMMAND_TYPE_FILTER, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_TEST_COMMAND_LIST_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_TEST_COMMAND_LIST_DESCRIPTION") - .field("TestCommandStateFilter", &self.TestCommandStateFilter) - .field("TestCommandTypeFilter", &self.TestCommandTypeFilter) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION {} -impl ::core::default::Default for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_TEST_ERROR_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_TEST_ERROR_EVENT {} -impl ::core::clone::Clone for FABRIC_TEST_ERROR_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_TEST_ERROR_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_TEST_ERROR_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("Reason", &self.Reason) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_TEST_ERROR_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_TEST_ERROR_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_TEST_ERROR_EVENT {} -impl ::core::default::Default for FABRIC_TEST_ERROR_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - pub PartitionCount: i32, - pub LowKey: i64, - pub HighKey: i64, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION") - .field("PartitionCount", &self.PartitionCount) - .field("LowKey", &self.LowKey) - .field("HighKey", &self.HighKey) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UNPLACED_REPLICA_INFORMATION { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub UnplacedReplicaReasons: *const FABRIC_STRING_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION {} -impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("UnplacedReplicaReasons", &self.UnplacedReplicaReasons) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION {} -impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - pub Count: u32, - pub Items: *const ::windows::core::PWSTR, -} -impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} -impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} -impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, - pub OnlyQueryPrimaries: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION") - .field("ServiceName", &self.ServiceName) - .field("PartitionId", &self.PartitionId) - .field("OnlyQueryPrimaries", &self.OnlyQueryPrimaries) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub Async: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION") - .field("ApplicationTypeName", &self.ApplicationTypeName) - .field("ApplicationTypeVersion", &self.ApplicationTypeVersion) - .field("Async", &self.Async) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DESCRIPTION { - pub CodeVersion: ::windows::core::PCWSTR, - pub ConfigVersion: ::windows::core::PCWSTR, - pub UpgradeKind: FABRIC_UPGRADE_KIND, - pub UpgradePolicyDescription: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DESCRIPTION") - .field("CodeVersion", &self.CodeVersion) - .field("ConfigVersion", &self.ConfigVersion) - .field("UpgradeKind", &self.UpgradeKind) - .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UPGRADE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, - pub BaselineErrorCount: u32, - pub BaselineTotalCount: u32, - pub TotalCount: u32, - pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UpgradeDomainName", &self.UpgradeDomainName) - .field("BaselineErrorCount", &self.BaselineErrorCount) - .field("BaselineTotalCount", &self.BaselineTotalCount) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUpgradeDomainDeltaUnhealthyNodes", - &self.MaxPercentUpgradeDomainDeltaUnhealthyNodes, - ) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyDeployedApplications: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UpgradeDomainName", &self.UpgradeDomainName) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field( - "MaxPercentUnhealthyDeployedApplications", - &self.MaxPercentUnhealthyDeployedApplications, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub TotalCount: u32, - pub MaxPercentUnhealthyNodes: u8, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION") - .field("Description", &self.Description) - .field("AggregatedHealthState", &self.AggregatedHealthState) - .field("UpgradeDomainName", &self.UpgradeDomainName) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field("TotalCount", &self.TotalCount) - .field("MaxPercentUnhealthyNodes", &self.MaxPercentUnhealthyNodes) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_PROGRESS { - pub UpgradeDomainName: ::windows::core::PCWSTR, - pub NodeProgressList: *mut FABRIC_NODE_UPGRADE_PROGRESS_LIST, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_PROGRESS {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_PROGRESS") - .field("UpgradeDomainName", &self.UpgradeDomainName) - .field("NodeProgressList", &self.NodeProgressList) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_PROGRESS {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub State: FABRIC_UPGRADE_DOMAIN_STATE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION") - .field("Name", &self.Name) - .field("State", &self.State) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - pub Count: u32, - pub Items: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST {} -impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST {} -impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - pub CurrentCodeVersion: ::windows::core::PCWSTR, - pub CurrentManifestVersion: ::windows::core::PCWSTR, - pub TargetCodeVersion: ::windows::core::PCWSTR, - pub TargetManifestVersion: ::windows::core::PCWSTR, - pub PendingUpgradeType: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} -impl ::core::clone::Clone for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE") - .field("CurrentCodeVersion", &self.CurrentCodeVersion) - .field("CurrentManifestVersion", &self.CurrentManifestVersion) - .field("TargetCodeVersion", &self.TargetCodeVersion) - .field("TargetManifestVersion", &self.TargetManifestVersion) - .field("PendingUpgradeType", &self.PendingUpgradeType) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} -impl ::core::default::Default for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - pub PartitionId: ::windows::core::GUID, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_PARTITION_SAFETY_CHECK") - .field("PartitionId", &self.PartitionId) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_PROGRESS { - pub UpgradeDescription: *const FABRIC_UPGRADE_DESCRIPTION, - pub UpgradeState: FABRIC_UPGRADE_STATE, - pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub NextUpgradeDomain: ::windows::core::PCWSTR, - pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, - pub UpgradeDurationInSeconds: u32, - pub CurrentUpgradeDomainDurationInSeconds: u32, - pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, - pub CurrentUpgradeDomainProgress: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_PROGRESS {} -impl ::core::clone::Clone for FABRIC_UPGRADE_PROGRESS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_PROGRESS") - .field("UpgradeDescription", &self.UpgradeDescription) - .field("UpgradeState", &self.UpgradeState) - .field("UpgradeMode", &self.UpgradeMode) - .field("NextUpgradeDomain", &self.NextUpgradeDomain) - .field("UpgradeDomains", &self.UpgradeDomains) - .field("UpgradeDurationInSeconds", &self.UpgradeDurationInSeconds) - .field( - "CurrentUpgradeDomainDurationInSeconds", - &self.CurrentUpgradeDomainDurationInSeconds, - ) - .field("UnhealthyEvaluations", &self.UnhealthyEvaluations) - .field( - "CurrentUpgradeDomainProgress", - &self.CurrentUpgradeDomainProgress, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PROGRESS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS {} -impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_PROGRESS_EX1 { - pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, - pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, - pub FailureReason: FABRIC_UPGRADE_FAILURE_REASON, - pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_PROGRESS_EX1 {} -impl ::core::clone::Clone for FABRIC_UPGRADE_PROGRESS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_PROGRESS_EX1") - .field("StartTimestampUtc", &self.StartTimestampUtc) - .field("FailureTimestampUtc", &self.FailureTimestampUtc) - .field("FailureReason", &self.FailureReason) - .field( - "UpgradeDomainProgressAtFailure", - &self.UpgradeDomainProgressAtFailure, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PROGRESS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS_EX1 {} -impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_SAFETY_CHECK { - pub Kind: FABRIC_UPGRADE_SAFETY_CHECK_KIND, - pub Value: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_SAFETY_CHECK") - .field("Kind", &self.Kind) - .field("Value", &self.Value) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_SAFETY_CHECK_LIST { - pub Count: u32, - pub Items: *const FABRIC_UPGRADE_SAFETY_CHECK, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK_LIST {} -impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_SAFETY_CHECK_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK_LIST {} -impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK {} -impl ::core::clone::Clone for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK") - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK {} -impl ::core::default::Default for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_UPGRADE_UPDATE_DESCRIPTION { - pub UpgradeKind: FABRIC_UPGRADE_KIND, - pub UpdateFlags: u32, - pub UpgradePolicyDescription: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_UPGRADE_UPDATE_DESCRIPTION {} -impl ::core::clone::Clone for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_UPGRADE_UPDATE_DESCRIPTION") - .field("UpgradeKind", &self.UpgradeKind) - .field("UpdateFlags", &self.UpdateFlags) - .field("UpgradePolicyDescription", &self.UpgradePolicyDescription) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_UPGRADE_UPDATE_DESCRIPTION {} -impl ::core::default::Default for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_VALIDATION_FAILED_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_VALIDATION_FAILED_EVENT {} -impl ::core::clone::Clone for FABRIC_VALIDATION_FAILED_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_VALIDATION_FAILED_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_VALIDATION_FAILED_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("Reason", &self.Reason) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_VALIDATION_FAILED_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_VALIDATION_FAILED_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_VALIDATION_FAILED_EVENT {} -impl ::core::default::Default for FABRIC_VALIDATION_FAILED_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_WAITING_EVENT { - pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_WAITING_EVENT {} -impl ::core::clone::Clone for FABRIC_WAITING_EVENT { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_WAITING_EVENT { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_WAITING_EVENT") - .field("TimeStampUtc", &self.TimeStampUtc) - .field("Reason", &self.Reason) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_WAITING_EVENT { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_WAITING_EVENT { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_WAITING_EVENT {} -impl ::core::default::Default for FABRIC_WAITING_EVENT { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_WINDOWS_CREDENTIALS { - pub RemoteSpn: ::windows::core::PCWSTR, - pub RemoteIdentityCount: u32, - pub RemoteIdentities: *const ::windows::core::PWSTR, - pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_WINDOWS_CREDENTIALS {} -impl ::core::clone::Clone for FABRIC_WINDOWS_CREDENTIALS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_WINDOWS_CREDENTIALS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_WINDOWS_CREDENTIALS") - .field("RemoteSpn", &self.RemoteSpn) - .field("RemoteIdentityCount", &self.RemoteIdentityCount) - .field("RemoteIdentities", &self.RemoteIdentities) - .field("ProtectionLevel", &self.ProtectionLevel) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_WINDOWS_CREDENTIALS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_WINDOWS_CREDENTIALS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_WINDOWS_CREDENTIALS {} -impl ::core::default::Default for FABRIC_WINDOWS_CREDENTIALS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_CREDENTIALS { - pub AllowedCommonNameCount: u32, - pub AllowedCommonNames: *const ::windows::core::PWSTR, - pub FindType: FABRIC_X509_FIND_TYPE, - pub FindValue: *mut ::core::ffi::c_void, - pub StoreLocation: FABRIC_X509_STORE_LOCATION, - pub StoreName: ::windows::core::PCWSTR, - pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS {} -impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_CREDENTIALS") - .field("AllowedCommonNameCount", &self.AllowedCommonNameCount) - .field("AllowedCommonNames", &self.AllowedCommonNames) - .field("FindType", &self.FindType) - .field("FindValue", &self.FindValue) - .field("StoreLocation", &self.StoreLocation) - .field("StoreName", &self.StoreName) - .field("ProtectionLevel", &self.ProtectionLevel) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS {} -impl ::core::default::Default for FABRIC_X509_CREDENTIALS { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_CREDENTIALS2 { - pub CertLoadPath: ::windows::core::PCWSTR, - pub RemoteCertThumbprintCount: u32, - pub RemoteCertThumbprints: *const ::windows::core::PWSTR, - pub RemoteX509NameCount: u32, - pub RemoteX509Names: *mut FABRIC_X509_NAME, - pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS2 {} -impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_CREDENTIALS2") - .field("CertLoadPath", &self.CertLoadPath) - .field("RemoteCertThumbprintCount", &self.RemoteCertThumbprintCount) - .field("RemoteCertThumbprints", &self.RemoteCertThumbprints) - .field("RemoteX509NameCount", &self.RemoteX509NameCount) - .field("RemoteX509Names", &self.RemoteX509Names) - .field("ProtectionLevel", &self.ProtectionLevel) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS2 {} -impl ::core::default::Default for FABRIC_X509_CREDENTIALS2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_CREDENTIALS_EX1 { - pub IssuerThumbprintCount: u32, - pub IssuerThumbprints: *const ::windows::core::PWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX1 {} -impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_CREDENTIALS_EX1") - .field("IssuerThumbprintCount", &self.IssuerThumbprintCount) - .field("IssuerThumbprints", &self.IssuerThumbprints) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX1 {} -impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_CREDENTIALS_EX2 { - pub RemoteCertThumbprintCount: u32, - pub RemoteCertThumbprints: *const ::windows::core::PWSTR, - pub RemoteX509NameCount: u32, - pub RemoteX509Names: *mut FABRIC_X509_NAME, - pub FindValueSecondary: *mut ::core::ffi::c_void, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX2 {} -impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_CREDENTIALS_EX2") - .field("RemoteCertThumbprintCount", &self.RemoteCertThumbprintCount) - .field("RemoteCertThumbprints", &self.RemoteCertThumbprints) - .field("RemoteX509NameCount", &self.RemoteX509NameCount) - .field("RemoteX509Names", &self.RemoteX509Names) - .field("FindValueSecondary", &self.FindValueSecondary) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX2 {} -impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_CREDENTIALS_EX3 { - pub RemoteCertIssuerCount: u32, - pub RemoteCertIssuers: *mut FABRIC_X509_ISSUER_NAME, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX3 {} -impl ::core::clone::Clone for FABRIC_X509_CREDENTIALS_EX3 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX3 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_CREDENTIALS_EX3") - .field("RemoteCertIssuerCount", &self.RemoteCertIssuerCount) - .field("RemoteCertIssuers", &self.RemoteCertIssuers) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX3 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX3 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX3 {} -impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX3 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_ISSUER_NAME { - pub Name: ::windows::core::PCWSTR, - pub IssuerStoreCount: u32, - pub IssuerStores: *const ::windows::core::PWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_ISSUER_NAME {} -impl ::core::clone::Clone for FABRIC_X509_ISSUER_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_ISSUER_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_ISSUER_NAME") - .field("Name", &self.Name) - .field("IssuerStoreCount", &self.IssuerStoreCount) - .field("IssuerStores", &self.IssuerStores) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_ISSUER_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_ISSUER_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_ISSUER_NAME {} -impl ::core::default::Default for FABRIC_X509_ISSUER_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct FABRIC_X509_NAME { - pub Name: ::windows::core::PCWSTR, - pub IssuerCertThumbprint: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for FABRIC_X509_NAME {} -impl ::core::clone::Clone for FABRIC_X509_NAME { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for FABRIC_X509_NAME { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("FABRIC_X509_NAME") - .field("Name", &self.Name) - .field("IssuerCertThumbprint", &self.IssuerCertThumbprint) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for FABRIC_X509_NAME { - type Abi = Self; -} -impl ::core::cmp::PartialEq for FABRIC_X509_NAME { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for FABRIC_X509_NAME {} -impl ::core::default::Default for FABRIC_X509_NAME { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, - pub MaxResults: i32, - pub ContinuationToken: ::windows::core::PCWSTR, - pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} -impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION") - .field("ApplicationTypeNameFilter", &self.ApplicationTypeNameFilter) - .field("MaxResults", &self.MaxResults) - .field("ContinuationToken", &self.ContinuationToken) - .field( - "ExcludeApplicationParameters", - &self.ExcludeApplicationParameters, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type Abi = Self; -} -impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} -impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - pub ApplicationTypeVersionFilter: ::windows::core::PCWSTR, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} -impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1") - .field( - "ApplicationTypeVersionFilter", - &self.ApplicationTypeVersionFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} -impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - pub ApplicationTypeDefinitionKindFilter: u32, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 {} -impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2") - .field( - "ApplicationTypeDefinitionKindFilter", - &self.ApplicationTypeDefinitionKindFilter, - ) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; -} -impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 {} -impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct TEST_COMMAND_QUERY_RESULT_ITEM { - pub OperationId: ::windows::core::GUID, - pub TestCommandState: FABRIC_TEST_COMMAND_PROGRESS_STATE, - pub TestCommandType: FABRIC_TEST_COMMAND_TYPE, - pub Reserved: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for TEST_COMMAND_QUERY_RESULT_ITEM {} -impl ::core::clone::Clone for TEST_COMMAND_QUERY_RESULT_ITEM { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_ITEM { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TEST_COMMAND_QUERY_RESULT_ITEM") - .field("OperationId", &self.OperationId) - .field("TestCommandState", &self.TestCommandState) - .field("TestCommandType", &self.TestCommandType) - .field("Reserved", &self.Reserved) - .finish() - } -} -unsafe impl ::windows::core::Abi for TEST_COMMAND_QUERY_RESULT_ITEM { - type Abi = Self; -} -impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_ITEM { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_ITEM {} -impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_ITEM { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[repr(C)] -pub struct TEST_COMMAND_QUERY_RESULT_LIST { - pub Count: u32, - pub Items: *mut ::core::ffi::c_void, -} -impl ::core::marker::Copy for TEST_COMMAND_QUERY_RESULT_LIST {} -impl ::core::clone::Clone for TEST_COMMAND_QUERY_RESULT_LIST { - fn clone(&self) -> Self { - *self - } -} -impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_LIST { - fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_struct("TEST_COMMAND_QUERY_RESULT_LIST") - .field("Count", &self.Count) - .field("Items", &self.Items) - .finish() - } -} -unsafe impl ::windows::core::Abi for TEST_COMMAND_QUERY_RESULT_LIST { - type Abi = Self; -} -impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_LIST { - fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} -impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_LIST {} -impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_LIST { - fn default() -> Self { - unsafe { ::core::mem::zeroed() } - } -} -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/impl.rs b/src/Microsoft/impl.rs deleted file mode 100644 index 8b137891..00000000 --- a/src/Microsoft/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Microsoft/mod.rs b/src/Microsoft/mod.rs deleted file mode 100644 index 5658529d..00000000 --- a/src/Microsoft/mod.rs +++ /dev/null @@ -1,3 +0,0 @@ -pub mod ServiceFabric; -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/lib.rs b/src/lib.rs index 15b5b417..24e290b5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,8 +20,7 @@ extern crate windows; clippy::extra_unused_lifetimes, clippy::useless_transmute )] -mod Microsoft; - +pub mod Microsoft; pub use Microsoft::ServiceFabric::*; pub use fabric_metadata;