[−]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>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-ServerSocketChannel"
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, ServerSocketChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
Required features: "java-net-SocketAddress", "java-nio-channels-ServerSocketChannel"
pub fn bind_SocketAddress_int<'env>(
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: i32
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SocketAddress>>,
arg1: i32
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
Required features: "java-net-SocketAddress", "java-nio-channels-ServerSocketChannel"
pub fn setOption_SocketOption_Object<'env>(
&'env self,
arg0: impl Into<Option<&'env SocketOption>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SocketOption>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, ServerSocketChannel>>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-net-SocketOption", "java-nio-channels-ServerSocketChannel"
pub fn socket<'env>(
&'env self
) -> Result<Option<Local<'env, ServerSocket>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ServerSocket>>, Local<'env, Throwable>>
Required features: "java-net-ServerSocket"
pub fn accept<'env>(
&'env self
) -> Result<Option<Local<'env, SocketChannel>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SocketChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-SocketChannel"
pub fn getLocalAddress<'env>(
&'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SocketAddress>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, SelectorProvider>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Selector>>
) -> Result<Option<Local<'env, SelectionKey>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Selector>>,
arg1: i32,
arg2: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, SelectionKey>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn configureBlocking<'env>(
&'env self,
arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<Option<Local<'env, SelectableChannel>>, Local<'env, Throwable>>
Required features: "java-nio-channels-SelectableChannel"
Trait Implementations
impl AsJValue for ServerSocketChannel
impl AsRef<NetworkChannel> for ServerSocketChannel
fn as_ref(&self) -> &NetworkChannel
impl AsValidJObjectAndEnv for ServerSocketChannel
impl Deref for ServerSocketChannel
type Target = AbstractSelectableChannel
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for ServerSocketChannel
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ServerSocketChannel
impl !Send for ServerSocketChannel
impl !Sync for ServerSocketChannel
impl Unpin for ServerSocketChannel
impl UnwindSafe for ServerSocketChannel
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,