pub struct SocketTime(/* private fields */);Expand description
Represents a point in time relative to the creation of the socket.
This is an absolute timestamp within the “Socket Epoch”.
Implementations§
Source§impl SocketTime
impl SocketTime
Sourcepub const fn zero() -> SocketTime
pub const fn zero() -> SocketTime
The moment the socket was created (t=0).
pub const fn infinite_future() -> SocketTime
Trait Implementations§
Source§impl Add<Duration> for SocketTime
impl Add<Duration> for SocketTime
Source§type Output = SocketTime
type Output = SocketTime
The resulting type after applying the
+ operator.Source§impl Clone for SocketTime
impl Clone for SocketTime
Source§fn clone(&self) -> SocketTime
fn clone(&self) -> SocketTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SocketTime
impl Debug for SocketTime
Source§impl Ord for SocketTime
impl Ord for SocketTime
Source§fn cmp(&self, other: &SocketTime) -> Ordering
fn cmp(&self, other: &SocketTime) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketTime
impl PartialEq for SocketTime
Source§impl PartialOrd for SocketTime
impl PartialOrd for SocketTime
Source§impl Sub<Duration> for SocketTime
impl Sub<Duration> for SocketTime
Source§type Output = SocketTime
type Output = SocketTime
The resulting type after applying the
- operator.Source§impl Sub for SocketTime
impl Sub for SocketTime
impl Copy for SocketTime
impl Eq for SocketTime
impl StructuralPartialEq for SocketTime
Auto Trait Implementations§
impl Freeze for SocketTime
impl RefUnwindSafe for SocketTime
impl Send for SocketTime
impl Sync for SocketTime
impl Unpin for SocketTime
impl UnwindSafe for SocketTime
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