pub struct TimestampGen(_);
Generators of client-side, microsecond-precision timestamps.
Note: This generator is thread-safe and can be shared by multiple sessions.
Converts a unix timestamp (in seconds) to the Cassandra "time" type. The "time" type
represents the number of nanoseconds since midnight (range 0 to 86399999999999).
Creates a new monotonically increasing timestamp generator. This generates
microsecond timestamps with the sub-millisecond part generated using a counter.
The implementation guarantees that no more than 1000 timestamps will be generated
for a given clock tick even if shared by multiple session objects. If that rate is
exceeded then a warning is logged and timestamps stop incrementing until the next
clock tick.
Creates a new server-side timestamp generator. This generator allows Cassandra
to assign timestamps server-side.
Note: This is the default timestamp generator.
Executes the destructor for this type. Read more
Formats the value using the given formatter. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static