1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use std::os::raw::*;
use crate::hdfsFS;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hdfsHedgedReadMetrics {
pub hedgedReadOps: u64,
pub hedgedReadOpsWin: u64,
pub hedgedReadOpsInCurThread: u64,
}
extern "C" {
pub fn hdfsGetHedgedReadMetrics(fs: hdfsFS, metrics: *mut *mut hdfsHedgedReadMetrics) -> c_int;
pub fn hdfsFreeHedgedReadMetrics(metrics: *mut hdfsHedgedReadMetrics);
pub fn hdfsGetLastExceptionRootCause() -> *mut c_char;
pub fn hdfsGetLastExceptionStackTrace() -> *mut c_char;
}