objc2_virtualization/generated/
VZVirtioSoundDeviceStreamConfiguration.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// Virtio Sound Device Stream Configuration.
11    ///
12    /// A PCM stream of audio data.
13    /// VZVirtioSoundDeviceStreamConfiguration should not be instantiated directly.
14    /// One of its subclasses like VZVirtioSoundDeviceInputStreamConfiguration or VZVirtioSoundDeviceOutputStreamConfiguration should be used instead.
15    ///
16    ///
17    /// See: VZVirtioSoundDeviceInputStreamConfiguration
18    ///
19    /// See: VZVirtioSoundDeviceOutputStreamConfiguration
20    ///
21    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvirtiosounddevicestreamconfiguration?language=objc)
22    #[unsafe(super(NSObject))]
23    #[derive(Debug, PartialEq, Eq, Hash)]
24    pub struct VZVirtioSoundDeviceStreamConfiguration;
25);
26
27unsafe impl NSCopying for VZVirtioSoundDeviceStreamConfiguration {}
28
29unsafe impl CopyingHelper for VZVirtioSoundDeviceStreamConfiguration {
30    type Result = Self;
31}
32
33unsafe impl NSObjectProtocol for VZVirtioSoundDeviceStreamConfiguration {}
34
35impl VZVirtioSoundDeviceStreamConfiguration {
36    extern_methods!(
37        #[unsafe(method(new))]
38        #[unsafe(method_family = new)]
39        pub unsafe fn new() -> Retained<Self>;
40
41        #[unsafe(method(init))]
42        #[unsafe(method_family = init)]
43        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44    );
45}