objc2_virtualization/generated/
VZVirtioConsolePortArray.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[unsafe(super(NSObject))]
19 #[derive(Debug, PartialEq, Eq, Hash)]
20 pub struct VZVirtioConsolePortArray;
21);
22
23extern_conformance!(
24 unsafe impl NSObjectProtocol for VZVirtioConsolePortArray {}
25);
26
27impl VZVirtioConsolePortArray {
28 extern_methods!(
29 #[unsafe(method(new))]
30 #[unsafe(method_family = new)]
31 pub unsafe fn new() -> Retained<Self>;
32
33 #[unsafe(method(init))]
34 #[unsafe(method_family = init)]
35 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
36
37 #[cfg(feature = "VZVirtioConsolePort")]
38 #[unsafe(method(objectAtIndexedSubscript:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn objectAtIndexedSubscript(
42 &self,
43 port_index: NSUInteger,
44 ) -> Option<Retained<VZVirtioConsolePort>>;
45
46 #[unsafe(method(maximumPortCount))]
48 #[unsafe(method_family = none)]
49 pub unsafe fn maximumPortCount(&self) -> u32;
50 );
51}