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

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

public class SelectionKey

Required feature: java-nio-channels-SelectionKey

Methods

impl SelectionKey

pub fn channel<'env>(
    &'env self
) -> Result<Option<Local<'env, SelectableChannel>>>
[src]

channel

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

pub fn selector<'env>(&'env self) -> Result<Option<Local<'env, Selector>>>[src]

selector

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

pub fn is_valid<'env>(&'env self) -> Result<bool>[src]

pub fn cancel<'env>(&'env self) -> Result<()>[src]

pub fn interest_ops<'env>(&'env self) -> Result<i32>[src]

pub fn interest_ops_int<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, SelectionKey>>>
[src]

interestOps

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

pub fn ready_ops<'env>(&'env self) -> Result<i32>[src]

pub fn is_readable<'env>(&'env self) -> Result<bool>[src]

pub fn is_writable<'env>(&'env self) -> Result<bool>[src]

pub fn is_connectable<'env>(&'env self) -> Result<bool>[src]

pub fn is_acceptable<'env>(&'env self) -> Result<bool>[src]

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

attach

Required features: "java-lang-Object"

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

attachment

Required features: "java-lang-Object"

pub const OP_ACCEPT: i32[src]

public static final OP_ACCEPT

pub const OP_CONNECT: i32[src]

public static final OP_CONNECT

pub const OP_READ: i32[src]

public static final OP_READ

pub const OP_WRITE: i32[src]

public static final OP_WRITE

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

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

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

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

Trait Implementations

impl Deref for SelectionKey

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for SelectionKey

impl AsJValue for SelectionKey

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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