[−]Struct jni_android_sys::java::net::InetSocketAddress
public class InetSocketAddress
Required feature: "java-net-InetSocketAddress"
Methods
impl InetSocketAddress
pub fn new_int<'env>(
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
pub fn new_InetAddress_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InetAddress>>,
arg1: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env InetAddress>>,
arg1: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn new_String_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, InetSocketAddress>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn createUnresolved<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, InetSocketAddress>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Option<Local<'env, InetSocketAddress>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-net-InetSocketAddress"
pub fn getPort<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getAddress<'env>(
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, InetAddress>>, Local<'env, Throwable>>
Required features: "java-net-InetAddress"
pub fn getHostName<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getHostString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn isUnresolved<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
Methods from Deref<Target = SocketAddress>
Trait Implementations
impl AsJValue for InetSocketAddress
impl AsValidJObjectAndEnv for InetSocketAddress
impl Deref for InetSocketAddress
impl JniType for InetSocketAddress
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for InetSocketAddress
impl !Send for InetSocketAddress
impl !Sync for InetSocketAddress
impl Unpin for InetSocketAddress
impl UnwindSafe for InetSocketAddress
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>,