jvmti_rs/wrapper/objects/
jmonitor_stack_depth_info.rs1use crate::sys::jvmtiMonitorStackDepthInfo;
2use crate::objects::JObject;
3
4#[derive(Debug)]
5pub struct JMonitorStackDepthInfo<'a> {
6 internal: jvmtiMonitorStackDepthInfo,
7
8 pub monitor: JObject<'a>,
9 pub stack_depth: u32,
10}
11
12
13impl<'a> From<jvmtiMonitorStackDepthInfo> for JMonitorStackDepthInfo<'a> {
14 fn from(info: jvmtiMonitorStackDepthInfo) -> Self {
15 JMonitorStackDepthInfo {
16 internal: info,
17
18 monitor: info.monitor.into(),
19 stack_depth: info.stack_depth as u32,
20 }
21 }
22}
23
24impl<'a> ::std::ops::Deref for JMonitorStackDepthInfo<'a> {
25 type Target = jvmtiMonitorStackDepthInfo;
26
27 fn deref(&self) -> &Self::Target {
28 &self.internal
29 }
30}