deploy: de38ae62916547ad097c066f94a32e9ba7790eeb

This commit is contained in:
NotAShelf 2025-02-05 00:10:33 +00:00
commit 9a86359447
28502 changed files with 1261284 additions and 0 deletions

View file

@ -0,0 +1,3 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The number of 100 nanosecond ticks between the RFC 9562 epoch (`1582-10-15 00:00:00`) and the Unix epoch (`1970-01-01 00:00:00`)."><title>UUID_TICKS_BETWEEN_EPOCHS in uuid::timestamp - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="uuid" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc constant"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="logo"></a><h2><a href="../../uuid/index.html">uuid</a><span class="version">1.11.0</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In uuid::<wbr>timestamp</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">uuid</a>::<wbr><a href="index.html">timestamp</a></span><h1>Constant <span class="constant">UUID_TICKS_BETWEEN_EPOCHS</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/uuid/timestamp.rs.html#30">Source</a> </span></div><pre class="rust item-decl"><code>pub const UUID_TICKS_BETWEEN_EPOCHS: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a> = 0x01B2_1DD2_1381_4000;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The number of 100 nanosecond ticks between the RFC 9562 epoch
(<code>1582-10-15 00:00:00</code>) and the Unix epoch (<code>1970-01-01 00:00:00</code>).</p>
</div></details></section></div></main></body></html>

View file

@ -0,0 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Default implementations for the `ClockSequence` trait."><title>uuid::timestamp::context - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="uuid" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="logo"></a><h2><a href="../../../uuid/index.html">uuid</a><span class="version">1.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module context</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In uuid::<wbr>timestamp</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../index.html">uuid</a>::<wbr><a href="../index.html">timestamp</a></span><h1>Module <span>context</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/uuid/timestamp.rs.html#439">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Default implementations for the <a href="../trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence"><code>ClockSequence</code></a> trait.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.NoContext.html" title="struct uuid::timestamp::context::NoContext">NoContext</a></div><div class="desc docblock-short">An empty counter that will always return the value <code>0</code>.</div></li><li><div class="item-name"><a class="struct" href="struct.ThreadLocalContext.html" title="struct uuid::timestamp::context::ThreadLocalContext">Thread<wbr>Local<wbr>Context</a></div><div class="desc docblock-short">A wrapper for a context that uses thread-local storage.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["NoContext","ThreadLocalContext"]};

