objc2_virtualization/generated/
VZSerialPortAttachment.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// Base class for a serial port attachment.
10    ///
11    /// A serial port attachment defines how the virtual machine's serial port interfaces with the host system.
12    /// VZSerialPortAttachment should not be instantiated directly.
13    /// One of its subclasses like VZFileHandleSerialPortAttachment should be used instead.
14    ///
15    ///
16    /// See: VZFileHandleSerialPortAttachment
17    ///
18    /// See: VZFileSerialPortAttachment
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzserialportattachment?language=objc)
21    #[unsafe(super(NSObject))]
22    #[derive(Debug, PartialEq, Eq, Hash)]
23    pub struct VZSerialPortAttachment;
24);
25
26extern_conformance!(
27    unsafe impl NSObjectProtocol for VZSerialPortAttachment {}
28);
29
30impl VZSerialPortAttachment {
31    extern_methods!(
32        #[unsafe(method(new))]
33        #[unsafe(method_family = new)]
34        pub unsafe fn new() -> Retained<Self>;
35
36        #[unsafe(method(init))]
37        #[unsafe(method_family = init)]
38        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
39    );
40}