326 lines
154 KiB
HTML
326 lines
154 KiB
HTML
<!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 mock wallet data source that implements the bare minimum necessary to function."><title>MockWalletDb in zcash_client_backend::data_api::testing - 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" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-20739d33.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="zcash_client_backend" data-themes="" data-resource-suffix="" data-rustdoc-version="1.88.0-nightly (2e6882ac5 2025-05-05)" data-channel="nightly" data-search-js="search-f7877310.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-4e99c027.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-7ef8a74a.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc struct"><!--[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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../zcash_client_backend/index.html">zcash_<wbr>client_<wbr>backend</a><span class="version">0.18.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Mock<wbr>Wallet<wbr>Db</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.network" title="network">network</a></li><li><a href="#structfield.orchard_tree" title="orchard_tree">orchard_tree</a></li><li><a href="#structfield.sapling_tree" title="sapling_tree">sapling_tree</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.new" title="new">new</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-InputSource-for-MockWalletDb" title="InputSource">InputSource</a></li><li><a href="#impl-WalletCommitmentTrees-for-MockWalletDb" title="WalletCommitmentTrees">WalletCommitmentTrees</a></li><li><a href="#impl-WalletRead-for-MockWalletDb" title="WalletRead">WalletRead</a></li><li><a href="#impl-WalletWrite-for-MockWalletDb" title="WalletWrite">WalletWrite</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-MockWalletDb" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-MockWalletDb" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-MockWalletDb" title="Send">Send</a></li><li><a href="#impl-Sync-for-MockWalletDb" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-MockWalletDb" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-MockWalletDb" 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<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-Conv-for-T" title="Conv">Conv</a></li><li><a href="#impl-FmtForward-for-T" title="FmtForward">FmtForward</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></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<U>">Into<U></a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-IntoRequest%3CT%3E-for-T" title="IntoRequest<T>">IntoRequest<T></a></li><li><a href="#impl-LayerExt%3CL%3E-for-L" title="LayerExt<L>">LayerExt<L></a></li><li><a href="#impl-Pipe-for-T" title="Pipe">Pipe</a></li><li><a href="#impl-Pointable-for-T" title="Pointable">Pointable</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-Tap-for-T" title="Tap">Tap</a></li><li><a href="#impl-TryConv-for-T" title="TryConv">TryConv</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip<V>">VZip<V></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 zcash_<wbr>client_<wbr>backend::<wbr>data_<wbr>api::<wbr>testing</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"><div class="rustdoc-breadcrumbs"><a href="../../index.html">zcash_client_backend</a>::<wbr><a href="../index.html">data_api</a>::<wbr><a href="index.html">testing</a></div><h1>Struct <span class="struct">MockWalletDb</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/zcash_client_backend/data_api/testing.rs.html#2454-2467">Source</a> </span></div><pre class="rust item-decl"><code>pub struct MockWalletDb {
|
||
pub network: Network,
|
||
pub sapling_tree: ShardTree<MemoryShardStore<Node, BlockHeight>, { _ }, SAPLING_SHARD_HEIGHT>,
|
||
pub orchard_tree: ShardTree<MemoryShardStore<MerkleHashOrchard, BlockHeight>, { _ }, ORCHARD_SHARD_HEIGHT>,
|
||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>test-dependencies</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A mock wallet data source that implements the bare minimum necessary to function.</p>
|
||
</div></details><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.network" class="structfield section-header"><a href="#structfield.network" class="anchor field">§</a><code>network: Network</code></span><span id="structfield.sapling_tree" class="structfield section-header"><a href="#structfield.sapling_tree" class="anchor field">§</a><code>sapling_tree: ShardTree<MemoryShardStore<Node, BlockHeight>, { _ }, SAPLING_SHARD_HEIGHT></code></span><span id="structfield.orchard_tree" class="structfield section-header"><a href="#structfield.orchard_tree" class="anchor field">§</a><code>orchard_tree: ShardTree<MemoryShardStore<MerkleHashOrchard, BlockHeight>, { _ }, ORCHARD_SHARD_HEIGHT></code></span><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span><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-MockWalletDb" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2469-2479">Source</a><a href="#impl-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</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/zcash_client_backend/data_api/testing.rs.html#2471-2478">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(network: Network) -> Self</h4></section></summary><div class="docblock"><p>Constructs a new mock wallet data source.</p>
|
||
</div></details></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-InputSource-for-MockWalletDb" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2481-2514">Source</a><a href="#impl-InputSource-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.InputSource.html" title="trait zcash_client_backend::data_api::InputSource">InputSource</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></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="../../../src/zcash_client_backend/data_api/testing.rs.html#2482">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../trait.InputSource.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>The type of errors produced by a wallet backend.</div></details><details class="toggle" open><summary><section id="associatedtype.NoteRef" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2483">Source</a><a href="#associatedtype.NoteRef" class="anchor">§</a><h4 class="code-header">type <a href="../trait.InputSource.html#associatedtype.NoteRef" class="associatedtype">NoteRef</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Backend-specific note identifier. <a href="../trait.InputSource.html#associatedtype.NoteRef">Read more</a></div></details><details class="toggle" open><summary><section id="associatedtype.AccountId" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2484">Source</a><a href="#associatedtype.AccountId" class="anchor">§</a><h4 class="code-header">type <a href="../trait.InputSource.html#associatedtype.AccountId" class="associatedtype">AccountId</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Backend-specific account identifier. <a href="../trait.InputSource.html#associatedtype.AccountId">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_spendable_note" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2486-2493">Source</a><a href="#method.get_spendable_note" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.InputSource.html#tymethod.get_spendable_note" class="fn">get_spendable_note</a>(
|
||
&self,
|
||
_txid: &TxId,
|
||
_protocol: ShieldedProtocol,
|
||
_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../wallet/struct.ReceivedNote.html" title="struct zcash_client_backend::wallet::ReceivedNote">ReceivedNote</a><Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.NoteRef" title="type zcash_client_backend::data_api::InputSource::NoteRef">NoteRef</a>, <a class="enum" href="../../wallet/enum.Note.html" title="enum zcash_client_backend::wallet::Note">Note</a>>>, Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.Error" title="type zcash_client_backend::data_api::InputSource::Error">Error</a>></h4></section></summary><div class='docblock'>Fetches a spendable note by indexing into a transaction’s shielded outputs for the
|
||
specified shielded protocol. <a href="../trait.InputSource.html#tymethod.get_spendable_note">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.select_spendable_notes" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2495-2504">Source</a><a href="#method.select_spendable_notes" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.InputSource.html#tymethod.select_spendable_notes" class="fn">select_spendable_notes</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::InputSource::AccountId">AccountId</a>,
|
||
_target_value: Zatoshis,
|
||
_sources: &[ShieldedProtocol],
|
||
_anchor_height: BlockHeight,
|
||
_exclude: &[Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.NoteRef" title="type zcash_client_backend::data_api::InputSource::NoteRef">NoteRef</a>],
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.SpendableNotes.html" title="struct zcash_client_backend::data_api::SpendableNotes">SpendableNotes</a><Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.NoteRef" title="type zcash_client_backend::data_api::InputSource::NoteRef">NoteRef</a>>, Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.Error" title="type zcash_client_backend::data_api::InputSource::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a list of spendable notes sufficient to cover the specified target value, if
|
||
possible. Only spendable notes corresponding to the specified shielded protocol will
|
||
be included.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_account_metadata" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2506-2513">Source</a><a href="#method.get_account_metadata" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.InputSource.html#tymethod.get_account_metadata" class="fn">get_account_metadata</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::InputSource::AccountId">AccountId</a>,
|
||
_selector: &<a class="enum" href="../enum.NoteFilter.html" title="enum zcash_client_backend::data_api::NoteFilter">NoteFilter</a>,
|
||
_exclude: &[Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.NoteRef" title="type zcash_client_backend::data_api::InputSource::NoteRef">NoteRef</a>],
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.AccountMeta.html" title="struct zcash_client_backend::data_api::AccountMeta">AccountMeta</a>, Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.Error" title="type zcash_client_backend::data_api::InputSource::Error">Error</a>></h4></section></summary><div class='docblock'>Returns metadata describing the structure of the wallet for the specified account. <a href="../trait.InputSource.html#tymethod.get_account_metadata">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_unspent_transparent_output" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api.rs.html#1231-1236">Source</a><a href="#method.get_unspent_transparent_output" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.InputSource.html#method.get_unspent_transparent_output" class="fn">get_unspent_transparent_output</a>(
|
||
&self,
|
||
_outpoint: &OutPoint,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../wallet/struct.WalletTransparentOutput.html" title="struct zcash_client_backend::wallet::WalletTransparentOutput">WalletTransparentOutput</a>>, Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.Error" title="type zcash_client_backend::data_api::InputSource::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Fetches the transparent output corresponding to the provided <code>outpoint</code>. <a href="../trait.InputSource.html#method.get_unspent_transparent_output">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_spendable_transparent_outputs" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api.rs.html#1247-1254">Source</a><a href="#method.get_spendable_transparent_outputs" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.InputSource.html#method.get_spendable_transparent_outputs" class="fn">get_spendable_transparent_outputs</a>(
|
||
&self,
|
||
_address: &TransparentAddress,
|
||
_target_height: BlockHeight,
|
||
_min_confirmations: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../wallet/struct.WalletTransparentOutput.html" title="struct zcash_client_backend::wallet::WalletTransparentOutput">WalletTransparentOutput</a>>, Self::<a class="associatedtype" href="../trait.InputSource.html#associatedtype.Error" title="type zcash_client_backend::data_api::InputSource::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns the list of spendable transparent outputs received by this wallet at <code>address</code>
|
||
such that, at height <code>target_height</code>: <a href="../trait.InputSource.html#method.get_spendable_transparent_outputs">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-WalletCommitmentTrees-for-MockWalletDb" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2826-2901">Source</a><a href="#impl-WalletCommitmentTrees-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.WalletCommitmentTrees.html" title="trait zcash_client_backend::data_api::WalletCommitmentTrees">WalletCommitmentTrees</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.put_orchard_subtree_roots" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2883-2900">Source</a><a href="#method.put_orchard_subtree_roots" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletCommitmentTrees.html#tymethod.put_orchard_subtree_roots" class="fn">put_orchard_subtree_roots</a>(
|
||
&mut self,
|
||
start_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
||
roots: &[<a class="struct" href="../chain/struct.CommitmentTreeRoot.html" title="struct zcash_client_backend::data_api::chain::CommitmentTreeRoot">CommitmentTreeRoot</a><MerkleHashOrchard>],
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, ShardTreeError<Self::<a class="associatedtype" href="../trait.WalletCommitmentTrees.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletCommitmentTrees::Error">Error</a>>></h4></section><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span></summary><div class="docblock"><p>Adds a sequence of note commitment tree subtree roots to the data store.</p>
|
||
</div></details><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2827">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletCommitmentTrees.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><details class="toggle" open><summary><section id="associatedtype.SaplingShardStore" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2828">Source</a><a href="#associatedtype.SaplingShardStore" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletCommitmentTrees.html#associatedtype.SaplingShardStore" class="associatedtype">SaplingShardStore</a><'a> = MemoryShardStore<Node, BlockHeight></h4></section></summary><div class='docblock'>The type of the backing [<code>ShardStore</code>] for the Sapling note commitment tree.</div></details><details class="toggle" open><summary><section id="associatedtype.OrchardShardStore" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2864">Source</a><a href="#associatedtype.OrchardShardStore" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletCommitmentTrees.html#associatedtype.OrchardShardStore" class="associatedtype">OrchardShardStore</a><'a> = MemoryShardStore<MerkleHashOrchard, BlockHeight></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span><div class='docblock'>The type of the backing [<code>ShardStore</code>] for the Orchard note commitment tree.</div></details><details class="toggle method-toggle" open><summary><section id="method.with_sapling_tree_mut" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2830-2842">Source</a><a href="#method.with_sapling_tree_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletCommitmentTrees.html#tymethod.with_sapling_tree_mut" class="fn">with_sapling_tree_mut</a><F, A, E>(&mut self, callback: F) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><A, E><div class="where">where
|
||
for<'a> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&'a mut ShardTree<Self::<a class="associatedtype" href="../trait.WalletCommitmentTrees.html#associatedtype.SaplingShardStore" title="type zcash_client_backend::data_api::WalletCommitmentTrees::SaplingShardStore">SaplingShardStore</a><'a>, { ::sapling::NOTE_COMMITMENT_TREE_DEPTH }, SAPLING_SHARD_HEIGHT>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><A, E>,
|
||
E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><ShardTreeError<<a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>>>,</div></h4></section></summary><div class='docblock'>Evaluates the given callback function with a reference to the Sapling
|
||
note commitment tree maintained by the wallet.</div></details><details class="toggle method-toggle" open><summary><section id="method.put_sapling_subtree_roots" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2844-2861">Source</a><a href="#method.put_sapling_subtree_roots" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletCommitmentTrees.html#tymethod.put_sapling_subtree_roots" class="fn">put_sapling_subtree_roots</a>(
|
||
&mut self,
|
||
start_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>,
|
||
roots: &[<a class="struct" href="../chain/struct.CommitmentTreeRoot.html" title="struct zcash_client_backend::data_api::chain::CommitmentTreeRoot">CommitmentTreeRoot</a><Node>],
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, ShardTreeError<Self::<a class="associatedtype" href="../trait.WalletCommitmentTrees.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletCommitmentTrees::Error">Error</a>>></h4></section></summary><div class='docblock'>Adds a sequence of Sapling note commitment tree subtree roots to the data store. <a href="../trait.WalletCommitmentTrees.html#tymethod.put_sapling_subtree_roots">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_orchard_tree_mut" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2867-2879">Source</a><a href="#method.with_orchard_tree_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletCommitmentTrees.html#tymethod.with_orchard_tree_mut" class="fn">with_orchard_tree_mut</a><F, A, E>(&mut self, callback: F) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><A, E><div class="where">where
|
||
for<'a> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&'a mut ShardTree<Self::<a class="associatedtype" href="../trait.WalletCommitmentTrees.html#associatedtype.OrchardShardStore" title="type zcash_client_backend::data_api::WalletCommitmentTrees::OrchardShardStore">OrchardShardStore</a><'a>, { _ }, ORCHARD_SHARD_HEIGHT>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><A, E>,
|
||
E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><ShardTreeError<Self::<a class="associatedtype" href="../trait.WalletCommitmentTrees.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletCommitmentTrees::Error">Error</a>>>,</div></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span><div class='docblock'>Evaluates the given callback function with a reference to the Orchard
|
||
note commitment tree maintained by the wallet.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-WalletRead-for-MockWalletDb" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2516-2709">Source</a><a href="#impl-WalletRead-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.WalletRead.html" title="trait zcash_client_backend::data_api::WalletRead">WalletRead</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></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="../../../src/zcash_client_backend/data_api/testing.rs.html#2517">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletRead.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>The type of errors that may be generated when querying a wallet data store.</div></details><details class="toggle" open><summary><section id="associatedtype.AccountId-1" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2518">Source</a><a href="#associatedtype.AccountId-1" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletRead.html#associatedtype.AccountId" class="associatedtype">AccountId</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>The type of the account identifier. <a href="../trait.WalletRead.html#associatedtype.AccountId">Read more</a></div></details><details class="toggle" open><summary><section id="associatedtype.Account" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2519">Source</a><a href="#associatedtype.Account" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletRead.html#associatedtype.Account" class="associatedtype">Account</a> = (<<a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a> as <a class="trait" href="../trait.WalletRead.html" title="trait zcash_client_backend::data_api::WalletRead">WalletRead</a>>::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>, <a class="struct" href="../../keys/struct.UnifiedFullViewingKey.html" title="struct zcash_client_backend::keys::UnifiedFullViewingKey">UnifiedFullViewingKey</a>)</h4></section></summary><div class='docblock'>The concrete account type used by this wallet backend.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_account_ids" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2521-2523">Source</a><a href="#method.get_account_ids" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_account_ids" class="fn">get_account_ids</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a vector with the IDs of all accounts known to this wallet.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_account" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2525-2530">Source</a><a href="#method.get_account" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_account" class="fn">get_account</a>(
|
||
&self,
|
||
_account_id: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Account" title="type zcash_client_backend::data_api::WalletRead::Account">Account</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the account corresponding to the given ID, if any.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_derived_account" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2532-2538">Source</a><a href="#method.get_derived_account" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_derived_account" class="fn">get_derived_account</a>(
|
||
&self,
|
||
_seed: &SeedFingerprint,
|
||
_account_id: AccountId,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Account" title="type zcash_client_backend::data_api::WalletRead::Account">Account</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the account corresponding to a given [<code>SeedFingerprint</code>] and
|
||
[<code>zip32::AccountId</code>], if any.</div></details><details class="toggle method-toggle" open><summary><section id="method.validate_seed" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2540-2546">Source</a><a href="#method.validate_seed" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.validate_seed" class="fn">validate_seed</a>(
|
||
&self,
|
||
_account_id: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_seed: &<a class="type" href="https://docs.rs/secrecy/0.8.0/secrecy/vec/type.SecretVec.html" title="type secrecy::vec::SecretVec">SecretVec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Verifies that the given seed corresponds to the viewing key for the specified account. <a href="../trait.WalletRead.html#tymethod.validate_seed">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.seed_relevance_to_derived_accounts" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2548-2553">Source</a><a href="#method.seed_relevance_to_derived_accounts" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.seed_relevance_to_derived_accounts" class="fn">seed_relevance_to_derived_accounts</a>(
|
||
&self,
|
||
_seed: &<a class="type" href="https://docs.rs/secrecy/0.8.0/secrecy/vec/type.SecretVec.html" title="type secrecy::vec::SecretVec">SecretVec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="../enum.SeedRelevance.html" title="enum zcash_client_backend::data_api::SeedRelevance">SeedRelevance</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Checks whether the given seed is relevant to any of the derived accounts (where
|
||
<a href="../trait.Account.html#tymethod.source" title="method zcash_client_backend::data_api::Account::source"><code>Account::source</code></a> is <a href="../enum.AccountSource.html#variant.Derived" title="variant zcash_client_backend::data_api::AccountSource::Derived"><code>AccountSource::Derived</code></a>) in the wallet. <a href="../trait.WalletRead.html#tymethod.seed_relevance_to_derived_accounts">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_account_for_ufvk" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2555-2560">Source</a><a href="#method.get_account_for_ufvk" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_account_for_ufvk" class="fn">get_account_for_ufvk</a>(
|
||
&self,
|
||
_ufvk: &<a class="struct" href="../../keys/struct.UnifiedFullViewingKey.html" title="struct zcash_client_backend::keys::UnifiedFullViewingKey">UnifiedFullViewingKey</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Account" title="type zcash_client_backend::data_api::WalletRead::Account">Account</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the account corresponding to a given <a href="../../keys/struct.UnifiedFullViewingKey.html" title="struct zcash_client_backend::keys::UnifiedFullViewingKey"><code>UnifiedFullViewingKey</code></a>, if any.</div></details><details class="toggle method-toggle" open><summary><section id="method.list_addresses" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2562-2564">Source</a><a href="#method.list_addresses" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.list_addresses" class="fn">list_addresses</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.AddressInfo.html" title="struct zcash_client_backend::data_api::AddressInfo">AddressInfo</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns information about every address tracked for this account.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_last_generated_address_matching" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2566-2572">Source</a><a href="#method.get_last_generated_address_matching" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_last_generated_address_matching" class="fn">get_last_generated_address_matching</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_request: <a class="enum" href="../../keys/enum.UnifiedAddressRequest.html" title="enum zcash_client_backend::keys::UnifiedAddressRequest">UnifiedAddressRequest</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../address/struct.UnifiedAddress.html" title="struct zcash_client_backend::address::UnifiedAddress">UnifiedAddress</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the most recently generated unified address for the specified account that conforms
|
||
to the specified address filter, if the account identifier specified refers to a valid
|
||
account for this wallet. <a href="../trait.WalletRead.html#tymethod.get_last_generated_address_matching">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_account_birthday" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2574-2576">Source</a><a href="#method.get_account_birthday" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_account_birthday" class="fn">get_account_birthday</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><BlockHeight, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the birthday height for the given account, or an error if the account is not known
|
||
to the wallet.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_wallet_birthday" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2578-2580">Source</a><a href="#method.get_wallet_birthday" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_wallet_birthday" class="fn">get_wallet_birthday</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BlockHeight>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the birthday height for the wallet. <a href="../trait.WalletRead.html#tymethod.get_wallet_birthday">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_wallet_summary" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2582-2587">Source</a><a href="#method.get_wallet_summary" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_wallet_summary" class="fn">get_wallet_summary</a>(
|
||
&self,
|
||
_min_confirmations: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.WalletSummary.html" title="struct zcash_client_backend::data_api::WalletSummary">WalletSummary</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a <a href="../struct.WalletSummary.html" title="struct zcash_client_backend::data_api::WalletSummary"><code>WalletSummary</code></a> that represents the sync status, and the wallet balances
|
||
given the specified minimum number of confirmations for all accounts known to the
|
||
wallet; or <code>Ok(None)</code> if the wallet has no summary data available.</div></details><details class="toggle method-toggle" open><summary><section id="method.chain_height" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2589-2591">Source</a><a href="#method.chain_height" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.chain_height" class="fn">chain_height</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BlockHeight>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the height of the chain as known to the wallet as of the most recent call to
|
||
<a href="../trait.WalletWrite.html#tymethod.update_chain_tip" title="method zcash_client_backend::data_api::WalletWrite::update_chain_tip"><code>WalletWrite::update_chain_tip</code></a>. <a href="../trait.WalletRead.html#tymethod.chain_height">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_block_hash" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2593-2595">Source</a><a href="#method.get_block_hash" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_block_hash" class="fn">get_block_hash</a>(
|
||
&self,
|
||
_block_height: BlockHeight,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BlockHash>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the block hash for the block at the given height, if the
|
||
associated block data is available. Returns <code>Ok(None)</code> if the hash
|
||
is not found in the database.</div></details><details class="toggle method-toggle" open><summary><section id="method.block_metadata" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2597-2599">Source</a><a href="#method.block_metadata" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.block_metadata" class="fn">block_metadata</a>(
|
||
&self,
|
||
_height: BlockHeight,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.BlockMetadata.html" title="struct zcash_client_backend::data_api::BlockMetadata">BlockMetadata</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the available block metadata for the block at the specified height, if any.</div></details><details class="toggle method-toggle" open><summary><section id="method.block_fully_scanned" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2601-2603">Source</a><a href="#method.block_fully_scanned" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.block_fully_scanned" class="fn">block_fully_scanned</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.BlockMetadata.html" title="struct zcash_client_backend::data_api::BlockMetadata">BlockMetadata</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the metadata for the block at the height to which the wallet has been fully
|
||
scanned. <a href="../trait.WalletRead.html#tymethod.block_fully_scanned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_max_height_hash" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2605-2607">Source</a><a href="#method.get_max_height_hash" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_max_height_hash" class="fn">get_max_height_hash</a>(
|
||
&self,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(BlockHeight, BlockHash)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the block height and hash for the block at the maximum scanned block height. <a href="../trait.WalletRead.html#tymethod.get_max_height_hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.block_max_scanned" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2609-2611">Source</a><a href="#method.block_max_scanned" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.block_max_scanned" class="fn">block_max_scanned</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../struct.BlockMetadata.html" title="struct zcash_client_backend::data_api::BlockMetadata">BlockMetadata</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns block metadata for the maximum height that the wallet has scanned. <a href="../trait.WalletRead.html#tymethod.block_max_scanned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.suggest_scan_ranges" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2613-2615">Source</a><a href="#method.suggest_scan_ranges" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.suggest_scan_ranges" class="fn">suggest_scan_ranges</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../scanning/struct.ScanRange.html" title="struct zcash_client_backend::data_api::scanning::ScanRange">ScanRange</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a vector of suggested scan ranges based upon the current wallet state. <a href="../trait.WalletRead.html#tymethod.suggest_scan_ranges">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_target_and_anchor_heights" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2617-2622">Source</a><a href="#method.get_target_and_anchor_heights" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_target_and_anchor_heights" class="fn">get_target_and_anchor_heights</a>(
|
||
&self,
|
||
_min_confirmations: <a class="type" href="https://doc.rust-lang.org/nightly/core/num/nonzero/type.NonZeroU32.html" title="type core::num::nonzero::NonZeroU32">NonZeroU32</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(BlockHeight, BlockHeight)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the default target height (for the block in which a new
|
||
transaction would be mined) and anchor height (to use for a new
|
||
transaction), given the range of block heights that the backend
|
||
knows about. <a href="../trait.WalletRead.html#tymethod.get_target_and_anchor_heights">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_tx_height" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2624-2626">Source</a><a href="#method.get_tx_height" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_tx_height" class="fn">get_tx_height</a>(&self, _txid: TxId) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><BlockHeight>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the block height in which the specified transaction was mined, or <code>Ok(None)</code> if the
|
||
transaction is not in the main chain.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_unified_full_viewing_keys" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2628-2632">Source</a><a href="#method.get_unified_full_viewing_keys" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_unified_full_viewing_keys" class="fn">get_unified_full_viewing_keys</a>(
|
||
&self,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>, <a class="struct" href="../../keys/struct.UnifiedFullViewingKey.html" title="struct zcash_client_backend::keys::UnifiedFullViewingKey">UnifiedFullViewingKey</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns all unified full viewing keys known to this wallet.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_memo" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2634-2636">Source</a><a href="#method.get_memo" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_memo" class="fn">get_memo</a>(&self, _id_note: <a class="struct" href="../../wallet/struct.NoteId.html" title="struct zcash_client_backend::wallet::NoteId">NoteId</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Memo>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the memo for a note. <a href="../trait.WalletRead.html#tymethod.get_memo">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_transaction" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2638-2640">Source</a><a href="#method.get_transaction" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_transaction" class="fn">get_transaction</a>(
|
||
&self,
|
||
_txid: TxId,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Transaction>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a transaction.</div></details><details class="toggle method-toggle" open><summary><section id="method.get_sapling_nullifiers" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2642-2647">Source</a><a href="#method.get_sapling_nullifiers" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_sapling_nullifiers" class="fn">get_sapling_nullifiers</a>(
|
||
&self,
|
||
_query: <a class="enum" href="../enum.NullifierQuery.html" title="enum zcash_client_backend::data_api::NullifierQuery">NullifierQuery</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>, Nullifier)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns the nullifiers for Sapling notes that the wallet is tracking, along with their
|
||
associated account IDs, that are either unspent or have not yet been confirmed as spent (in
|
||
that a spending transaction known to the wallet has not yet been included in a block).</div></details><details class="toggle method-toggle" open><summary><section id="method.get_orchard_nullifiers" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2650-2655">Source</a><a href="#method.get_orchard_nullifiers" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.get_orchard_nullifiers" class="fn">get_orchard_nullifiers</a>(
|
||
&self,
|
||
_query: <a class="enum" href="../enum.NullifierQuery.html" title="enum zcash_client_backend::data_api::NullifierQuery">NullifierQuery</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>, Nullifier)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>orchard</code></strong> only.</div></span><div class='docblock'>Returns the nullifiers for Orchard notes that the wallet is tracking, along with their
|
||
associated account IDs, that are either unspent or have not yet been confirmed as spent (in
|
||
that a spending transaction known to the wallet has not yet been included in a block).</div></details><details class="toggle method-toggle" open><summary><section id="method.get_transparent_receivers" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2658-2664">Source</a><a href="#method.get_transparent_receivers" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#method.get_transparent_receivers" class="fn">get_transparent_receivers</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_include_change: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><TransparentAddress, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../wallet/struct.TransparentAddressMetadata.html" title="struct zcash_client_backend::wallet::TransparentAddressMetadata">TransparentAddressMetadata</a>>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns the set of non-ephemeral transparent receivers associated with the given
|
||
account controlled by this wallet. <a href="../trait.WalletRead.html#method.get_transparent_receivers">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_transparent_balances" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2667-2673">Source</a><a href="#method.get_transparent_balances" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#method.get_transparent_balances" class="fn">get_transparent_balances</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_max_height: BlockHeight,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a><TransparentAddress, Zatoshis>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns a mapping from each transparent receiver associated with the specified account
|
||
to its not-yet-shielded UTXO balance as of the end of the block at the provided
|
||
<code>max_height</code>, when that balance is non-zero. <a href="../trait.WalletRead.html#method.get_transparent_balances">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_transparent_address_metadata" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2676-2682">Source</a><a href="#method.get_transparent_address_metadata" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#method.get_transparent_address_metadata" class="fn">get_transparent_address_metadata</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_address: &TransparentAddress,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../wallet/struct.TransparentAddressMetadata.html" title="struct zcash_client_backend::wallet::TransparentAddressMetadata">TransparentAddressMetadata</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns the metadata associated with a given transparent receiver in an account
|
||
controlled by this wallet, if available. <a href="../trait.WalletRead.html#method.get_transparent_address_metadata">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_known_ephemeral_addresses" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2685-2691">Source</a><a href="#method.get_known_ephemeral_addresses" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#method.get_known_ephemeral_addresses" class="fn">get_known_ephemeral_addresses</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_index_range: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html" title="struct core::ops::range::Range">Range</a><NonHardenedChildIndex>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(TransparentAddress, <a class="struct" href="../../wallet/struct.TransparentAddressMetadata.html" title="struct zcash_client_backend::wallet::TransparentAddressMetadata">TransparentAddressMetadata</a>)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns a vector of ephemeral transparent addresses associated with the given
|
||
account controlled by this wallet, along with their metadata. The result includes
|
||
reserved addresses, and addresses for the backend’s configured gap limit worth
|
||
of additional indices (capped to the maximum index). <a href="../trait.WalletRead.html#method.get_known_ephemeral_addresses">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.utxo_query_height" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2694-2696">Source</a><a href="#method.utxo_query_height" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.utxo_query_height" class="fn">utxo_query_height</a>(
|
||
&self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><BlockHeight, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Returns the maximum block height at which a transparent output belonging to the wallet has
|
||
been observed. <a href="../trait.WalletRead.html#tymethod.utxo_query_height">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.find_account_for_ephemeral_address" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2699-2704">Source</a><a href="#method.find_account_for_ephemeral_address" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#method.find_account_for_ephemeral_address" class="fn">find_account_for_ephemeral_address</a>(
|
||
&self,
|
||
_address: &TransparentAddress,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>If a given ephemeral address might have been reserved, i.e. would be included in
|
||
the result of <code>get_known_ephemeral_addresses(account_id, None)</code> for any of the
|
||
wallet’s accounts, then return <code>Ok(Some(account_id))</code>. Otherwise return <code>Ok(None)</code>. <a href="../trait.WalletRead.html#method.find_account_for_ephemeral_address">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.transaction_data_requests" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2706-2708">Source</a><a href="#method.transaction_data_requests" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletRead.html#tymethod.transaction_data_requests" class="fn">transaction_data_requests</a>(
|
||
&self,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="enum" href="../enum.TransactionDataRequest.html" title="enum zcash_client_backend::data_api::TransactionDataRequest">TransactionDataRequest</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Returns a vector of <a href="../enum.TransactionDataRequest.html" title="enum zcash_client_backend::data_api::TransactionDataRequest"><code>TransactionDataRequest</code></a> values that describe information needed by
|
||
the wallet to complete its view of transaction history. <a href="../trait.WalletRead.html#tymethod.transaction_data_requests">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-WalletWrite-for-MockWalletDb" class="impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2711-2824">Source</a><a href="#impl-WalletWrite-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../trait.WalletWrite.html" title="trait zcash_client_backend::data_api::WalletWrite">WalletWrite</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.put_received_transparent_utxo" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2801-2806">Source</a><a href="#method.put_received_transparent_utxo" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.put_received_transparent_utxo" class="fn">put_received_transparent_utxo</a>(
|
||
&mut self,
|
||
_output: &<a class="struct" href="../../wallet/struct.WalletTransparentOutput.html" title="struct zcash_client_backend::wallet::WalletTransparentOutput">WalletTransparentOutput</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="../trait.WalletWrite.html#associatedtype.UtxoRef" title="type zcash_client_backend::data_api::WalletWrite::UtxoRef">UtxoRef</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class="docblock"><p>Adds a transparent UTXO received by the wallet to the data store.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.UtxoRef" class="associatedtype trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2712">Source</a><a href="#associatedtype.UtxoRef" class="anchor">§</a><h4 class="code-header">type <a href="../trait.WalletWrite.html#associatedtype.UtxoRef" class="associatedtype">UtxoRef</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>The type of identifiers used to look up transparent UTXOs.</div></details><details class="toggle method-toggle" open><summary><section id="method.create_account" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2714-2725">Source</a><a href="#method.create_account" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.create_account" class="fn">create_account</a>(
|
||
&mut self,
|
||
_account_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
seed: &<a class="type" href="https://docs.rs/secrecy/0.8.0/secrecy/vec/type.SecretVec.html" title="type secrecy::vec::SecretVec">SecretVec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>,
|
||
_birthday: &<a class="struct" href="../struct.AccountBirthday.html" title="struct zcash_client_backend::data_api::AccountBirthday">AccountBirthday</a>,
|
||
_key_source: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>, <a class="struct" href="../../keys/struct.UnifiedSpendingKey.html" title="struct zcash_client_backend::keys::UnifiedSpendingKey">UnifiedSpendingKey</a>), Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Tells the wallet to track the next available account-level spend authority, given the
|
||
current set of <a href="https://zips.z.cash/zip-0316">ZIP 316</a> account identifiers known to the wallet database. <a href="../trait.WalletWrite.html#tymethod.create_account">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.import_account_hd" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2727-2736">Source</a><a href="#method.import_account_hd" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.import_account_hd" class="fn">import_account_hd</a>(
|
||
&mut self,
|
||
_account_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_seed: &<a class="type" href="https://docs.rs/secrecy/0.8.0/secrecy/vec/type.SecretVec.html" title="type secrecy::vec::SecretVec">SecretVec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>,
|
||
_account_index: AccountId,
|
||
_birthday: &<a class="struct" href="../struct.AccountBirthday.html" title="struct zcash_client_backend::data_api::AccountBirthday">AccountBirthday</a>,
|
||
_key_source: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><(Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Account" title="type zcash_client_backend::data_api::WalletRead::Account">Account</a>, <a class="struct" href="../../keys/struct.UnifiedSpendingKey.html" title="struct zcash_client_backend::keys::UnifiedSpendingKey">UnifiedSpendingKey</a>), Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Tells the wallet to track a specific account index for a given seed. <a href="../trait.WalletWrite.html#tymethod.import_account_hd">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.import_account_ufvk" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2738-2747">Source</a><a href="#method.import_account_ufvk" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.import_account_ufvk" class="fn">import_account_ufvk</a>(
|
||
&mut self,
|
||
_account_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>,
|
||
_unified_key: &<a class="struct" href="../../keys/struct.UnifiedFullViewingKey.html" title="struct zcash_client_backend::keys::UnifiedFullViewingKey">UnifiedFullViewingKey</a>,
|
||
_birthday: &<a class="struct" href="../struct.AccountBirthday.html" title="struct zcash_client_backend::data_api::AccountBirthday">AccountBirthday</a>,
|
||
_purpose: <a class="enum" href="../enum.AccountPurpose.html" title="enum zcash_client_backend::data_api::AccountPurpose">AccountPurpose</a>,
|
||
_key_source: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Account" title="type zcash_client_backend::data_api::WalletRead::Account">Account</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Tells the wallet to track an account using a unified full viewing key. <a href="../trait.WalletWrite.html#tymethod.import_account_ufvk">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_next_available_address" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2749-2755">Source</a><a href="#method.get_next_available_address" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.get_next_available_address" class="fn">get_next_available_address</a>(
|
||
&mut self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_request: <a class="enum" href="../../keys/enum.UnifiedAddressRequest.html" title="enum zcash_client_backend::keys::UnifiedAddressRequest">UnifiedAddressRequest</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../address/struct.UnifiedAddress.html" title="struct zcash_client_backend::address::UnifiedAddress">UnifiedAddress</a>, DiversifierIndex)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Generates, persists, and marks as exposed the next available diversified address for the
|
||
specified account, given the current addresses known to the wallet. <a href="../trait.WalletWrite.html#tymethod.get_next_available_address">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.get_address_for_index" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2757-2764">Source</a><a href="#method.get_address_for_index" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.get_address_for_index" class="fn">get_address_for_index</a>(
|
||
&mut self,
|
||
_account: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_diversifier_index: DiversifierIndex,
|
||
_request: <a class="enum" href="../../keys/enum.UnifiedAddressRequest.html" title="enum zcash_client_backend::keys::UnifiedAddressRequest">UnifiedAddressRequest</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../address/struct.UnifiedAddress.html" title="struct zcash_client_backend::address::UnifiedAddress">UnifiedAddress</a>>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Generates, persists, and marks as exposed a diversified address for the specified account
|
||
at the provided diversifier index. <a href="../trait.WalletWrite.html#tymethod.get_address_for_index">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.put_blocks" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2767-2773">Source</a><a href="#method.put_blocks" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.put_blocks" class="fn">put_blocks</a>(
|
||
&mut self,
|
||
_from_state: &<a class="struct" href="../chain/struct.ChainState.html" title="struct zcash_client_backend::data_api::chain::ChainState">ChainState</a>,
|
||
_blocks: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../struct.ScannedBlock.html" title="struct zcash_client_backend::data_api::ScannedBlock">ScannedBlock</a><Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Updates the state of the wallet database by persisting the provided block information,
|
||
along with the note commitments that were detected when scanning the block for transactions
|
||
pertaining to this wallet. <a href="../trait.WalletWrite.html#tymethod.put_blocks">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.update_chain_tip" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2775-2777">Source</a><a href="#method.update_chain_tip" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.update_chain_tip" class="fn">update_chain_tip</a>(
|
||
&mut self,
|
||
_tip_height: BlockHeight,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Updates the wallet’s view of the blockchain. <a href="../trait.WalletWrite.html#tymethod.update_chain_tip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.store_decrypted_tx" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2779-2784">Source</a><a href="#method.store_decrypted_tx" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.store_decrypted_tx" class="fn">store_decrypted_tx</a>(
|
||
&mut self,
|
||
_received_tx: <a class="struct" href="../struct.DecryptedTransaction.html" title="struct zcash_client_backend::data_api::DecryptedTransaction">DecryptedTransaction</a><'_, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Caches a decrypted transaction in the persistent wallet store.</div></details><details class="toggle method-toggle" open><summary><section id="method.store_transactions_to_be_sent" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2786-2791">Source</a><a href="#method.store_transactions_to_be_sent" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.store_transactions_to_be_sent" class="fn">store_transactions_to_be_sent</a>(
|
||
&mut self,
|
||
_transactions: &[<a class="struct" href="../struct.SentTransaction.html" title="struct zcash_client_backend::data_api::SentTransaction">SentTransaction</a><'_, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>>],
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Saves information about transactions constructed by the wallet to the persistent
|
||
wallet store. <a href="../trait.WalletWrite.html#tymethod.store_transactions_to_be_sent">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.truncate_to_height" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2793-2798">Source</a><a href="#method.truncate_to_height" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.truncate_to_height" class="fn">truncate_to_height</a>(
|
||
&mut self,
|
||
_block_height: BlockHeight,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><BlockHeight, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Truncates the wallet database to at most the specified height. <a href="../trait.WalletWrite.html#tymethod.truncate_to_height">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.reserve_next_n_ephemeral_addresses" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2809-2815">Source</a><a href="#method.reserve_next_n_ephemeral_addresses" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#method.reserve_next_n_ephemeral_addresses" class="fn">reserve_next_n_ephemeral_addresses</a>(
|
||
&mut self,
|
||
_account_id: Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.AccountId" title="type zcash_client_backend::data_api::WalletRead::AccountId">AccountId</a>,
|
||
_n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(TransparentAddress, <a class="struct" href="../../wallet/struct.TransparentAddressMetadata.html" title="struct zcash_client_backend::wallet::TransparentAddressMetadata">TransparentAddressMetadata</a>)>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>transparent-inputs</code></strong> only.</div></span><div class='docblock'>Reserves the next <code>n</code> available ephemeral addresses for the given account.
|
||
This cannot be undone, so as far as possible, errors associated with transaction
|
||
construction should have been reported before calling this method. <a href="../trait.WalletWrite.html#method.reserve_next_n_ephemeral_addresses">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.set_transaction_status" class="method trait-impl"><a class="src rightside" href="../../../src/zcash_client_backend/data_api/testing.rs.html#2817-2823">Source</a><a href="#method.set_transaction_status" class="anchor">§</a><h4 class="code-header">fn <a href="../trait.WalletWrite.html#tymethod.set_transaction_status" class="fn">set_transaction_status</a>(
|
||
&mut self,
|
||
_txid: TxId,
|
||
_status: <a class="enum" href="../enum.TransactionStatus.html" title="enum zcash_client_backend::data_api::TransactionStatus">TransactionStatus</a>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../trait.WalletRead.html#associatedtype.Error" title="type zcash_client_backend::data_api::WalletRead::Error">Error</a>></h4></section></summary><div class='docblock'>Updates the wallet backend with respect to the status of a specific transaction, from the
|
||
perspective of the main chain. <a href="../trait.WalletWrite.html#tymethod.set_transaction_status">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-MockWalletDb" class="impl"><a href="#impl-Freeze-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section><section id="impl-RefUnwindSafe-for-MockWalletDb" class="impl"><a href="#impl-RefUnwindSafe-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section><section id="impl-Send-for-MockWalletDb" class="impl"><a href="#impl-Send-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section><section id="impl-Sync-for-MockWalletDb" class="impl"><a href="#impl-Sync-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section><section id="impl-Unpin-for-MockWalletDb" class="impl"><a href="#impl-Unpin-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</a></h3></section><section id="impl-UnwindSafe-for-MockWalletDb" class="impl"><a href="#impl-UnwindSafe-for-MockWalletDb" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.MockWalletDb.html" title="struct zcash_client_backend::data_api::testing::MockWalletDb">MockWalletDb</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/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Conv-for-T" class="impl"><a href="#impl-Conv-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Conv for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.conv" class="method trait-impl"><a href="#method.conv" class="anchor">§</a><h4 class="code-header">fn <a class="fn">conv</a><T>(self) -> T<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into <code>T</code> using <code>Into<T></code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FmtForward-for-T" class="impl"><a href="#impl-FmtForward-for-T" class="anchor">§</a><h3 class="code-header">impl<T> FmtForward for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt_binary" class="method trait-impl"><a href="#method.fmt_binary" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_binary</a>(self) -> FmtBinary<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>Binary</code> implementation when <code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_display" class="method trait-impl"><a href="#method.fmt_display" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_display</a>(self) -> FmtDisplay<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>Display</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_lower_exp" class="method trait-impl"><a href="#method.fmt_lower_exp" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_lower_exp</a>(self) -> FmtLowerExp<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>LowerExp</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_lower_hex" class="method trait-impl"><a href="#method.fmt_lower_hex" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_lower_hex</a>(self) -> FmtLowerHex<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>LowerHex</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_octal" class="method trait-impl"><a href="#method.fmt_octal" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_octal</a>(self) -> FmtOctal<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>Octal</code> implementation when <code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_pointer" class="method trait-impl"><a href="#method.fmt_pointer" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_pointer</a>(self) -> FmtPointer<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>Pointer</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_upper_exp" class="method trait-impl"><a href="#method.fmt_upper_exp" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_upper_exp</a>(self) -> FmtUpperExp<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>UpperExp</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_upper_hex" class="method trait-impl"><a href="#method.fmt_upper_hex" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_upper_hex</a>(self) -> FmtUpperHex<Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>,</div></h4></section></summary><div class='docblock'>Causes <code>self</code> to use its <code>UpperHex</code> implementation when
|
||
<code>Debug</code>-formatted.</div></details><details class="toggle method-toggle" open><summary><section id="method.fmt_list" class="method trait-impl"><a href="#method.fmt_list" class="anchor">§</a><h4 class="code-header">fn <a class="fn">fmt_list</a>(self) -> FmtList<Self><div class="where">where
|
||
&'a Self: for<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></h4></section></summary><div class='docblock'>Formats each item in a sequence. <a>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/nightly/src/core/convert/mod.rs.html#767">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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/nightly/src/core/convert/mod.rs.html#770">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> 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<T> 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) -> Instrumented<Self></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) -> Instrumented<Self></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/nightly/src/core/convert/mod.rs.html#750-752">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</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/nightly/src/core/convert/mod.rs.html#760">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> 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/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left</code> is <code>true</code>.
|
||
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a><F>(self, into_left: F) -> <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a><Self, Self><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
if <code>into_left(&self)</code> returns <code>true</code>.
|
||
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either<Self, Self></code></a>
|
||
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoRequest%3CT%3E-for-T" class="impl"><a href="#impl-IntoRequest%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> IntoRequest<T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_request" class="method trait-impl"><a href="#method.into_request" class="anchor">§</a><h4 class="code-header">fn <a class="fn">into_request</a>(self) -> Request<T></h4></section></summary><div class='docblock'>Wrap the input message <code>T</code> in a <code>tonic::Request</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-LayerExt%3CL%3E-for-L" class="impl"><a href="#impl-LayerExt%3CL%3E-for-L" class="anchor">§</a><h3 class="code-header">impl<L> LayerExt<L> for L</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.named_layer" class="method trait-impl"><a href="#method.named_layer" class="anchor">§</a><h4 class="code-header">fn <a class="fn">named_layer</a><S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S><div class="where">where
|
||
L: Layer<S>,</div></h4></section></summary><div class='docblock'>Applies the layer to a service and wraps it in [<code>Layered</code>].</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pipe-for-T" class="impl"><a href="#impl-Pipe-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Pipe for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/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.pipe" class="method trait-impl"><a href="#method.pipe" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self) -> R) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Pipes by value. This is generally the method you want to use. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_ref" class="method trait-impl"><a href="#method.pipe_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_ref</a><'a, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a Self) -> R) -> R<div class="where">where
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Borrows <code>self</code> and passes that borrow into the pipe function. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_ref_mut" class="method trait-impl"><a href="#method.pipe_ref_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_ref_mut</a><'a, R>(&'a mut self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&'a mut Self) -> R) -> R<div class="where">where
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Mutably borrows <code>self</code> and passes that borrow into the pipe function. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_borrow" class="method trait-impl"><a href="#method.pipe_borrow" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_borrow</a><'a, B, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a B</a>) -> R) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,
|
||
B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Borrows <code>self</code>, then passes <code>self.borrow()</code> into the pipe function. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_borrow_mut" class="method trait-impl"><a href="#method.pipe_borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_borrow_mut</a><'a, B, R>(
|
||
&'a mut self,
|
||
func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut B</a>) -> R,
|
||
) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,
|
||
B: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Mutably borrows <code>self</code>, then passes <code>self.borrow_mut()</code> into the pipe
|
||
function. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_as_ref" class="method trait-impl"><a href="#method.pipe_as_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_as_ref</a><'a, U, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a U</a>) -> R) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><U>,
|
||
U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Borrows <code>self</code>, then passes <code>self.as_ref()</code> into the pipe function.</div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_as_mut" class="method trait-impl"><a href="#method.pipe_as_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_as_mut</a><'a, U, R>(&'a mut self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut U</a>) -> R) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><U>,
|
||
U: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Mutably borrows <code>self</code>, then passes <code>self.as_mut()</code> into the pipe
|
||
function.</div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_deref" class="method trait-impl"><a href="#method.pipe_deref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_deref</a><'a, T, R>(&'a self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a>) -> R) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,
|
||
T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Borrows <code>self</code>, then passes <code>self.deref()</code> into the pipe function.</div></details><details class="toggle method-toggle" open><summary><section id="method.pipe_deref_mut" class="method trait-impl"><a href="#method.pipe_deref_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">pipe_deref_mut</a><'a, T, R>(
|
||
&'a mut self,
|
||
func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut T</a>) -> R,
|
||
) -> R<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,
|
||
T: 'a + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
R: 'a,</div></h4></section></summary><div class='docblock'>Mutably borrows <code>self</code>, then passes <code>self.deref_mut()</code> into the pipe
|
||
function.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Pointable-for-T" class="impl"><a href="#impl-Pointable-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Pointable for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.ALIGN" class="associatedconstant trait-impl"><a href="#associatedconstant.ALIGN" class="anchor">§</a><h4 class="code-header">const <a class="constant">ALIGN</a>: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>The alignment of pointer.</div></details><details class="toggle" open><summary><section id="associatedtype.Init" class="associatedtype trait-impl"><a href="#associatedtype.Init" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Init</a> = T</h4></section></summary><div class='docblock'>The type for initializers.</div></details><details class="toggle method-toggle" open><summary><section id="method.init" class="method trait-impl"><a href="#method.init" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">init</a>(init: <T as Pointable>::Init) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Initializes a with the given initializer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref" class="method trait-impl"><a href="#method.deref" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a T</a></h4></section></summary><div class='docblock'>Dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.deref_mut" class="method trait-impl"><a href="#method.deref_mut" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">deref_mut</a><'a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut T</a></h4></section></summary><div class='docblock'>Mutably dereferences the given pointer. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a href="#method.drop" class="anchor">§</a><h4 class="code-header">unsafe fn <a class="fn">drop</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Drops the object pointed to by the given pointer. <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.17.0/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/typenum/1.17.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.17.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.17.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-Tap-for-T" class="impl"><a href="#impl-Tap-for-T" class="anchor">§</a><h3 class="code-header">impl<T> Tap for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.tap" class="method trait-impl"><a href="#method.tap" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self)) -> Self</h4></section></summary><div class='docblock'>Immutable access to a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_mut" class="method trait-impl"><a href="#method.tap_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_mut</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self)) -> Self</h4></section></summary><div class='docblock'>Mutable access to a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_borrow" class="method trait-impl"><a href="#method.tap_borrow" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_borrow</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&B</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,
|
||
B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Immutable access to the <code>Borrow<B></code> of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_borrow_mut" class="method trait-impl"><a href="#method.tap_borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_borrow_mut</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut B</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,
|
||
B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Mutable access to the <code>BorrowMut<B></code> of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_ref" class="method trait-impl"><a href="#method.tap_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_ref</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&R</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,
|
||
R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Immutable access to the <code>AsRef<R></code> view of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_ref_mut" class="method trait-impl"><a href="#method.tap_ref_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_ref_mut</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,
|
||
R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Mutable access to the <code>AsMut<R></code> view of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_deref" class="method trait-impl"><a href="#method.tap_deref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_deref</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Immutable access to the <code>Deref::Target</code> of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_deref_mut" class="method trait-impl"><a href="#method.tap_deref_mut" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_deref_mut</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Mutable access to the <code>Deref::Target</code> of a value. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.tap_dbg" class="method trait-impl"><a href="#method.tap_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&Self)) -> Self</h4></section></summary><div class='docblock'>Calls <code>.tap()</code> only in debug builds, and is erased in release builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_mut_dbg" class="method trait-impl"><a href="#method.tap_mut_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_mut_dbg</a>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&mut Self)) -> Self</h4></section></summary><div class='docblock'>Calls <code>.tap_mut()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_borrow_dbg" class="method trait-impl"><a href="#method.tap_borrow_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_borrow_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&B</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><B>,
|
||
B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_borrow()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_borrow_mut_dbg" class="method trait-impl"><a href="#method.tap_borrow_mut_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_borrow_mut_dbg</a><B>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut B</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><B>,
|
||
B: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_borrow_mut()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_ref_dbg" class="method trait-impl"><a href="#method.tap_ref_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_ref_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&R</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><R>,
|
||
R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_ref()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_ref_mut_dbg" class="method trait-impl"><a href="#method.tap_ref_mut_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_ref_mut_dbg</a><R>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut R</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><R>,
|
||
R: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_ref_mut()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_deref_dbg" class="method trait-impl"><a href="#method.tap_deref_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_deref_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = T>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_deref()</code> only in debug builds, and is erased in release
|
||
builds.</div></details><details class="toggle method-toggle" open><summary><section id="method.tap_deref_mut_dbg" class="method trait-impl"><a href="#method.tap_deref_mut_dbg" class="anchor">§</a><h4 class="code-header">fn <a class="fn">tap_deref_mut_dbg</a><T>(self, func: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a>)) -> Self<div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a><Target = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>,
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Calls <code>.tap_deref_mut()</code> only in debug builds, and is erased in release
|
||
builds.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryConv-for-T" class="impl"><a href="#impl-TryConv-for-T" class="anchor">§</a><h3 class="code-header">impl<T> TryConv for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_conv" class="method trait-impl"><a href="#method.try_conv" class="anchor">§</a><h4 class="code-header">fn <a class="fn">try_conv</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" title="type core::convert::TryInto::Error">Error</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><T>,</div></h4></section></summary><div class='docblock'>Attempts to convert <code>self</code> into <code>T</code> using <code>TryInto<T></code>. <a>Read more</a></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/nightly/src/core/convert/mod.rs.html#806-808">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#810">Source</a><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/convert/mod.rs.html#813">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></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/nightly/src/core/convert/mod.rs.html#791-793">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#795">Source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/convert/mod.rs.html#798">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></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<V, T> VZip<V> for T<div class="where">where
|
||
V: MultiLane<T>,</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) -> 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<T> 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><S>(self, subscriber: S) -> WithDispatch<Self><div class="where">where
|
||
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><Dispatch>,</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) -> WithDispatch<Self></h4></section></summary><div class='docblock'>Attaches the current <a href="crate::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> |