Struct naia_socket_shared::Instant
source · pub struct Instant { /* private fields */ }Expand description
Represents a specific moment in time
Implementations§
source§impl Instant
impl Instant
sourcepub fn add_millis(&mut self, millis: u32)
pub fn add_millis(&mut self, millis: u32)
Adds a given number of milliseconds to the Instant
sourcepub fn subtract_millis(&mut self, millis: u32)
pub fn subtract_millis(&mut self, millis: u32)
Subtracts a given number of milliseconds to the Instant
Trait Implementations§
source§impl Ord for Instant
impl Ord for Instant
source§impl PartialEq<Instant> for Instant
impl PartialEq<Instant> for Instant
source§impl PartialOrd<Instant> for Instant
impl PartialOrd<Instant> for Instant
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more