objc2_virtualization/generated/
VZFileHandleSerialPortAttachment.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(VZSerialPortAttachment, NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 #[cfg(feature = "VZSerialPortAttachment")]
19 pub struct VZFileHandleSerialPortAttachment;
20);
21
22#[cfg(feature = "VZSerialPortAttachment")]
23extern_conformance!(
24 unsafe impl NSObjectProtocol for VZFileHandleSerialPortAttachment {}
25);
26
27#[cfg(feature = "VZSerialPortAttachment")]
28impl VZFileHandleSerialPortAttachment {
29 extern_methods!(
30 #[unsafe(method(new))]
31 #[unsafe(method_family = new)]
32 pub unsafe fn new() -> Retained<Self>;
33
34 #[unsafe(method(init))]
35 #[unsafe(method_family = init)]
36 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
37
38 #[unsafe(method(initWithFileHandleForReading:fileHandleForWriting:))]
46 #[unsafe(method_family = init)]
47 pub unsafe fn initWithFileHandleForReading_fileHandleForWriting(
48 this: Allocated<Self>,
49 file_handle_for_reading: Option<&NSFileHandle>,
50 file_handle_for_writing: Option<&NSFileHandle>,
51 ) -> Retained<Self>;
52
53 #[unsafe(method(fileHandleForReading))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn fileHandleForReading(&self) -> Option<Retained<NSFileHandle>>;
59
60 #[unsafe(method(fileHandleForWriting))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn fileHandleForWriting(&self) -> Option<Retained<NSFileHandle>>;
66 );
67}