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

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

public class SocketChannel

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

Methods

impl SocketChannel

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

open

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

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

open

Required features: "java-net-SocketAddress", "java-nio-channels-SocketChannel"

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

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

bind

Required features: "java-net-SocketAddress", "java-nio-channels-SocketChannel"

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

setOption

Required features: "java-lang-Object", "java-net-SocketOption", "java-nio-channels-SocketChannel"

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

shutdownInput

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

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

shutdownOutput

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

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

socket

Required features: "java-net-Socket"

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

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

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

connect

Required features: "java-net-SocketAddress"

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

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

getRemoteAddress

Required features: "java-net-SocketAddress"

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

read

Required features: "java-nio-ByteBuffer"

pub fn read_ByteBuffer_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
    arg1: i32,
    arg2: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

read

Required features: "java-nio-ByteBuffer"

pub fn read_ByteBuffer_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
[src]

read

Required features: "java-nio-ByteBuffer"

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

write

Required features: "java-nio-ByteBuffer"

pub fn write_ByteBuffer_array_int_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>,
    arg1: i32,
    arg2: i32
) -> Result<i64, Local<'env, Throwable>>
[src]

write

Required features: "java-nio-ByteBuffer"

pub fn write_ByteBuffer_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<ByteBuffer, Throwable>>>
) -> Result<i64, Local<'env, Throwable>>
[src]

write

Required features: "java-nio-ByteBuffer"

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

getLocalAddress

Required features: "java-net-SocketAddress"

Methods from Deref<Target = 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"

Trait Implementations

impl AsJValue for SocketChannel

impl AsRef<ByteChannel> for SocketChannel

impl AsRef<GatheringByteChannel> for SocketChannel

impl AsRef<NetworkChannel> for SocketChannel

impl AsRef<ScatteringByteChannel> for SocketChannel

impl AsValidJObjectAndEnv for SocketChannel

impl Deref for SocketChannel

type Target = AbstractSelectableChannel

The resulting type after dereferencing.

impl JniType for SocketChannel

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.