objc2_virtualization/generated/
VZVirtioConsolePort.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct VZVirtioConsolePort;
19);
20
21extern_conformance!(
22 unsafe impl NSObjectProtocol for VZVirtioConsolePort {}
23);
24
25impl VZVirtioConsolePort {
26 extern_methods!(
27 #[unsafe(method(new))]
28 #[unsafe(method_family = new)]
29 pub unsafe fn new() -> Retained<Self>;
30
31 #[unsafe(method(init))]
32 #[unsafe(method_family = init)]
33 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
34
35 #[unsafe(method(name))]
39 #[unsafe(method_family = none)]
40 pub unsafe fn name(&self) -> Option<Retained<NSString>>;
41
42 #[cfg(feature = "VZSerialPortAttachment")]
43 #[unsafe(method(attachment))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn attachment(&self) -> Option<Retained<VZSerialPortAttachment>>;
49
50 #[cfg(feature = "VZSerialPortAttachment")]
51 #[unsafe(method(setAttachment:))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn setAttachment(&self, attachment: Option<&VZSerialPortAttachment>);
55 );
56}