[−]Struct jni_android_sys::java::nio::channels::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]
__jni_env: &'env Env
) -> Result<Option<Local<'env, SocketChannel>>>
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]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Option<Local<'env, SocketChannel>>>
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]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Option<Local<'env, SocketChannel>>>
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]
&'env self,
arg0: impl Into<Option<&'env SocketOption>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, SocketChannel>>>
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]
&'env self
) -> Result<Option<Local<'env, SocketChannel>>>
Required features: "java-nio-channels-SocketChannel"
pub fn shutdown_output<'env>(
&'env self
) -> Result<Option<Local<'env, SocketChannel>>>[src]
&'env self
) -> Result<Option<Local<'env, SocketChannel>>>
Required features: "java-nio-channels-SocketChannel"
pub fn socket<'env>(&'env self) -> Result<Option<Local<'env, Socket>>>[src]
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]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<bool>
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]
&'env self
) -> Result<Option<Local<'env, SocketAddress>>>
Required features: "java-net-SocketAddress"
pub fn read_byte_buffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32>[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32>
Required features: "java-nio-ByteBuffer"
pub fn write_byte_buffer<'env>(
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32>[src]
&'env self,
arg0: impl Into<Option<&'env ByteBuffer>>
) -> Result<i32>
Required features: "java-nio-ByteBuffer"
pub fn get_local_address<'env>(
&'env self
) -> Result<Option<Local<'env, SocketAddress>>>[src]
&'env self
) -> Result<Option<Local<'env, SocketAddress>>>
Required features: "java-net-SocketAddress"
Methods from Deref<Target = AbstractSelectableChannel>
pub fn provider<'env>(
&'env self
) -> Result<Option<Local<'env, SelectorProvider>>>[src]
&'env self
) -> Result<Option<Local<'env, SelectorProvider>>>
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]
&'env self,
arg0: impl Into<Option<&'env Selector>>
) -> Result<Option<Local<'env, SelectionKey>>>
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]
&'env self,
arg0: impl Into<Option<&'env Selector>>,
arg1: i32,
arg2: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, SelectionKey>>>
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]
Required features: "java-lang-Object"
pub fn configure_blocking<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>>[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>>
Required features: "java-nio-channels-SelectableChannel"
Trait Implementations
impl AsRef<ByteChannel> for SocketChannel
fn as_ref(&self) -> &ByteChannel
impl AsRef<ScatteringByteChannel> for SocketChannel
fn as_ref(&self) -> &ScatteringByteChannel
impl AsRef<GatheringByteChannel> for SocketChannel
fn as_ref(&self) -> &GatheringByteChannel
impl AsRef<NetworkChannel> for SocketChannel
fn as_ref(&self) -> &NetworkChannel
impl Deref for SocketChannel
type Target = AbstractSelectableChannel
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl AsValidJObjectAndEnv for SocketChannel
impl AsJValue for SocketChannel
Auto Trait Implementations
impl !Sync for SocketChannel
impl Unpin for SocketChannel
impl !Send for SocketChannel
impl UnwindSafe for SocketChannel
impl RefUnwindSafe for SocketChannel
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,