[]Struct jni_android_sys::android::net::TrafficStats

#[repr(transparent)]
pub struct TrafficStats(_);

public class TrafficStats

Required feature: "android-net-TrafficStats"

Methods

impl TrafficStats

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, TrafficStats>, Local<'env, Throwable>>
[src]

pub fn setThreadStatsTag<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getAndSetThreadStatsTag<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn getThreadStatsTag<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn clearThreadStatsTag<'env>(
    __jni_env: &'env Env
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn setThreadStatsUid<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getThreadStatsUid<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn clearThreadStatsUid<'env>(
    __jni_env: &'env Env
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn tagSocket<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Socket>>
) -> Result<(), Local<'env, Throwable>>
[src]

tagSocket

Required features: "java-net-Socket"

pub fn untagSocket<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Socket>>
) -> Result<(), Local<'env, Throwable>>
[src]

untagSocket

Required features: "java-net-Socket"

pub fn tagDatagramSocket<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DatagramSocket>>
) -> Result<(), Local<'env, Throwable>>
[src]

tagDatagramSocket

Required features: "java-net-DatagramSocket"

pub fn untagDatagramSocket<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env DatagramSocket>>
) -> Result<(), Local<'env, Throwable>>
[src]

untagDatagramSocket

Required features: "java-net-DatagramSocket"

pub fn tagFileDescriptor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

tagFileDescriptor

Required features: "java-io-FileDescriptor"

pub fn untagFileDescriptor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<(), Local<'env, Throwable>>
[src]

untagFileDescriptor

Required features: "java-io-FileDescriptor"

pub fn incrementOperationCount_int<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn incrementOperationCount_int_int<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getMobileTxPackets<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getMobileRxPackets<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getMobileTxBytes<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getMobileRxBytes<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getTotalTxPackets<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getTotalRxPackets<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getTotalTxBytes<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getTotalRxBytes<'env>(
    __jni_env: &'env Env
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getUidTxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getUidRxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getUidTxPackets<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getUidRxPackets<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

pub fn getUidTcpTxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidTcpRxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidUdpTxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidUdpRxBytes<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidTcpTxSegments<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidTcpRxSegments<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidUdpTxPackets<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub fn getUidUdpRxPackets<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

Deprecated

pub const UNSUPPORTED: i32[src]

public static final UNSUPPORTED

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for TrafficStats

impl AsValidJObjectAndEnv for TrafficStats

impl Deref for TrafficStats

type Target = Object

The resulting type after dereferencing.

impl JniType for TrafficStats

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.