[]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>>>
[src]

open

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

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

open

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

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

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

bind

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

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

setOption

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

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

shutdownInput

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

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

shutdownOutput

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

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

socket

Required features: "java-net-Socket"

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

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

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

connect

Required features: "java-net-SocketAddress"

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

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

getRemoteAddress

Required features: "java-net-SocketAddress"

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

read

Required features: "java-nio-ByteBuffer"

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

write

Required features: "java-nio-ByteBuffer"

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

getLocalAddress

Required features: "java-net-SocketAddress"

Methods from Deref<Target = AbstractSelectableChannel>

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

provider

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

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

pub fn key_for<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Selector>>
) -> Result<Option<Local<'env, SelectionKey>>>
[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>>>
[src]

register

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

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

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

blockingLock

Required features: "java-lang-Object"

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

configureBlocking

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

Trait Implementations

impl AsRef<ByteChannel> for SocketChannel

impl AsRef<ScatteringByteChannel> for SocketChannel

impl AsRef<GatheringByteChannel> for SocketChannel

impl AsRef<NetworkChannel> for SocketChannel

impl Deref for SocketChannel

type Target = AbstractSelectableChannel

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for SocketChannel

impl AsJValue for SocketChannel

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]