objc2_shared_with_you_core/generated/
SWAction.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 SWAction;
15);
16
17extern_conformance!(
18 unsafe impl NSCoding for SWAction {}
19);
20
21extern_conformance!(
22 unsafe impl NSCopying for SWAction {}
23);
24
25unsafe impl CopyingHelper for SWAction {
26 type Result = Self;
27}
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for SWAction {}
31);
32
33extern_conformance!(
34 unsafe impl NSSecureCoding for SWAction {}
35);
36
37impl SWAction {
38 extern_methods!(
39 #[unsafe(method(uuid))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn uuid(&self) -> Retained<NSUUID>;
42
43 #[unsafe(method(isComplete))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn isComplete(&self) -> bool;
46
47 #[unsafe(method(fulfill))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn fulfill(&self);
50
51 #[unsafe(method(fail))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn fail(&self);
54 );
55}
56
57impl SWAction {
59 extern_methods!(
60 #[unsafe(method(init))]
61 #[unsafe(method_family = init)]
62 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
63
64 #[unsafe(method(new))]
65 #[unsafe(method_family = new)]
66 pub unsafe fn new() -> Retained<Self>;
67 );
68}