View file

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../uuid/timestamp/context/struct.ThreadLocalContext.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../uuid/timestamp/context/struct.ThreadLocalContext.html">../../../../uuid/timestamp/context/struct.ThreadLocalContext.html</a>...</p>
<script>location.replace("../../../../uuid/timestamp/context/struct.ThreadLocalContext.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

21
uuid/timestamp/index.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Generating UUIDs from timestamps."><title>uuid::timestamp - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="uuid" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="logo"></a><h2><a href="../../uuid/index.html">uuid</a><span class="version">1.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module timestamp</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#timestamp-representations-in-uuids" title="Timestamp representations in UUIDs">Timestamp representations in UUIDs</a></li><li><a href="#references" title="References">References</a></li></ul><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate uuid</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">uuid</a></span><h1>Module <span>timestamp</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/uuid/timestamp.rs.html#1-972">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generating UUIDs from timestamps.</p>
<p>Timestamps are used in a few UUID versions as a source of decentralized
uniqueness (as in versions 1 and 6), and as a way to enable sorting (as
in versions 6 and 7). Timestamps arent encoded the same way by all UUID
versions so this module provides a single <a href="struct.Timestamp.html" title="struct uuid::timestamp::Timestamp"><code>Timestamp</code></a> type that can
convert between them.</p>
<h2 id="timestamp-representations-in-uuids"><a class="doc-anchor" href="#timestamp-representations-in-uuids">§</a>Timestamp representations in UUIDs</h2>
<p>Versions 1 and 6 UUIDs use a bespoke timestamp that consists of the
number of 100ns ticks since <code>1582-10-15 00:00:00</code>, along with
a counter value to avoid duplicates.</p>
<p>Version 7 UUIDs use a more standard timestamp that consists of the
number of millisecond ticks since the Unix epoch (<code>1970-01-01 00:00:00</code>).</p>
<h2 id="references"><a class="doc-anchor" href="#references">§</a>References</h2>
<ul>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-5.1">UUID Version 1 in RFC 9562</a></li>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-5.7">UUID Version 7 in RFC 9562</a></li>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-6.1">Timestamp Considerations in RFC 9562</a></li>
</ul>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="context/index.html" title="mod uuid::timestamp::context">context</a></div><div class="desc docblock-short">Default implementations for the <a href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence"><code>ClockSequence</code></a> trait.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Timestamp.html" title="struct uuid::timestamp::Timestamp">Timestamp</a></div><div class="desc docblock-short">A timestamp that can be encoded into a UUID.</div></li></ul><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="constant" href="constant.UUID_TICKS_BETWEEN_EPOCHS.html" title="constant uuid::timestamp::UUID_TICKS_BETWEEN_EPOCHS">UUID_<wbr>TICKS_<wbr>BETWEEN_<wbr>EPOCHS</a></div><div class="desc docblock-short">The number of 100 nanosecond ticks between the RFC 9562 epoch
(<code>1582-10-15 00:00:00</code>) and the Unix epoch (<code>1970-01-01 00:00:00</code>).</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">Clock<wbr>Sequence</a></div><div class="desc docblock-short">A counter that can be used by versions 1 and 6 UUIDs to support
the uniqueness of timestamps.</div></li></ul></section></div></main></body></html>

View file

@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"constant":["UUID_TICKS_BETWEEN_EPOCHS"],"mod":["context"],"struct":["Timestamp"],"trait":["ClockSequence"]};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,55 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A counter that can be used by versions 1 and 6 UUIDs to support the uniqueness of timestamps."><title>ClockSequence in uuid::timestamp - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="uuid" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.1 (e71f9a9a9 2025-01-27)" data-channel="1.84.1" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../uuid/index.html"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" alt="logo"></a><h2><a href="../../uuid/index.html">uuid</a><span class="version">1.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Clock<wbr>Sequence</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#references" title="References">References</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Output" title="Output">Output</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.generate_sequence" title="generate_sequence">generate_sequence</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.generate_timestamp_sequence" title="generate_timestamp_sequence">generate_timestamp_sequence</a></li><li><a href="#method.usable_bits" title="usable_bits">usable_bits</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ClockSequence-for-%26T" title="&#38;&#39;a T">&#38;&#39;a T</a></li><li><a href="#impl-ClockSequence-for-AssertUnwindSafe%3CC%3E" title="AssertUnwindSafe&#60;C&#62;">AssertUnwindSafe&#60;C&#62;</a></li><li><a href="#impl-ClockSequence-for-Mutex%3CC%3E" title="Mutex&#60;C&#62;">Mutex&#60;C&#62;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In uuid::<wbr>timestamp</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">uuid</a>::<wbr><a href="index.html">timestamp</a></span><h1>Trait <span class="trait">ClockSequence</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/uuid/timestamp.rs.html#372-413">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ClockSequence {
type <a href="#associatedtype.Output" class="associatedtype">Output</a>;
// Required method
fn <a href="#tymethod.generate_sequence" class="fn">generate_sequence</a>(&amp;self, seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>;
// Provided methods
fn <a href="#method.generate_timestamp_sequence" class="fn">generate_timestamp_sequence</a>(
&amp;self,
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
) -&gt; (Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) { ... }
<span class="item-spacer"></span> fn <a href="#method.usable_bits" class="fn">usable_bits</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a>
<span class="where">where Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A counter that can be used by versions 1 and 6 UUIDs to support
the uniqueness of timestamps.</p>
<h2 id="references"><a class="doc-anchor" href="#references">§</a>References</h2>
<ul>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-5.1">UUID Version 1 in RFC 9562</a></li>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-5.6">UUID Version 6 in RFC 9562</a></li>
<li><a href="https://www.ietf.org/rfc/rfc9562.html#section-6.3">UUID Generator States in RFC 9562</a></li>
</ul>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Output" class="method"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#374">Source</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a></h4></section></summary><div class="docblock"><p>The type of sequence returned by this counter.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.generate_sequence" class="method"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#381">Source</a><h4 class="code-header">fn <a href="#tymethod.generate_sequence" class="fn">generate_sequence</a>(&amp;self, seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section></summary><div class="docblock"><p>Get the next value in the sequence to feed into a timestamp.</p>
<p>This method will be called each time a <a href="struct.Timestamp.html" title="struct uuid::timestamp::Timestamp"><code>Timestamp</code></a> is constructed.</p>
<p>Any bits beyond <a href="trait.ClockSequence.html#method.usable_bits" title="method uuid::timestamp::ClockSequence::usable_bits"><code>ClockSequence::usable_bits</code></a> in the output must be unset.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.generate_timestamp_sequence" class="method"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#388-398">Source</a><h4 class="code-header">fn <a href="#method.generate_timestamp_sequence" class="fn">generate_timestamp_sequence</a>(
&amp;self,
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
) -&gt; (Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>)</h4></section></summary><div class="docblock"><p>Get the next value in the sequence, potentially also adjusting the timestamp.</p>
<p>This method should be preferred over <code>generate_sequence</code>.</p>
<p>Any bits beyond <a href="trait.ClockSequence.html#method.usable_bits" title="method uuid::timestamp::ClockSequence::usable_bits"><code>ClockSequence::usable_bits</code></a> in the output must be unset.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.usable_bits" class="method"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#407-412">Source</a><h4 class="code-header">fn <a href="#method.usable_bits" class="fn">usable_bits</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a><div class="where">where
Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>The number of usable bits from the least significant bit in the result of <a href="trait.ClockSequence.html#tymethod.generate_sequence" title="method uuid::timestamp::ClockSequence::generate_sequence"><code>ClockSequence::generate_sequence</code></a>
or <a href="trait.ClockSequence.html#method.generate_timestamp_sequence" title="method uuid::timestamp::ClockSequence::generate_timestamp_sequence"><code>ClockSequence::generate_timestamp_sequence</code></a>.</p>
<p>The number of usable bits must not exceed 128.</p>
<p>The number of usable bits is not expected to change between calls. An implementation of <code>ClockSequence</code> should
always return the same value from this method.</p>
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ClockSequence-for-%26T" class="impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#415-436">Source</a><a href="#impl-ClockSequence-for-%26T" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T: <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.reference.html">&amp;'a T</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#416">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = &lt;T as <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a>&gt;::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_sequence" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#418-420">Source</a><a href="#method.generate_sequence" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.generate_sequence" class="fn">generate_sequence</a>(&amp;self, seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_timestamp_sequence-1" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#422-428">Source</a><a href="#method.generate_timestamp_sequence-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.generate_timestamp_sequence" class="fn">generate_timestamp_sequence</a>(
&amp;self,
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
) -&gt; (Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>)</h4></section><section id="method.usable_bits-1" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#430-435">Source</a><a href="#method.usable_bits-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.usable_bits" class="fn">usable_bits</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a><div class="where">where
Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ClockSequence-for-Mutex%3CC%3E" class="impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#628-655">Source</a><a href="#impl-ClockSequence-for-Mutex%3CC%3E" class="anchor">§</a><h3 class="code-header">impl&lt;C: <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>&gt; <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.1/std/sync/mutex/struct.Mutex.html" title="struct std::sync::mutex::Mutex">Mutex</a>&lt;C&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#629">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = &lt;C as <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a>&gt;::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_sequence-1" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#631-635">Source</a><a href="#method.generate_sequence-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.generate_sequence" class="fn">generate_sequence</a>(&amp;self, seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_timestamp_sequence-2" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#637-645">Source</a><a href="#method.generate_timestamp_sequence-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.generate_timestamp_sequence" class="fn">generate_timestamp_sequence</a>(
&amp;self,
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
) -&gt; (Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>)</h4></section><section id="method.usable_bits-2" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#647-654">Source</a><a href="#method.usable_bits-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.usable_bits" class="fn">usable_bits</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a><div class="where">where
Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ClockSequence-for-AssertUnwindSafe%3CC%3E" class="impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#605-626">Source</a><a href="#impl-ClockSequence-for-AssertUnwindSafe%3CC%3E" class="anchor">§</a><h3 class="code-header">impl&lt;C: <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a>&gt; <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.1/core/panic/unwind_safe/struct.AssertUnwindSafe.html" title="struct core::panic::unwind_safe::AssertUnwindSafe">AssertUnwindSafe</a>&lt;C&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#606">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = &lt;C as <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a>&gt;::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_sequence-2" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#608-610">Source</a><a href="#method.generate_sequence-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.generate_sequence" class="fn">generate_sequence</a>(&amp;self, seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>) -&gt; Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section><section id="method.generate_timestamp_sequence-3" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#612-618">Source</a><a href="#method.generate_timestamp_sequence-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.generate_timestamp_sequence" class="fn">generate_timestamp_sequence</a>(
&amp;self,
seconds: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>,
subsec_nanos: <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>,
) -&gt; (Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u32.html">u32</a>)</h4></section><section id="method.usable_bits-3" class="method trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#620-625">Source</a><a href="#method.usable_bits-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.usable_bits" class="fn">usable_bits</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.usize.html">usize</a><div class="where">where
Self::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-ClockSequence-for-NoContext" class="impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#916-926">Source</a><a href="#impl-ClockSequence-for-NoContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> for <a class="struct" href="context/struct.NoContext.html" title="struct uuid::timestamp::context::NoContext">NoContext</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Output-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#917">Source</a><a href="#associatedtype.Output-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.1/std/primitive.u16.html">u16</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ClockSequence-for-ThreadLocalContext%3CC%3E" class="impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#583-603">Source</a><a href="#impl-ClockSequence-for-ThreadLocalContext%3CC%3E" class="anchor">§</a><h3 class="code-header">impl&lt;C: <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> + 'static&gt; <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a> for <a class="struct" href="context/struct.ThreadLocalContext.html" title="struct uuid::timestamp::context::ThreadLocalContext">ThreadLocalContext</a>&lt;C&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Output-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/uuid/timestamp.rs.html#584">Source</a><a href="#associatedtype.Output-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = &lt;C as <a class="trait" href="trait.ClockSequence.html" title="trait uuid::timestamp::ClockSequence">ClockSequence</a>&gt;::<a class="associatedtype" href="trait.ClockSequence.html#associatedtype.Output" title="type uuid::timestamp::ClockSequence::Output">Output</a></h4></section></div></details></div><script src="../../trait.impl/uuid/timestamp/trait.ClockSequence.js" data-ignore-extern-crates="core,std" async></script></section></div></main></body></html>