[−]Struct jni_android_sys::java::security::Policy
public class Policy
Required feature: "java-security-Policy"
Methods
impl Policy
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, Policy>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, Policy>, Local<'env, Throwable>>
pub fn getPolicy<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
Required features: "java-security-Policy"
pub fn setPolicy<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Policy>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Policy>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-security-Policy"
pub fn getInstance_String_Parameters<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters"
pub fn getInstance_String_Parameters_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>,
arg2: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>,
arg2: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters"
pub fn getInstance_String_Parameters_Provider<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>,
arg2: impl Into<Option<&'env Provider>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Policy_Parameters>>,
arg2: impl Into<Option<&'env Provider>>
) -> Result<Option<Local<'env, Policy>>, Local<'env, Throwable>>
Required features: "java-lang-String", "java-security-Policy", "java-security-Policy_Parameters", "java-security-Provider"
pub fn getProvider<'env>(
&'env self
) -> Result<Option<Local<'env, Provider>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Provider>>, Local<'env, Throwable>>
Required features: "java-security-Provider"
pub fn getType<'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 getParameters<'env>(
&'env self
) -> Result<Option<Local<'env, Policy_Parameters>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Policy_Parameters>>, Local<'env, Throwable>>
Required features: "java-security-Policy_Parameters"
pub fn getPermissions_CodeSource<'env>(
&'env self,
arg0: impl Into<Option<&'env CodeSource>>
) -> Result<Option<Local<'env, PermissionCollection>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CodeSource>>
) -> Result<Option<Local<'env, PermissionCollection>>, Local<'env, Throwable>>
Required features: "java-security-CodeSource", "java-security-PermissionCollection"
pub fn getPermissions_ProtectionDomain<'env>(
&'env self,
arg0: impl Into<Option<&'env ProtectionDomain>>
) -> Result<Option<Local<'env, PermissionCollection>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ProtectionDomain>>
) -> Result<Option<Local<'env, PermissionCollection>>, Local<'env, Throwable>>
Required features: "java-security-PermissionCollection", "java-security-ProtectionDomain"
pub fn implies<'env>(
&'env self,
arg0: impl Into<Option<&'env ProtectionDomain>>,
arg1: impl Into<Option<&'env Permission>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ProtectionDomain>>,
arg1: impl Into<Option<&'env Permission>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-security-Permission", "java-security-ProtectionDomain"
pub fn refresh<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn UNSUPPORTED_EMPTY_COLLECTION<'env>(
env: &'env Env
) -> Option<Local<'env, PermissionCollection>>
[src]
env: &'env Env
) -> Option<Local<'env, PermissionCollection>>
get public static final UNSUPPORTED_EMPTY_COLLECTION
Required feature: "java-security-PermissionCollection"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
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 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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Policy
impl AsValidJObjectAndEnv for Policy
impl Deref for Policy
impl JniType for Policy
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Policy
impl !Send for Policy
impl !Sync for Policy
impl Unpin for Policy
impl UnwindSafe for Policy
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>,