Trait droid_wrap::JType

source ·
pub trait JType: JObjRef + JObjNew {
    type Error;

    const CLASS: &'static str;
    const OBJECT_SIG: &'static str;
}
Expand description

用于描述java类的信息。

Required Associated Types§

source

type Error

错误类型。

Required Associated Constants§

source

const CLASS: &'static str

java类的名称。

source

const OBJECT_SIG: &'static str

对象的签名描述。

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl JType for String

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/String"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/String;"

source§

impl<T: JType> JType for Rc<T>

source§

const CLASS: &'static str = T::CLASS

source§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

source§

impl<T: JType> JType for Arc<T>

source§

const CLASS: &'static str = T::CLASS

source§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

source§

impl<T: JType> JType for Mutex<T>

source§

const CLASS: &'static str = T::CLASS

source§

type Error = <T as JType>::Error

source§

const OBJECT_SIG: &'static str = T::OBJECT_SIG

Implementors§

source§

impl JType for Activity

source§

type Error = Error

source§

const CLASS: &'static str = "android/app/Activity"

source§

const OBJECT_SIG: &'static str = "Landroid/app/Activity;"

source§

impl JType for Context

source§

type Error = Error

source§

const CLASS: &'static str = "android/content/Context"

source§

const OBJECT_SIG: &'static str = "Landroid/content/Context;"

source§

impl JType for ContextWrapper

source§

type Error = Error

source§

const CLASS: &'static str = "android/content/ContextWrapper"

source§

const OBJECT_SIG: &'static str = "Landroid/content/ContextWrapper;"

source§

impl JType for Intent

source§

type Error = Error

source§

const CLASS: &'static str = "android/content/Intent"

source§

const OBJECT_SIG: &'static str = "Landroid/content/Intent;"

source§

impl JType for AudioManager

source§

type Error = Error

source§

const CLASS: &'static str = "android/media/AudioManager"

source§

const OBJECT_SIG: &'static str = "Landroid/media/AudioManager;"

source§

impl JType for Build

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build;"

source§

impl JType for Build_VERSION

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build$VERSION"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION;"

source§

impl JType for Build_VERSION_CODES

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/Build$VERSION_CODES"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Build$VERSION_CODES;"

source§

impl JType for Bundle

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/Bundle"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Bundle;"

source§

impl JType for SystemProperties

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/SystemProperties"

source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties;"

source§

impl JType for SystemProperties_Handle

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/SystemProperties_Handle"

source§

const OBJECT_SIG: &'static str = "Landroid/os/SystemProperties_Handle;"

source§

impl JType for VibrationEffect

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/VibrationEffect"

source§

const OBJECT_SIG: &'static str = "Landroid/os/VibrationEffect;"

source§

impl JType for Vibrator

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/Vibrator"

source§

const OBJECT_SIG: &'static str = "Landroid/os/Vibrator;"

source§

impl JType for VibratorManager

source§

type Error = Error

source§

const CLASS: &'static str = "android/os/VibratorManager"

source§

const OBJECT_SIG: &'static str = "Landroid/os/VibratorManager;"

source§

impl JType for TextToSpeech

source§

type Error = Error

source§

const CLASS: &'static str = "android/speech/tts/TextToSpeech"

source§

const OBJECT_SIG: &'static str = "Landroid/speech/tts/TextToSpeech;"

source§

impl JType for EditorInfo

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/inputmethod/EditorInfo"

source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/EditorInfo;"

source§

impl JType for InputMethodManager

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/inputmethod/InputMethodManager"

source§

const OBJECT_SIG: &'static str = "Landroid/view/inputmethod/InputMethodManager;"

source§

impl JType for Display

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/Display"

source§

const OBJECT_SIG: &'static str = "Landroid/view/Display;"

source§

impl JType for InputEvent

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/InputEvent"

source§

const OBJECT_SIG: &'static str = "Landroid/view/InputEvent;"

source§

impl JType for KeyEvent

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/KeyEvent"

source§

const OBJECT_SIG: &'static str = "Landroid/view/KeyEvent;"

source§

impl JType for View

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/View"

source§

const OBJECT_SIG: &'static str = "Landroid/view/View;"

source§

impl JType for ViewGroup

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup;"

source§

impl JType for ViewGroup_LayoutParams

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup$LayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$LayoutParams;"

source§

impl JType for ViewGroup_MarginLayoutParams

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/ViewGroup$MarginLayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/view/ViewGroup$MarginLayoutParams;"

source§

impl JType for Window

source§

type Error = Error

source§

const CLASS: &'static str = "android/view/Window"

source§

const OBJECT_SIG: &'static str = "Landroid/view/Window;"

source§

impl JType for Button

source§

type Error = Error

source§

const CLASS: &'static str = "android/widget/Button"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/Button;"

source§

impl JType for EditText

source§

type Error = Error

source§

const CLASS: &'static str = "android/widget/EditText"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/EditText;"

source§

impl JType for LinearLayout

source§

type Error = Error

source§

const CLASS: &'static str = "android/widget/LinearLayout"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout;"

source§

impl JType for LinearLayout_LayoutParams

source§

type Error = Error

source§

const CLASS: &'static str = "android/widget/LinearLayout$LayoutParams"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/LinearLayout$LayoutParams;"

source§

impl JType for TextView

source§

type Error = Error

source§

const CLASS: &'static str = "android/widget/TextView"

source§

const OBJECT_SIG: &'static str = "Landroid/widget/TextView;"

source§

impl JType for DexClassLoader

source§

type Error = Error

source§

const CLASS: &'static str = "dalvik/system/DexClassLoader"

source§

const OBJECT_SIG: &'static str = "Ldalvik/system/DexClassLoader;"

source§

impl JType for InMemoryDexClassLoader

source§

type Error = Error

source§

const CLASS: &'static str = "dalvik/system/InMemoryDexClassLoader"

source§

const OBJECT_SIG: &'static str = "Ldalvik/system/InMemoryDexClassLoader;"

source§

impl JType for File

source§

type Error = Error

source§

const CLASS: &'static str = "java/io/File"

source§

const OBJECT_SIG: &'static str = "Ljava/io/File;"

source§

impl JType for Executable

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/reflect/Executable"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Executable;"

source§

impl JType for Method

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/reflect/Method"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/reflect/Method;"

source§

impl JType for Boolean

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Boolean"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Boolean;"

source§

impl JType for ClassLoader

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/ClassLoader"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/ClassLoader;"

source§

impl JType for Float

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Float"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Float;"

source§

impl JType for Integer

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Integer"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Integer;"

source§

impl JType for Object

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/Object"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/Object;"

source§

impl JType for System

source§

type Error = Error

source§

const CLASS: &'static str = "java/lang/System"

source§

const OBJECT_SIG: &'static str = "Ljava/lang/System;"

source§

impl JType for ByteBuffer

source§

type Error = Error

source§

const CLASS: &'static str = "java/nio/ByteBuffer"

source§

const OBJECT_SIG: &'static str = "Ljava/nio/ByteBuffer;"