[]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 system_utc<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Clock>>>
[src]

systemUTC

Required features: "java-time-Clock"

pub fn system_default_zone<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Clock>>>
[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>>>
[src]

system

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

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

tickSeconds

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

pub fn tick_minutes<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ZoneId>>
) -> Result<Option<Local<'env, Clock>>>
[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>>>
[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>>>
[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>>>
[src]

offset

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

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

getZone

Required features: "java-time-ZoneId"

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

withZone

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

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

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

instant

Required features: "java-time-Instant"

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl Deref for Clock

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Clock

impl AsJValue for Clock

Auto Trait Implementations

impl !Sync for Clock

impl !Send for Clock

impl Unpin for Clock

impl RefUnwindSafe for Clock

impl UnwindSafe for Clock

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]