objc2_web_kit/generated/
WKSecurityOrigin.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
18 #[thread_kind = MainThreadOnly]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct WKSecurityOrigin;
21);
22
23unsafe impl NSObjectProtocol for WKSecurityOrigin {}
24
25impl WKSecurityOrigin {
26 extern_methods!(
27 #[unsafe(method(init))]
28 #[unsafe(method_family = init)]
29 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
30
31 #[unsafe(method(protocol))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn protocol(&self) -> Retained<NSString>;
35
36 #[unsafe(method(host))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn host(&self) -> Retained<NSString>;
40
41 #[unsafe(method(port))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn port(&self) -> NSInteger;
45 );
46}
47
48impl WKSecurityOrigin {
50 extern_methods!(
51 #[unsafe(method(new))]
52 #[unsafe(method_family = new)]
53 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
54 );
55}