[][src]Struct naia_socket_shared::Instant

pub struct Instant { /* fields omitted */ }

Represents a specific moment in time

Implementations

impl Instant[src]

pub fn now() -> Self[src]

Creates an Instant from the moment the method is called

pub fn elapsed(&self) -> Duration[src]

Returns time elapsed since the Instant

pub fn until(&self) -> Duration[src]

Returns time until the Instant occurs

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

Adds a given number of milliseconds to the Instant

pub fn get_inner(&self) -> Instant[src]

Returns inner Instant implementation

Trait Implementations

impl Clone for Instant[src]

impl Debug for Instant[src]

impl Eq for Instant[src]

impl Ord for Instant[src]

impl PartialEq<Instant> for Instant[src]

impl PartialOrd<Instant> for Instant[src]

impl StructuralEq for Instant[src]

impl StructuralPartialEq for Instant[src]

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>,