Struct rust_distributed_id::bits_allocator::BitsAllocator
source · [−]pub struct BitsAllocator {
pub sign_bits: i32,
pub timestamp_bits: i32,
pub worker_id_bits: i32,
pub sequence_bits: i32,
pub allocate_total_bits: i32,
pub max_delta_seconds: i64,
pub max_worker_id: i64,
pub max_sequence: i64,
pub timestamp_shift: i32,
pub worker_id_shift: i32,
}
Fields
sign_bits: i32
timestamp_bits: i32
worker_id_bits: i32
sequence_bits: i32
allocate_total_bits: i32
max_delta_seconds: i64
max_worker_id: i64
max_sequence: i64
timestamp_shift: i32
worker_id_shift: i32
Implementations
Auto Trait Implementations
impl RefUnwindSafe for BitsAllocator
impl Send for BitsAllocator
impl Sync for BitsAllocator
impl Unpin for BitsAllocator
impl UnwindSafe for BitsAllocator
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