pub struct PT_ABSTIME(pub u64);
Expand description
System time
Stored as nanoseconds since epoch
Tuple Fields§
§0: u64
Implementations§
Source§impl SystemTime
impl SystemTime
Sourcepub fn to_system_time(&self) -> SystemTime
pub fn to_system_time(&self) -> SystemTime
Convert to std::time::SystemTime
Trait Implementations§
Source§impl Clone for SystemTime
impl Clone for SystemTime
Source§fn clone(&self) -> SystemTime
fn clone(&self) -> SystemTime
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 SystemTime
impl Debug for SystemTime
Source§impl From<SystemTime> for SystemTime
impl From<SystemTime> for SystemTime
Source§fn from(system_time: SystemTime) -> SystemTime
fn from(system_time: SystemTime) -> SystemTime
Convert from std::time::SystemTime
Source§impl FromBytes<'_> for SystemTime
impl FromBytes<'_> for SystemTime
Source§fn from_bytes(buf: &mut &[u8]) -> Result<SystemTime, FromBytesError>where
SystemTime: Sized,
fn from_bytes(buf: &mut &[u8]) -> Result<SystemTime, FromBytesError>where
SystemTime: Sized,
Read the binary representation of a field and return the parsed representation Read more
Source§fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
fn from_maybe_bytes(buf: Option<&mut &'a [u8]>) -> Result<Self, FromBytesError>
Read the binary representation of a field from a buffer that may or may not exist Read more
Source§impl Hash for SystemTime
impl Hash for SystemTime
Source§impl Ord for SystemTime
impl Ord for SystemTime
Source§fn cmp(&self, other: &SystemTime) -> Ordering
fn cmp(&self, other: &SystemTime) -> 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 SystemTime
impl PartialEq for SystemTime
Source§impl PartialOrd for SystemTime
impl PartialOrd for SystemTime
Source§impl ToBytes for SystemTime
impl ToBytes for SystemTime
Source§fn binary_size(&self) -> usize
fn binary_size(&self) -> usize
Return the number of bytes needed to store the field
Source§fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
fn write<W>(&self, writer: W) -> Result<(), Error>where
W: Write,
Write the binary representation to
writer
Source§fn default_repr() -> impl ToBytes
fn default_repr() -> impl ToBytes
Return the default representation for the field type Read more
impl Copy for SystemTime
impl Eq for SystemTime
impl StructuralPartialEq for SystemTime
Auto Trait Implementations§
impl Freeze for SystemTime
impl RefUnwindSafe for SystemTime
impl Send for SystemTime
impl Sync for SystemTime
impl Unpin for SystemTime
impl UnwindSafe for SystemTime
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