[]Struct jni_android_sys::android::net::Network

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

public class Network

Required feature: "android-net-Network"

Methods

impl Network

pub fn getAllByName<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ObjectArray<InetAddress, Throwable>>>, Local<'env, Throwable>>
[src]

getAllByName

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

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

getByName

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

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

getSocketFactory

Required features: "javax-net-SocketFactory"

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

openConnection

Required features: "java-net-URL", "java-net-URLConnection"

pub fn openConnection_URL_Proxy<'env>(
    &'env self,
    arg0: impl Into<Option<&'env URL>>,
    arg1: impl Into<Option<&'env Proxy>>
) -> Result<Option<Local<'env, URLConnection>>, Local<'env, Throwable>>
[src]

openConnection

Required features: "java-net-Proxy", "java-net-URL", "java-net-URLConnection"

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

bindSocket

Required features: "java-net-DatagramSocket"

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

bindSocket

Required features: "java-net-Socket"

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

bindSocket

Required features: "java-io-FileDescriptor"

pub fn fromNetworkHandle<'env>(
    __jni_env: &'env Env,
    arg0: i64
) -> Result<Option<Local<'env, Network>>, Local<'env, Throwable>>
[src]

fromNetworkHandle

Required features: "android-net-Network"

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

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

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

writeToParcel

Required features: "android-os-Parcel"

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 hashCode<'env>(&'env self) -> Result<i32, 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 CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

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 Network

impl AsRef<Parcelable> for Network

impl AsValidJObjectAndEnv for Network

impl Deref for Network

type Target = Object

The resulting type after dereferencing.

impl JniType for Network

Auto Trait Implementations

impl RefUnwindSafe for Network

impl !Send for Network

impl !Sync for Network

impl Unpin for Network

impl UnwindSafe for Network

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.