[]Struct jni_android_sys::java::lang::InheritableThreadLocal

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

public class InheritableThreadLocal

Required feature: "java-lang-InheritableThreadLocal"

Methods

impl InheritableThreadLocal

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

Methods from Deref<Target = ThreadLocal>

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

get

Required features: "java-lang-Object"

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

set

Required features: "java-lang-Object"

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

Trait Implementations

impl AsJValue for InheritableThreadLocal

impl AsValidJObjectAndEnv for InheritableThreadLocal

impl Deref for InheritableThreadLocal

type Target = ThreadLocal

The resulting type after dereferencing.

impl JniType for InheritableThreadLocal

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.