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