Struct naia_client::Instant[]

pub struct Instant { /* fields omitted */ }

Represents a specific moment in time

Implementations

impl Instant

pub fn now() -> Instant

Creates an Instant from the moment the method is called

pub fn elapsed(&self) -> Duration

Returns time elapsed since the Instant

pub fn until(&self) -> Duration

Returns time until the Instant occurs

pub fn add_millis(&mut self, millis: u32)

Adds a given number of milliseconds to the Instant

pub fn get_inner(&self) -> Instant

Returns inner Instant implementation

Trait Implementations

impl Clone for Instant

impl Debug for Instant

impl Eq for Instant

impl Ord for Instant

impl PartialEq<Instant> for Instant

impl PartialOrd<Instant> for Instant

impl StructuralEq for Instant

impl StructuralPartialEq for Instant

Auto Trait Implementations

impl RefUnwindSafe for Instant

impl Send for Instant

impl Sync for Instant

impl Unpin for Instant

impl UnwindSafe for Instant

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,