[−]Struct jni_android_sys::java::nio::channels::ServerSocketChannel
public class ServerSocketChannel
Required feature: java-nio-channels-ServerSocketChannel
Methods
impl ServerSocketChannel
pub fn open<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, ServerSocketChannel>>>[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, ServerSocketChannel>>>
Required features: "java-nio-channels-ServerSocketChannel"
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, ServerSocketChannel>>>[src]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Option<Local<'env, ServerSocketChannel>>>
Required features: "java-net-SocketAddress", "java-nio-channels-ServerSocketChannel"
pub fn bind_socket_address_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: i32
) -> Result<Option<Local<'env, ServerSocketChannel>>>[src]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: i32
) -> Result<Option<Local<'env, ServerSocketChannel>>>
Required features: "java-net-SocketAddress", "java-nio-channels-ServerSocketChannel"
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, ServerSocketChannel>>>[src]
&'env self,
arg0: impl Into<Option<&'env SocketOption>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, ServerSocketChannel>>>
Required features: "java-lang-Object", "java-net-SocketOption", "java-nio-channels-ServerSocketChannel"
pub fn socket<'env>(&'env self) -> Result<Option<Local<'env, ServerSocket>>>[src]
Required features: "java-net-ServerSocket"
pub fn accept<'env>(&'env self) -> Result<Option<Local<'env, SocketChannel>>>[src]
Required features: "java-nio-channels-SocketChannel"
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<NetworkChannel> for ServerSocketChannel
fn as_ref(&self) -> &NetworkChannel
impl Deref for ServerSocketChannel
type Target = AbstractSelectableChannel
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl AsValidJObjectAndEnv for ServerSocketChannel
impl AsJValue for ServerSocketChannel
Auto Trait Implementations
impl !Sync for ServerSocketChannel
impl Unpin for ServerSocketChannel
impl !Send for ServerSocketChannel
impl UnwindSafe for ServerSocketChannel
impl RefUnwindSafe for ServerSocketChannel
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,