[]Struct jni_android_sys::java::nio::channels::spi::AbstractSelectableChannel

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

public class AbstractSelectableChannel

Required feature: "java-nio-channels-spi-AbstractSelectableChannel"

Methods

impl AbstractSelectableChannel

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

provider

Required features: "java-nio-channels-spi-SelectorProvider"

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

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

keyFor

Required features: "java-nio-channels-SelectionKey", "java-nio-channels-Selector"

pub fn register<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Selector>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, SelectionKey>>, Local<'env, Throwable>>
[src]

register

Required features: "java-lang-Object", "java-nio-channels-SelectionKey", "java-nio-channels-Selector"

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

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

blockingLock

Required features: "java-lang-Object"

pub fn configureBlocking<'env>(
    &'env self,
    arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>, Local<'env, Throwable>>
[src]

configureBlocking

Required features: "java-nio-channels-SelectableChannel"

Methods from Deref<Target = SelectableChannel>

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

provider

Required features: "java-nio-channels-spi-SelectorProvider"

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

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

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

keyFor

Required features: "java-nio-channels-SelectionKey", "java-nio-channels-Selector"

pub fn register_Selector_int_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Selector>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, SelectionKey>>, Local<'env, Throwable>>
[src]

register

Required features: "java-lang-Object", "java-nio-channels-SelectionKey", "java-nio-channels-Selector"

pub fn register_Selector_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Selector>>,
    arg1: i32
) -> Result<Option<Local<'env, SelectionKey>>, Local<'env, Throwable>>
[src]

register

Required features: "java-nio-channels-SelectionKey", "java-nio-channels-Selector"

pub fn configureBlocking<'env>(
    &'env self,
    arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>, Local<'env, Throwable>>
[src]

configureBlocking

Required features: "java-nio-channels-SelectableChannel"

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

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

blockingLock

Required features: "java-lang-Object"

Trait Implementations

impl AsJValue for AbstractSelectableChannel

impl AsValidJObjectAndEnv for AbstractSelectableChannel

impl Deref for AbstractSelectableChannel

type Target = SelectableChannel

The resulting type after dereferencing.

impl JniType for AbstractSelectableChannel

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.