[]Struct jni_android_sys::android::net::VpnService_Builder

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

public class VpnService.Builder

Required feature: "android-net-VpnService_Builder"

Methods

impl VpnService_Builder

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

Builder

Required features: "android-net-VpnService"

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

setSession

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

setConfigureIntent

Required features: "android-app-PendingIntent", "android-net-VpnService_Builder"

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

setMtu

Required features: "android-net-VpnService_Builder"

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

addAddress

Required features: "android-net-VpnService_Builder", "java-net-InetAddress"

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

addAddress

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

addRoute

Required features: "android-net-VpnService_Builder", "java-net-InetAddress"

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

addRoute

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

addDnsServer

Required features: "android-net-VpnService_Builder", "java-net-InetAddress"

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

addDnsServer

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

addSearchDomain

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

allowFamily

Required features: "android-net-VpnService_Builder"

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

addAllowedApplication

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

addDisallowedApplication

Required features: "android-net-VpnService_Builder", "java-lang-String"

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

allowBypass

Required features: "android-net-VpnService_Builder"

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

setBlocking

Required features: "android-net-VpnService_Builder"

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

setUnderlyingNetworks

Required features: "android-net-Network", "android-net-VpnService_Builder"

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

establish

Required features: "android-os-ParcelFileDescriptor"

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 VpnService_Builder

impl AsValidJObjectAndEnv for VpnService_Builder

impl Deref for VpnService_Builder

type Target = Object

The resulting type after dereferencing.

impl JniType for VpnService_Builder

Auto Trait Implementations

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.