Struct cassandra_cpp::UuidGen [] [src]

pub struct UuidGen(_);

A UUID generator object.

Instances of the UUID generator object are thread-safe to generate UUIDs.

Methods

impl UuidGen
[src]

[src]

Creates a new UUID generator with custom node information. Note: This object is thread-safe. It is best practice to create and reuse a single object per application.

[src]

Generates a V1 (time) UUID.

[src]

Generates a new V4 (random) UUID

[src]

Generates a V1 (time) UUID for the specified time.

Examples

let generator = UuidGen::default();
let uuid = generator.gen_from_time(1457486866742u64);

Trait Implementations

impl Debug for UuidGen
[src]

[src]

Formats the value using the given formatter.

impl Sync for UuidGen
[src]

impl Send for UuidGen
[src]

impl Drop for UuidGen
[src]

[src]

Executes the destructor for this type. Read more

impl Default for UuidGen
[src]

[src]

Creates a new thread-safe UUID generator