[]Struct jni_android_sys::java::net::Socket

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

public class Socket

Required feature: "java-net-Socket"

Methods

impl Socket

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

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

Socket

Required features: "java-net-Proxy"

pub fn new_String_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Socket

Required features: "java-lang-String"

pub fn new_InetAddress_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env InetAddress>>,
    arg1: i32
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Socket

Required features: "java-net-InetAddress"

pub fn new_String_int_InetAddress_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: impl Into<Option<&'env InetAddress>>,
    arg3: i32
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Socket

Required features: "java-lang-String", "java-net-InetAddress"

pub fn new_InetAddress_int_InetAddress_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env InetAddress>>,
    arg1: i32,
    arg2: impl Into<Option<&'env InetAddress>>,
    arg3: i32
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Socket

Required features: "java-net-InetAddress"

pub fn new_String_int_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32,
    arg2: bool
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Deprecated

Socket

Required features: "java-lang-String"

pub fn new_InetAddress_int_boolean<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env InetAddress>>,
    arg1: i32,
    arg2: bool
) -> Result<Local<'env, Socket>, Local<'env, Throwable>>
[src]

Deprecated

Socket

Required features: "java-net-InetAddress"

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

connect

Required features: "java-net-SocketAddress"

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

connect

Required features: "java-net-SocketAddress"

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

bind

Required features: "java-net-SocketAddress"

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

getInetAddress

Required features: "java-net-InetAddress"

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

getLocalAddress

Required features: "java-net-InetAddress"

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

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

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

getRemoteSocketAddress

Required features: "java-net-SocketAddress"

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

getLocalSocketAddress

Required features: "java-net-SocketAddress"

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

getChannel

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

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

getInputStream

Required features: "java-io-InputStream"

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

getOutputStream

Required features: "java-io-OutputStream"

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

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

pub fn setSoLinger<'env>(
    &'env self,
    arg0: bool,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

toString

Required features: "java-lang-String"

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

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

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

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

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

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

setSocketImplFactory

Required features: "java-net-SocketImplFactory"

pub fn setPerformancePreferences<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

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

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

Trait Implementations

impl AsJValue for Socket

impl AsRef<Closeable> for Socket

impl AsValidJObjectAndEnv for Socket

impl Deref for Socket

type Target = Object

The resulting type after dereferencing.

impl JniType for Socket

Auto Trait Implementations

impl RefUnwindSafe for Socket

impl !Send for Socket

impl !Sync for Socket

impl Unpin for Socket

impl UnwindSafe for Socket

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.