objc2_web_kit/generated/
WKProcessPool.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// A WKProcessPool object represents a pool of web content processes.
11    /// The process pool associated with a web view is specified by its web view
12    /// configuration. Each web view is given its own web content process until an
13    /// implementation-defined process limit is reached; after that, web views
14    /// with the same process pool end up sharing web content processes.
15    ///
16    /// See also [Apple's documentation](https://developer.apple.com/documentation/webkit/wkprocesspool?language=objc)
17    #[unsafe(super(NSObject))]
18    #[thread_kind = MainThreadOnly]
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    #[deprecated = "Creating and using multiple instances of WKProcessPool no longer has any effect."]
21    pub struct WKProcessPool;
22);
23
24extern_conformance!(
25    unsafe impl NSCoding for WKProcessPool {}
26);
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for WKProcessPool {}
30);
31
32extern_conformance!(
33    unsafe impl NSSecureCoding for WKProcessPool {}
34);
35
36impl WKProcessPool {
37    extern_methods!();
38}
39
40/// Methods declared on superclass `NSObject`.
41impl WKProcessPool {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
50    );
51}