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
27extern_conformance!(
28    unsafe impl NSCopying for VZVirtioSoundDeviceStreamConfiguration {}
29);
30
31unsafe impl CopyingHelper for VZVirtioSoundDeviceStreamConfiguration {
32    type Result = Self;
33}
34
35extern_conformance!(
36    unsafe impl NSObjectProtocol for VZVirtioSoundDeviceStreamConfiguration {}
37);
38
39impl VZVirtioSoundDeviceStreamConfiguration {
40    extern_methods!(
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48    );
49}