[]Struct jni_android_sys::java::time::Clock

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

public class Clock

Required feature: "java-time-Clock"

Methods

impl Clock

pub fn systemUTC<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Clock>>, Local<'env, Throwable>>
[src]

systemUTC

Required features: "java-time-Clock"

pub fn systemDefaultZone<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Clock>>, Local<'env, Throwable>>
[src]

systemDefaultZone

Required features: "java-time-Clock"

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

system

Required features: "java-time-Clock", "java-time-ZoneId"

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

tickSeconds

Required features: "java-time-Clock", "java-time-ZoneId"

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

tickMinutes

Required features: "java-time-Clock", "java-time-ZoneId"

pub fn tick<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Clock>>,
    arg1: impl Into<Option<&'env Duration>>
) -> Result<Option<Local<'env, Clock>>, Local<'env, Throwable>>
[src]

tick

Required features: "java-time-Clock", "java-time-Duration"

pub fn fixed<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Instant>>,
    arg1: impl Into<Option<&'env ZoneId>>
) -> Result<Option<Local<'env, Clock>>, Local<'env, Throwable>>
[src]

fixed

Required features: "java-time-Clock", "java-time-Instant", "java-time-ZoneId"

pub fn offset<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Clock>>,
    arg1: impl Into<Option<&'env Duration>>
) -> Result<Option<Local<'env, Clock>>, Local<'env, Throwable>>
[src]

offset

Required features: "java-time-Clock", "java-time-Duration"

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

getZone

Required features: "java-time-ZoneId"

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

withZone

Required features: "java-time-Clock", "java-time-ZoneId"

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

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

instant

Required features: "java-time-Instant"

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]

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 Clock

impl AsValidJObjectAndEnv for Clock

impl Deref for Clock

type Target = Object

The resulting type after dereferencing.

impl JniType for Clock

Auto Trait Implementations

impl RefUnwindSafe for Clock

impl !Send for Clock

impl !Sync for Clock

impl Unpin for Clock

impl UnwindSafe for Clock

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.