objc2_virtualization/generated/
VZConsolePortConfiguration.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
21 #[derive(Debug, PartialEq, Eq, Hash)]
22 pub struct VZConsolePortConfiguration;
23);
24
25unsafe impl NSCopying for VZConsolePortConfiguration {}
26
27unsafe impl CopyingHelper for VZConsolePortConfiguration {
28 type Result = Self;
29}
30
31unsafe impl NSObjectProtocol for VZConsolePortConfiguration {}
32
33impl VZConsolePortConfiguration {
34 extern_methods!(
35 #[unsafe(method(new))]
36 #[unsafe(method_family = new)]
37 pub unsafe fn new() -> Retained<Self>;
38
39 #[unsafe(method(init))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43 #[cfg(feature = "VZSerialPortAttachment")]
44 #[unsafe(method(attachment))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn attachment(&self) -> Option<Retained<VZSerialPortAttachment>>;
54
55 #[cfg(feature = "VZSerialPortAttachment")]
56 #[unsafe(method(setAttachment:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn setAttachment(&self, attachment: Option<&VZSerialPortAttachment>);
60 );
61}