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
25extern_conformance!(
26 unsafe impl NSCopying for VZConsolePortConfiguration {}
27);
28
29unsafe impl CopyingHelper for VZConsolePortConfiguration {
30 type Result = Self;
31}
32
33extern_conformance!(
34 unsafe impl NSObjectProtocol for VZConsolePortConfiguration {}
35);
36
37impl VZConsolePortConfiguration {
38 extern_methods!(
39 #[unsafe(method(new))]
40 #[unsafe(method_family = new)]
41 pub unsafe fn new() -> Retained<Self>;
42
43 #[unsafe(method(init))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47 #[cfg(feature = "VZSerialPortAttachment")]
48 #[unsafe(method(attachment))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn attachment(&self) -> Option<Retained<VZSerialPortAttachment>>;
58
59 #[cfg(feature = "VZSerialPortAttachment")]
60 #[unsafe(method(setAttachment:))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn setAttachment(&self, attachment: Option<&VZSerialPortAttachment>);
64 );
65}