Struct fastid::FastIdWorker
source · pub struct FastIdWorker { /* private fields */ }
Implementations§
source§impl FastIdWorker
impl FastIdWorker
pub fn new(machine_id: u64) -> Self
pub fn with_bits( time_bits: usize, machine_bits: usize, sequence_bits: usize, machine_id: u64 ) -> Self
pub fn with_bits_and_epoch( time_bits: usize, machine_bits: usize, sequence_bits: usize, machine_id: u64, timestamp: u64 ) -> Self
pub fn next_id(&self) -> FastId
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FastIdWorker
impl Send for FastIdWorker
impl Sync for FastIdWorker
impl Unpin for FastIdWorker
impl UnwindSafe for FastIdWorker
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