[]Struct jni_android_sys::android::net::nsd::NsdManager

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

public final class NsdManager

Required feature: "android-net-nsd-NsdManager"

Methods

impl NsdManager

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

registerService

Required features: "android-net-nsd-NsdManager_RegistrationListener", "android-net-nsd-NsdServiceInfo"

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

unregisterService

Required features: "android-net-nsd-NsdManager_RegistrationListener"

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

discoverServices

Required features: "android-net-nsd-NsdManager_DiscoveryListener", "java-lang-String"

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

stopServiceDiscovery

Required features: "android-net-nsd-NsdManager_DiscoveryListener"

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

resolveService

Required features: "android-net-nsd-NsdManager_ResolveListener", "android-net-nsd-NsdServiceInfo"

pub const ACTION_NSD_STATE_CHANGED: &'static str[src]

public static final ACTION_NSD_STATE_CHANGED

pub const EXTRA_NSD_STATE: &'static str[src]

public static final EXTRA_NSD_STATE

pub const FAILURE_ALREADY_ACTIVE: i32[src]

public static final FAILURE_ALREADY_ACTIVE

pub const FAILURE_INTERNAL_ERROR: i32[src]

public static final FAILURE_INTERNAL_ERROR

pub const FAILURE_MAX_LIMIT: i32[src]

public static final FAILURE_MAX_LIMIT

pub const NSD_STATE_DISABLED: i32[src]

public static final NSD_STATE_DISABLED

pub const NSD_STATE_ENABLED: i32[src]

public static final NSD_STATE_ENABLED

pub const PROTOCOL_DNS_SD: i32[src]

public static final PROTOCOL_DNS_SD

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 NsdManager

impl AsValidJObjectAndEnv for NsdManager

impl Deref for NsdManager

type Target = Object

The resulting type after dereferencing.

impl JniType for NsdManager

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.