Files
jellytau/api/jellytau_lib/credentials/struct.CredentialStore.html
T

81 lines
49 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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="Credential storage manager"><title>CredentialStore in jellytau_lib::credentials - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.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"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-17e0aaed.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="jellytau_lib" data-themes="" data-resource-suffix="" data-rustdoc-version="1.97.1 (8bab26f4f 2026-07-14)" data-channel="1.97.1" data-search-js="search-fd9372ac.js" data-stringdex-js="stringdex-2da4960a.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-fcd733ba.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-f7c3ffd8.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">CredentialStore</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../jellytau_lib/index.html">jellytau_<wbr>lib</a><span class="version">0.11.6</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Credential<wbr>Store</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.credentials_path" title="credentials_path">credentials_path</a></li><li><a href="#structfield.encryption_key" title="encryption_key">encryption_key</a></li><li><a href="#structfield.legacy_key" title="legacy_key">legacy_key</a></li><li><a href="#structfield.using_keyring" title="using_keyring">using_keyring</a></li></ul><h3><a href="#implementations">Associated Functions</a></h3><ul class="block method"><li><a href="#method.new" title="new">new</a></li><li><a href="#method.test_keyring_available" title="test_keyring_available">test_keyring_available</a></li><li><a href="#method.test_keyring_inner" title="test_keyring_inner">test_keyring_inner</a></li><li><a href="#method.get_key_path" title="get_key_path">get_key_path</a></li><li><a href="#method.get_credentials_path" title="get_credentials_path">get_credentials_path</a></li><li><a href="#method.derive_legacy_encryption_key" title="derive_legacy_encryption_key">derive_legacy_encryption_key</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.decrypt_migrating" title="decrypt_migrating">decrypt_migrating</a></li><li><a href="#method.delete_from_file" title="delete_from_file">delete_from_file</a></li><li><a href="#method.delete_from_keyring" title="delete_from_keyring">delete_from_keyring</a></li><li><a href="#method.delete_token" title="delete_token">delete_token</a></li><li><a href="#method.encrypt" title="encrypt">encrypt</a></li><li><a href="#method.get_from_file" title="get_from_file">get_from_file</a></li><li><a href="#method.get_from_keyring" title="get_from_keyring">get_from_keyring</a></li><li><a href="#method.get_token" title="get_token">get_token</a></li><li><a href="#method.is_using_keyring" title="is_using_keyring">is_using_keyring</a></li><li><a href="#method.load_credentials_file" title="load_credentials_file">load_credentials_file</a></li><li><a href="#method.save_credentials_file" title="save_credentials_file">save_credentials_file</a></li><li><a href="#method.save_to_file" title="save_to_file">save_to_file</a></li><li><a href="#method.save_to_keyring" title="save_to_keyring">save_to_keyring</a></li><li><a href="#method.save_token" title="save_token">save_token</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Default-for-CredentialStore" title="Default">Default</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-CredentialStore" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-CredentialStore" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-CredentialStore" title="Send">Send</a></li><li><a href="#impl-Sync-for-CredentialStore" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-CredentialStore" title="Unpin">Unpin</a></li><li><a href="#impl-UnsafeUnpin-for-CredentialStore" title="UnsafeUnpin">UnsafeUnpin</a></li><li><a href="#impl-UnwindSafe-for-CredentialStore" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-NoneValue-for-T" title="NoneValue">NoneValue</a></li><li><a href="#impl-PolicyExt-for-T" title="PolicyExt">PolicyExt</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In jellytau_<wbr>lib::<wbr>credentials</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">jellytau_lib</a>::<wbr><a href="index.html">credentials</a></div><h1>Struct <span class="struct">Credential<wbr>Store</span>&nbsp;<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/jellytau_lib/credentials.rs.html#188-200">Source</a> </span></div><pre class="rust item-decl"><code>pub struct CredentialStore {
using_keyring: <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a>,
credentials_path: <a class="struct" href="https://doc.rust-lang.org/1.97.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a>,
encryption_key: [<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.array.html">32</a>],
legacy_key: [<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.array.html">32</a>],
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Credential storage manager</p>
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.using_keyring" class="structfield section-header"><a href="#structfield.using_keyring" class="anchor field">§</a><code>using_keyring: <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a></code></span><div class="docblock"><p>Whether were using keyring (true) or encrypted file (false)</p>
</div><span id="structfield.credentials_path" class="structfield section-header"><a href="#structfield.credentials_path" class="anchor field">§</a><code>credentials_path: <a class="struct" href="https://doc.rust-lang.org/1.97.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></code></span><div class="docblock"><p>Path to the encrypted credentials file (fallback)</p>
</div><span id="structfield.encryption_key" class="structfield section-header"><a href="#structfield.encryption_key" class="anchor field">§</a><code>encryption_key: [<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.array.html">32</a>]</code></span><div class="docblock"><p>Encryption key for the file fallback. Random and persisted, so it does
not change when the machine is renamed.</p>
</div><span id="structfield.legacy_key" class="structfield section-header"><a href="#structfield.legacy_key" class="anchor field">§</a><code>legacy_key: [<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.array.html">32</a>]</code></span><div class="docblock"><p>The pre-existing derivation, retained only to read a file written before
the key was persisted. Anything decrypted with it is rewritten under
<code>encryption_key</code>.</p>
</div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-CredentialStore" class="impl"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#202-738">Source</a><a href="#impl-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#204-228">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Create a new credential store, detecting the best available backend</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_using_keyring" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#231-233">Source</a><h4 class="code-header">pub fn <a href="#method.is_using_keyring" class="fn">is_using_keyring</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if were using the secure keyring backend</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.save_token" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#236-255">Source</a><h4 class="code-header">pub fn <a href="#method.save_token" class="fn">save_token</a>(
&amp;self,
user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
token: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="enum.CredentialResult.html" title="enum jellytau_lib::credentials::CredentialResult">CredentialResult</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></summary><div class="docblock"><p>Save an access token for a user</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.get_token" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#258-276">Source</a><h4 class="code-header">pub fn <a href="#method.get_token" class="fn">get_token</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.97.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></summary><div class="docblock"><p>Get an access token for a user</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.delete_token" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#279-285">Source</a><h4 class="code-header">pub fn <a href="#method.delete_token" class="fn">delete_token</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></summary><div class="docblock"><p>Delete an access token for a user</p>
</div></details><section id="method.test_keyring_available" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#289-325">Source</a><h4 class="code-header">fn <a href="#method.test_keyring_available" class="fn">test_keyring_available</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a></h4></section><section id="method.test_keyring_inner" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#328-340">Source</a><h4 class="code-header">fn <a href="#method.test_keyring_inner" class="fn">test_keyring_inner</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a></h4></section><section id="method.save_to_keyring" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#361-421">Source</a><h4 class="code-header">fn <a href="#method.save_to_keyring" class="fn">save_to_keyring</a>(
&amp;self,
user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
token: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><section id="method.get_from_keyring" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#423-487">Source</a><h4 class="code-header">fn <a href="#method.get_from_keyring" class="fn">get_from_keyring</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.97.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><section id="method.delete_from_keyring" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#489-536">Source</a><h4 class="code-header">fn <a href="#method.delete_from_keyring" class="fn">delete_from_keyring</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.get_key_path" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#542-548">Source</a><h4 class="code-header">fn <a href="#method.get_key_path" class="fn">get_key_path</a>() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.97.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></h4></section></summary><div class="docblock"><p>Where the fallback key lives: beside the credentials file, so the two
travel together and a restore that brings one brings the other.</p>
</div></details><section id="method.get_credentials_path" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#550-556">Source</a><h4 class="code-header">fn <a href="#method.get_credentials_path" class="fn">get_credentials_path</a>() -&gt; <a class="struct" href="https://doc.rust-lang.org/1.97.1/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></h4></section><details class="toggle method-toggle" open><summary><section id="method.derive_legacy_encryption_key" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#565-614">Source</a><h4 class="code-header">fn <a href="#method.derive_legacy_encryption_key" class="fn">derive_legacy_encryption_key</a>() -&gt; [<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.u8.html">u8</a>; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.array.html">32</a>]</h4></section></summary><div class="docblock"><p>The key derivation used before keys were persisted.</p>
<p>Kept <strong>only</strong> so a credentials file written by an older build can still
be read once and rewritten under the persisted key. Never used to
encrypt. See the module docs for why it was replaced.</p>
<p>TRACES: UR-012 | IR-014</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.load_credentials_file" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#629-678">Source</a><h4 class="code-header">fn <a href="#method.load_credentials_file" class="fn">load_credentials_file</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://docs.rs/serde_json/1.0.148/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></summary><div class="docblock"><p>Load and decrypt the credential map.</p>
<p>A file that is present but <strong>undecryptable</strong> is deliberately reported as
an <em>empty</em> credential set rather than as an error. The key never leaves
the device it was derived on (Android Keystore keys are never backed up,
and the file fallbacks key is derived from machine identifiers), so a
restored/transferred install gets ciphertext with no key and every read
would fail <em>permanently</em>. Surfacing that as an error made session restore
throw instead of falling back to the login screen: an unrecoverable app
rather than a clean logged-out one. The next successful login re-encrypts
the file with the current key, so the state self-heals.</p>
<p>TRACES: UR-012 | IR-014</p>
</div></details><section id="method.save_credentials_file" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#680-691">Source</a><h4 class="code-header">fn <a href="#method.save_credentials_file" class="fn">save_credentials_file</a>(&amp;self, data: &amp;<a class="enum" href="https://docs.rs/serde_json/1.0.148/serde_json/value/enum.Value.html" title="enum serde_json::value::Value">Value</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><section id="method.encrypt" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#693-695">Source</a><h4 class="code-header">fn <a href="#method.encrypt" class="fn">encrypt</a>(&amp;self, plaintext: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.97.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><details class="toggle method-toggle" open><summary><section id="method.decrypt_migrating" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#704-715">Source</a><h4 class="code-header">fn <a href="#method.decrypt_migrating" class="fn">decrypt_migrating</a>(
&amp;self,
encrypted: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(<a class="struct" href="https://doc.rust-lang.org/1.97.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.bool.html">bool</a>), <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></summary><div class="docblock"><p>Decrypt with the current key, falling back to the legacy derivation.</p>
<p>Returns the plaintext and whether the legacy key was what opened it, so
the caller can rewrite the file under the current key and stop depending
on a derivation that changes when the machine is renamed.</p>
<p>TRACES: UR-012 | IR-014 | UT-014</p>
</div></details><section id="method.save_to_file" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#717-721">Source</a><h4 class="code-header">fn <a href="#method.save_to_file" class="fn">save_to_file</a>(
&amp;self,
user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
token: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><section id="method.get_from_file" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#723-729">Source</a><h4 class="code-header">fn <a href="#method.get_from_file" class="fn">get_from_file</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.97.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section><section id="method.delete_from_file" class="method"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#731-737">Source</a><h4 class="code-header">fn <a href="#method.delete_from_file" class="fn">delete_from_file</a>(&amp;self, user_id: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.unit.html">()</a>, <a class="enum" href="enum.CredentialError.html" title="enum jellytau_lib::credentials::CredentialError">CredentialError</a>&gt;</h4></section></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-CredentialStore" class="impl"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#740-744">Source</a><a href="#impl-Default-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/jellytau_lib/credentials.rs.html#741-743">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.97.1/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-CredentialStore" class="impl"><a href="#impl-Freeze-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-RefUnwindSafe-for-CredentialStore" class="impl"><a href="#impl-RefUnwindSafe-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-Send-for-CredentialStore" class="impl"><a href="#impl-Send-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-Sync-for-CredentialStore" class="impl"><a href="#impl-Sync-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-Unpin-for-CredentialStore" class="impl"><a href="#impl-Unpin-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-UnsafeUnpin-for-CredentialStore" class="impl"><a href="#impl-UnsafeUnpin-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.UnsafeUnpin.html" title="trait core::marker::UnsafeUnpin">UnsafeUnpin</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section><section id="impl-UnwindSafe-for-CredentialStore" class="impl"><a href="#impl-UnwindSafe-for-CredentialStore" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.CredentialStore.html" title="struct jellytau_lib::credentials::CredentialStore">CredentialStore</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/any.rs.html#141">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/any.rs.html#142">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.97.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.97.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.97.1/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.97.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#786">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#789">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#768-770">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#778">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-NoneValue-for-T" class="impl"><a href="#impl-NoneValue-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; NoneValue for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.NoneType" class="associatedtype trait-impl"><a href="#associatedtype.NoneType" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">NoneType</a> = T</h4></section><details class="toggle method-toggle" open><summary><section id="method.null_value" class="method trait-impl"><a href="#method.null_value" class="anchor">§</a><h4 class="code-header">fn <a class="fn">null_value</a>() -&gt; T</h4></section></summary><div class='docblock'>The none-equivalent value.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-PolicyExt-for-T" class="impl"><a href="#impl-PolicyExt-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; PolicyExt for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.97.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.and" class="method trait-impl"><a href="#method.and" class="anchor">§</a><h4 class="code-header">fn <a class="fn">and</a>&lt;P, B, E&gt;(self, other: P) -&gt; And&lt;T, P&gt;<div class="where">where
T: Policy&lt;B, E&gt;,
P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] only if <code>self</code> and <code>other</code> return
<code>Action::Follow</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a class="fn">or</a>&lt;P, B, E&gt;(self, other: P) -&gt; Or&lt;T, P&gt;<div class="where">where
T: Policy&lt;B, E&gt;,
P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] if either <code>self</code> or <code>other</code> returns
<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/typenum/1.19.0/src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.19.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#828-830">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#832">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#835">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#812-814">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#816">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.97.1/src/core/convert/mod.rs.html#819">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.97.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.97.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>