Struct timeflake_rs::Timeflake
source · [−]Fields
timestamp: Duration
random: u128
Implementations
sourceimpl Timeflake
impl Timeflake
pub fn parse(data: &str) -> Result<Timeflake, TimeflakeError>
pub fn random() -> Result<Timeflake, TimeflakeError>
pub fn from_values(
timestamp: Duration,
random_val: Option<u128>
) -> Result<Timeflake, TimeflakeError>
pub fn as_u128(&self) -> u128
pub fn get_uuid(&self) -> Uuid
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Timeflake
impl Send for Timeflake
impl Sync for Timeflake
impl Unpin for Timeflake
impl UnwindSafe for Timeflake
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more