[−]Struct jni_android_sys::android::printservice::PrinterDiscoverySession
public class PrinterDiscoverySession
Required feature: "android-printservice-PrinterDiscoverySession"
Methods
impl PrinterDiscoverySession
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, PrinterDiscoverySession>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, PrinterDiscoverySession>, Local<'env, Throwable>>
pub fn getPrinters<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn addPrinters<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn removePrinters<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn onStartPrinterDiscovery<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn onStopPrinterDiscovery<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn onValidatePrinters<'env>(
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env List>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-List"
pub fn onStartPrinterStateTracking<'env>(
&'env self,
arg0: impl Into<Option<&'env PrinterId>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PrinterId>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-print-PrinterId"
pub fn onRequestCustomPrinterIcon<'env>(
&'env self,
arg0: impl Into<Option<&'env PrinterId>>,
arg1: impl Into<Option<&'env CancellationSignal>>,
arg2: impl Into<Option<&'env CustomPrinterIconCallback>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PrinterId>>,
arg1: impl Into<Option<&'env CancellationSignal>>,
arg2: impl Into<Option<&'env CustomPrinterIconCallback>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-CancellationSignal", "android-print-PrinterId", "android-printservice-CustomPrinterIconCallback"
pub fn onStopPrinterStateTracking<'env>(
&'env self,
arg0: impl Into<Option<&'env PrinterId>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env PrinterId>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-print-PrinterId"
pub fn getTrackedPrinters<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn onDestroy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn isDestroyed<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn isPrinterDiscoveryStarted<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
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 PrinterDiscoverySession
impl AsValidJObjectAndEnv for PrinterDiscoverySession
impl Deref for PrinterDiscoverySession
impl JniType for PrinterDiscoverySession
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for PrinterDiscoverySession
impl !Send for PrinterDiscoverySession
impl !Sync for PrinterDiscoverySession
impl Unpin for PrinterDiscoverySession
impl UnwindSafe for PrinterDiscoverySession
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>,