objc2_fs_kit/generated/FSFileSystem.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 /// An abstract base class for implementing a full-featured file system.
10 ///
11 /// `FSFileSystem` is a full-featured file system, which works with one or more ``FSResource`` instances and presents one or more ``FSVolume`` references to callers.
12 ///
13 /// Implement your app extension by providing a subclass of `FSFileSystem` as a delegate object.
14 /// Your delegate also needs to implement the `FSFileSystemOperations` protocol so that it can probe, load, and unload resources.
15 ///
16 /// > Note: The current version of FSKit supports only ``FSUnaryFileSystem``, not `FSFileSystem`.
17 ///
18 /// See also [Apple's documentation](https://developer.apple.com/documentation/fskit/fsfilesystem?language=objc)
19 #[unsafe(super(NSObject))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 pub struct FSFileSystem;
22);
23
24#[cfg(feature = "FSFileSystemBase")]
25extern_conformance!(
26 unsafe impl FSFileSystemBase for FSFileSystem {}
27);
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for FSFileSystem {}
31);
32
33impl FSFileSystem {
34 extern_methods!();
35}
36
37/// Methods declared on superclass `NSObject`.
38impl FSFileSystem {
39 extern_methods!(
40 #[unsafe(method(init))]
41 #[unsafe(method_family = init)]
42 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44 #[unsafe(method(new))]
45 #[unsafe(method_family = new)]
46 pub unsafe fn new() -> Retained<Self>;
47 );
48}