Struct cassandra_cpp_sys::CassUuid_
source · [−]#[repr(C)]pub struct CassUuid_ {
pub time_and_version: cass_uint64_t,
pub clock_seq_and_node: cass_uint64_t,
}
Expand description
Version 1 (time-based) or version 4 (random) UUID.
@struct CassUuid
Fields
time_and_version: cass_uint64_t
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.
clock_seq_and_node: cass_uint64_t
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
Auto Trait Implementations
impl RefUnwindSafe for CassUuid_
impl Send for CassUuid_
impl Sync for CassUuid_
impl Unpin for CassUuid_
impl UnwindSafe for CassUuid_
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more