[]Struct jni_android_sys::java::nio::channels::Channels

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

public final class Channels

Required feature: "java-nio-channels-Channels"

Methods

impl Channels

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

newInputStream

Required features: "java-io-InputStream", "java-nio-channels-ReadableByteChannel"

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

newOutputStream

Required features: "java-io-OutputStream", "java-nio-channels-WritableByteChannel"

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

newInputStream

Required features: "java-io-InputStream", "java-nio-channels-AsynchronousByteChannel"

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

newOutputStream

Required features: "java-io-OutputStream", "java-nio-channels-AsynchronousByteChannel"

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

newChannel

Required features: "java-io-InputStream", "java-nio-channels-ReadableByteChannel"

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

newChannel

Required features: "java-io-OutputStream", "java-nio-channels-WritableByteChannel"

pub fn newReader_ReadableByteChannel_CharsetDecoder_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ReadableByteChannel>>,
    arg1: impl Into<Option<&'env CharsetDecoder>>,
    arg2: i32
) -> Result<Option<Local<'env, Reader>>, Local<'env, Throwable>>
[src]

newReader

Required features: "java-io-Reader", "java-nio-channels-ReadableByteChannel", "java-nio-charset-CharsetDecoder"

pub fn newReader_ReadableByteChannel_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ReadableByteChannel>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Reader>>, Local<'env, Throwable>>
[src]

newReader

Required features: "java-io-Reader", "java-lang-String", "java-nio-channels-ReadableByteChannel"

pub fn newWriter_WritableByteChannel_CharsetEncoder_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env WritableByteChannel>>,
    arg1: impl Into<Option<&'env CharsetEncoder>>,
    arg2: i32
) -> Result<Option<Local<'env, Writer>>, Local<'env, Throwable>>
[src]

newWriter

Required features: "java-io-Writer", "java-nio-channels-WritableByteChannel", "java-nio-charset-CharsetEncoder"

pub fn newWriter_WritableByteChannel_String<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env WritableByteChannel>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Writer>>, Local<'env, Throwable>>
[src]

newWriter

Required features: "java-io-Writer", "java-lang-String", "java-nio-channels-WritableByteChannel"

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 Channels

impl AsValidJObjectAndEnv for Channels

impl Deref for Channels

type Target = Object

The resulting type after dereferencing.

impl JniType for Channels

Auto Trait Implementations

impl RefUnwindSafe for Channels

impl !Send for Channels

impl !Sync for Channels

impl Unpin for Channels

impl UnwindSafe for Channels

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.