objc2_metric_kit/generated/
MXCallStackTree.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    /// A data class that encapsulates call stack trees vended by MetricKit.
11    ///
12    /// You should use the JSONRepresentation API to generate human readable call stack trees for symbolication off device.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/metrickit/mxcallstacktree?language=objc)
15    #[unsafe(super(NSObject))]
16    #[derive(Debug, PartialEq, Eq, Hash)]
17    pub struct MXCallStackTree;
18);
19
20unsafe impl NSCoding for MXCallStackTree {}
21
22unsafe impl NSObjectProtocol for MXCallStackTree {}
23
24unsafe impl NSSecureCoding for MXCallStackTree {}
25
26impl MXCallStackTree {
27    extern_methods!(
28        /// Convenience method to return a JSON representation of this callstack tree.
29        ///
30        /// The JSON structure of MXCallStackTree is organized into individual groups of call stacks. Individual call stacks contain stack frames, which consist of information needed to symbolicate the frame off device. This includes binary image name, binary UUID, offset in binary text segment, address, and sample count (for stack trees that contain temporally sampled data.)
31        ///
32        /// MXCallStackTrees can be organized into a single callstack for the entire application, or broken up into callstacks associated with individual threads.
33        ///
34        /// Returns: An NSData object containing the JSON representation
35        #[unsafe(method(JSONRepresentation))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn JSONRepresentation(&self) -> Retained<NSData>;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl MXCallStackTree {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51    );
52}