Struct naia_client::Instant [−]
pub struct Instant { /* fields omitted */ }
Expand description
Represents a specific moment in time
Implementations
impl Instant
impl Instant
pub fn add_millis(&mut self, millis: u32)
pub fn add_millis(&mut self, millis: u32)
Adds a given number of milliseconds to the Instant
Trait Implementations
impl PartialOrd<Instant> for Instant
impl PartialOrd<Instant> for Instant
pub fn partial_cmp(&self, other: &Instant) -> Option<Ordering>
pub fn partial_cmp(&self, other: &Instant) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl StructuralEq for Instant
impl StructuralPartialEq for Instant
Auto Trait Implementations
impl RefUnwindSafe for Instant
impl UnwindSafe for Instant
Blanket Implementations
Mutably borrows from an owned value. Read more