pub struct DecomposedSonyflake {
pub id: u64,
pub msb: u64,
pub time: u64,
pub sequence: u64,
pub machine_id: u64,
}Expand description
A decomposed Sonyflake.
Fields§
§id: u64The ID.
msb: u64The MSB.
time: u64The time.
sequence: u64The sequence number.
machine_id: u64The machine id.
Implementations§
Source§impl DecomposedSonyflake
impl DecomposedSonyflake
Sourcepub fn nanos_time(&self) -> i64
pub fn nanos_time(&self) -> i64
Returns the timestamp in nanoseconds without epoch.
Auto Trait Implementations§
impl Freeze for DecomposedSonyflake
impl RefUnwindSafe for DecomposedSonyflake
impl Send for DecomposedSonyflake
impl Sync for DecomposedSonyflake
impl Unpin for DecomposedSonyflake
impl UnwindSafe for DecomposedSonyflake
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