objc2_call_kit/generated/
CXAction.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct CXAction;
15);
16
17unsafe impl NSCoding for CXAction {}
18
19unsafe impl NSCopying for CXAction {}
20
21unsafe impl CopyingHelper for CXAction {
22 type Result = Self;
23}
24
25unsafe impl NSObjectProtocol for CXAction {}
26
27unsafe impl NSSecureCoding for CXAction {}
28
29impl CXAction {
30 extern_methods!(
31 #[unsafe(method(UUID))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn UUID(&self) -> Retained<NSUUID>;
35
36 #[unsafe(method(isComplete))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn isComplete(&self) -> bool;
40
41 #[unsafe(method(timeoutDate))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn timeoutDate(&self) -> Retained<NSDate>;
44
45 #[unsafe(method(init))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48
49 #[unsafe(method(initWithCoder:))]
50 #[unsafe(method_family = init)]
51 pub unsafe fn initWithCoder(
52 this: Allocated<Self>,
53 a_decoder: &NSCoder,
54 ) -> Option<Retained<Self>>;
55
56 #[unsafe(method(fulfill))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn fulfill(&self);
60
61 #[unsafe(method(fail))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn fail(&self);
65 );
66}
67
68impl CXAction {
70 extern_methods!(
71 #[unsafe(method(new))]
72 #[unsafe(method_family = new)]
73 pub unsafe fn new() -> Retained<Self>;
74 );
75}