#[repr(i32)]pub enum TimeUnit {
Second = 0,
Millisecond = 1,
Microsecond = 2,
Nanosecond = 3,
}Expand description
The unit of a Time value.
Selects the unit passed to or returned by monotonic_time, time_offset,
and convert_time_unit.
ErlNifTimeUnit — NIF 2.10 — OTP 18.3
Variants§
Second = 0
Seconds.
ERL_NIF_SEC — NIF 2.10 — OTP 18.3
Millisecond = 1
Milliseconds.
ERL_NIF_MSEC — NIF 2.10 — OTP 18.3
Microsecond = 2
Microseconds.
ERL_NIF_USEC — NIF 2.10 — OTP 18.3
Nanosecond = 3
Nanoseconds.
ERL_NIF_NSEC — NIF 2.10 — OTP 18.3
Trait Implementations§
impl Copy for TimeUnit
impl Eq for TimeUnit
impl StructuralPartialEq for TimeUnit
Auto Trait Implementations§
impl Freeze for TimeUnit
impl RefUnwindSafe for TimeUnit
impl Send for TimeUnit
impl Sync for TimeUnit
impl Unpin for TimeUnit
impl UnsafeUnpin for TimeUnit
impl UnwindSafe for TimeUnit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more