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    pub struct WKProcessPool;
21);
22
23extern_conformance!(
24    unsafe impl NSCoding for WKProcessPool {}
25);
26
27extern_conformance!(
28    unsafe impl NSObjectProtocol for WKProcessPool {}
29);
30
31extern_conformance!(
32    unsafe impl NSSecureCoding for WKProcessPool {}
33);
34
35impl WKProcessPool {
36    extern_methods!();
37}
38
39/// Methods declared on superclass `NSObject`.
40impl WKProcessPool {
41    extern_methods!(
42        #[unsafe(method(init))]
43        #[unsafe(method_family = init)]
44        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
45
46        #[unsafe(method(new))]
47        #[unsafe(method_family = new)]
48        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
49    );
50}