objc2_virtualization/generated/VZDirectoryShare.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 directory share.
10 ///
11 /// A directory share defines how host directories get exposed to a virtual machine guest.
12 ///
13 /// VZDirectoryShare should not be instantiated directly.
14 /// One of its subclasses like VZSingleDirectoryShare or VZMultipleDirectoryShare should be used instead.
15 ///
16 ///
17 /// See: VZSingleDirectoryShare
18 ///
19 /// See: VZMultipleDirectoryShare
20 ///
21 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzdirectoryshare?language=objc)
22 #[unsafe(super(NSObject))]
23 #[derive(Debug, PartialEq, Eq, Hash)]
24 pub struct VZDirectoryShare;
25);
26
27extern_conformance!(
28 unsafe impl NSObjectProtocol for VZDirectoryShare {}
29);
30
31impl VZDirectoryShare {
32 extern_methods!(
33 #[unsafe(method(new))]
34 #[unsafe(method_family = new)]
35 pub unsafe fn new() -> Retained<Self>;
36
37 #[unsafe(method(init))]
38 #[unsafe(method_family = init)]
39 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40 );
41}