Struct cassandra_cpp_sys::CassUuid_ [] [src]

#[repr(C)]
pub struct CassUuid_ { pub time_and_version: cass_uint64_t, pub clock_seq_and_node: cass_uint64_t, }

Version 1 (time-based) or version 4 (random) UUID.

@struct CassUuid

Fields

Represents the time and version part of a UUID. The most significant 4 bits represent the version and the bottom 60 bits representing the time part. For version 1 the time part represents the number of 100 nanosecond periods since 00:00:00 UTC, January 1, 1970 (the Epoch). For version 4 the time part is randomly generated.

Represents the clock sequence and the node part of a UUID. The most significant 16 bits represent the clock sequence (except for the most significant bit which is always set) and the bottom 48 bits represent the node part. For version 1 (time-based) the clock sequence part is randomly generated and the node part can be explicitly set, otherwise, it's generated from node unique information. For version 4 both the clock sequence and the node parts are randomly generated.

Trait Implementations

impl Debug for CassUuid_
[src]

[src]

Formats the value using the given formatter.

impl Copy for CassUuid_
[src]

impl Clone for CassUuid_
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more