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: i32timestamp_bits: i32worker_id_bits: i32sequence_bits: i32allocate_total_bits: i32max_delta_seconds: i64max_worker_id: i64max_sequence: i64timestamp_shift: i32worker_id_shift: i32

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.