]> Untitled Git - bitcoindevkit.org/blob
9b0e8a1a33fc9f299d714151ba9fe04a18ff58fa
[bitcoindevkit.org] /
1 <!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 Network message payload. Proper documentation is available on at Bitcoin Wiki: Protocol Specification"><title>NetworkMessage in bdk_chain::bitcoin::p2p::message - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../../static.files/rustdoc-5d1d17d0.css"><meta name="rustdoc-vars" data-root-path="../../../../" data-static-root-path="../../../../static.files/" data-current-crate="bdk_chain" data-themes="" data-resource-suffix="" data-rustdoc-version="1.86.0-nightly (f3d1d47fd 2025-01-20)" data-channel="nightly" data-search-js="search-ccb196c1.js" data-settings-js="settings-0f613d39.js" ><script src="../../../../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../../../../static.files/noscript-893ab5e7.css"></noscript><link rel="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 enum"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt="logo"></a><h2><a href="../../../../bdk_chain/index.html">bdk_<wbr>chain</a><span class="version">0.21.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Network<wbr>Message</a></h2><h3><a href="#variants">Variants</a></h3><ul class="block variant"><li><a href="#variant.Addr" title="Addr">Addr</a></li><li><a href="#variant.AddrV2" title="AddrV2">AddrV2</a></li><li><a href="#variant.Alert" title="Alert">Alert</a></li><li><a href="#variant.Block" title="Block">Block</a></li><li><a href="#variant.BlockTxn" title="BlockTxn">BlockTxn</a></li><li><a href="#variant.CFCheckpt" title="CFCheckpt">CFCheckpt</a></li><li><a href="#variant.CFHeaders" title="CFHeaders">CFHeaders</a></li><li><a href="#variant.CFilter" title="CFilter">CFilter</a></li><li><a href="#variant.CmpctBlock" title="CmpctBlock">CmpctBlock</a></li><li><a href="#variant.FeeFilter" title="FeeFilter">FeeFilter</a></li><li><a href="#variant.FilterAdd" title="FilterAdd">FilterAdd</a></li><li><a href="#variant.FilterClear" title="FilterClear">FilterClear</a></li><li><a href="#variant.FilterLoad" title="FilterLoad">FilterLoad</a></li><li><a href="#variant.GetAddr" title="GetAddr">GetAddr</a></li><li><a href="#variant.GetBlockTxn" title="GetBlockTxn">GetBlockTxn</a></li><li><a href="#variant.GetBlocks" title="GetBlocks">GetBlocks</a></li><li><a href="#variant.GetCFCheckpt" title="GetCFCheckpt">GetCFCheckpt</a></li><li><a href="#variant.GetCFHeaders" title="GetCFHeaders">GetCFHeaders</a></li><li><a href="#variant.GetCFilters" title="GetCFilters">GetCFilters</a></li><li><a href="#variant.GetData" title="GetData">GetData</a></li><li><a href="#variant.GetHeaders" title="GetHeaders">GetHeaders</a></li><li><a href="#variant.Headers" title="Headers">Headers</a></li><li><a href="#variant.Inv" title="Inv">Inv</a></li><li><a href="#variant.MemPool" title="MemPool">MemPool</a></li><li><a href="#variant.MerkleBlock" title="MerkleBlock">MerkleBlock</a></li><li><a href="#variant.NotFound" title="NotFound">NotFound</a></li><li><a href="#variant.Ping" title="Ping">Ping</a></li><li><a href="#variant.Pong" title="Pong">Pong</a></li><li><a href="#variant.Reject" title="Reject">Reject</a></li><li><a href="#variant.SendAddrV2" title="SendAddrV2">SendAddrV2</a></li><li><a href="#variant.SendCmpct" title="SendCmpct">SendCmpct</a></li><li><a href="#variant.SendHeaders" title="SendHeaders">SendHeaders</a></li><li><a href="#variant.Tx" title="Tx">Tx</a></li><li><a href="#variant.Unknown" title="Unknown">Unknown</a></li><li><a href="#variant.Verack" title="Verack">Verack</a></li><li><a href="#variant.Version" title="Version">Version</a></li><li><a href="#variant.WtxidRelay" title="WtxidRelay">WtxidRelay</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.cmd" title="cmd">cmd</a></li><li><a href="#method.command" title="command">command</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-NetworkMessage" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-NetworkMessage" title="Debug">Debug</a></li><li><a href="#impl-Encodable-for-NetworkMessage" title="Encodable">Encodable</a></li><li><a href="#impl-Eq-for-NetworkMessage" title="Eq">Eq</a></li><li><a href="#impl-PartialEq-for-NetworkMessage" title="PartialEq">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-NetworkMessage" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-NetworkMessage" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-NetworkMessage" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-NetworkMessage" title="Send">Send</a></li><li><a href="#impl-Sync-for-NetworkMessage" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-NetworkMessage" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-NetworkMessage" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Q" title="Equivalent&#60;K&#62;">Equivalent&#60;K&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-VZip%3CV%3E-for-T" title="VZip&#60;V&#62;">VZip&#60;V&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In bdk_<wbr>chain::<wbr>bitcoin::<wbr>p2p::<wbr>message</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../../../index.html">bdk_chain</a>::<wbr><a href="../../index.html">bitcoin</a>::<wbr><a href="../index.html">p2p</a>::<wbr><a href="index.html">message</a></span><h1>Enum <span class="enum">NetworkMessage</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub enum NetworkMessage {
2 <details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 37 variants</span></summary> Version(<a class="struct" href="../message_network/struct.VersionMessage.html" title="struct bdk_chain::bitcoin::p2p::message_network::VersionMessage">VersionMessage</a>),
3 Verack,
4 Addr(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="struct" href="../struct.Address.html" title="struct bdk_chain::bitcoin::p2p::Address">Address</a>)&gt;),
5 Inv(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;),
6 GetData(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;),
7 NotFound(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;),
8 GetBlocks(<a class="struct" href="../message_blockdata/struct.GetBlocksMessage.html" title="struct bdk_chain::bitcoin::p2p::message_blockdata::GetBlocksMessage">GetBlocksMessage</a>),
9 GetHeaders(<a class="struct" href="../message_blockdata/struct.GetHeadersMessage.html" title="struct bdk_chain::bitcoin::p2p::message_blockdata::GetHeadersMessage">GetHeadersMessage</a>),
10 MemPool,
11 Tx(<a class="struct" href="../../struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>),
12 Block(<a class="struct" href="../../struct.Block.html" title="struct bdk_chain::bitcoin::Block">Block</a>),
13 Headers(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="struct" href="../../blockdata/block/struct.Header.html" title="struct bdk_chain::bitcoin::blockdata::block::Header">Header</a>&gt;),
14 SendHeaders,
15 GetAddr,
16 Ping(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>),
17 Pong(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>),
18 MerkleBlock(<a class="struct" href="../../struct.MerkleBlock.html" title="struct bdk_chain::bitcoin::MerkleBlock">MerkleBlock</a>),
19 FilterLoad(<a class="struct" href="../message_bloom/struct.FilterLoad.html" title="struct bdk_chain::bitcoin::p2p::message_bloom::FilterLoad">FilterLoad</a>),
20 FilterAdd(<a class="struct" href="../message_bloom/struct.FilterAdd.html" title="struct bdk_chain::bitcoin::p2p::message_bloom::FilterAdd">FilterAdd</a>),
21 FilterClear,
22 GetCFilters(<a class="struct" href="../message_filter/struct.GetCFilters.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFilters">GetCFilters</a>),
23 CFilter(<a class="struct" href="../message_filter/struct.CFilter.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFilter">CFilter</a>),
24 GetCFHeaders(<a class="struct" href="../message_filter/struct.GetCFHeaders.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFHeaders">GetCFHeaders</a>),
25 CFHeaders(<a class="struct" href="../message_filter/struct.CFHeaders.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFHeaders">CFHeaders</a>),
26 GetCFCheckpt(<a class="struct" href="../message_filter/struct.GetCFCheckpt.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFCheckpt">GetCFCheckpt</a>),
27 CFCheckpt(<a class="struct" href="../message_filter/struct.CFCheckpt.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFCheckpt">CFCheckpt</a>),
28 SendCmpct(<a class="struct" href="../message_compact_blocks/struct.SendCmpct.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::SendCmpct">SendCmpct</a>),
29 CmpctBlock(<a class="struct" href="../message_compact_blocks/struct.CmpctBlock.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::CmpctBlock">CmpctBlock</a>),
30 GetBlockTxn(<a class="struct" href="../message_compact_blocks/struct.GetBlockTxn.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::GetBlockTxn">GetBlockTxn</a>),
31 BlockTxn(<a class="struct" href="../message_compact_blocks/struct.BlockTxn.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::BlockTxn">BlockTxn</a>),
32 Alert(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;),
33 Reject(<a class="struct" href="../message_network/struct.Reject.html" title="struct bdk_chain::bitcoin::p2p::message_network::Reject">Reject</a>),
34 FeeFilter(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>),
35 WtxidRelay,
36 AddrV2(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="struct" href="../address/struct.AddrV2Message.html" title="struct bdk_chain::bitcoin::p2p::address::AddrV2Message">AddrV2Message</a>&gt;),
37 SendAddrV2,
38 Unknown {
39 command: <a class="struct" href="struct.CommandString.html" title="struct bdk_chain::bitcoin::p2p::message::CommandString">CommandString</a>,
40 payload: <a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;,
41 },
42 </details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Network message payload. Proper documentation is available on at
43 <a href="https://en.bitcoin.it/wiki/Protocol_specification">Bitcoin Wiki: Protocol Specification</a></p>
44 </div></details><h2 id="variants" class="variants section-header">Variants<a href="#variants" class="anchor">§</a></h2><div class="variants"><section id="variant.Version" class="variant"><a href="#variant.Version" class="anchor">§</a><h3 class="code-header">Version(<a class="struct" href="../message_network/struct.VersionMessage.html" title="struct bdk_chain::bitcoin::p2p::message_network::VersionMessage">VersionMessage</a>)</h3></section><div class="docblock"><p><code>version</code></p>
45 </div><section id="variant.Verack" class="variant"><a href="#variant.Verack" class="anchor">§</a><h3 class="code-header">Verack</h3></section><div class="docblock"><p><code>verack</code></p>
46 </div><section id="variant.Addr" class="variant"><a href="#variant.Addr" class="anchor">§</a><h3 class="code-header">Addr(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="struct" href="../struct.Address.html" title="struct bdk_chain::bitcoin::p2p::Address">Address</a>)&gt;)</h3></section><div class="docblock"><p><code>addr</code></p>
47 </div><section id="variant.Inv" class="variant"><a href="#variant.Inv" class="anchor">§</a><h3 class="code-header">Inv(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;)</h3></section><div class="docblock"><p><code>inv</code></p>
48 </div><section id="variant.GetData" class="variant"><a href="#variant.GetData" class="anchor">§</a><h3 class="code-header">GetData(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;)</h3></section><div class="docblock"><p><code>getdata</code></p>
49 </div><section id="variant.NotFound" class="variant"><a href="#variant.NotFound" class="anchor">§</a><h3 class="code-header">NotFound(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="enum" href="../message_blockdata/enum.Inventory.html" title="enum bdk_chain::bitcoin::p2p::message_blockdata::Inventory">Inventory</a>&gt;)</h3></section><div class="docblock"><p><code>notfound</code></p>
50 </div><section id="variant.GetBlocks" class="variant"><a href="#variant.GetBlocks" class="anchor">§</a><h3 class="code-header">GetBlocks(<a class="struct" href="../message_blockdata/struct.GetBlocksMessage.html" title="struct bdk_chain::bitcoin::p2p::message_blockdata::GetBlocksMessage">GetBlocksMessage</a>)</h3></section><div class="docblock"><p><code>getblocks</code></p>
51 </div><section id="variant.GetHeaders" class="variant"><a href="#variant.GetHeaders" class="anchor">§</a><h3 class="code-header">GetHeaders(<a class="struct" href="../message_blockdata/struct.GetHeadersMessage.html" title="struct bdk_chain::bitcoin::p2p::message_blockdata::GetHeadersMessage">GetHeadersMessage</a>)</h3></section><div class="docblock"><p><code>getheaders</code></p>
52 </div><section id="variant.MemPool" class="variant"><a href="#variant.MemPool" class="anchor">§</a><h3 class="code-header">MemPool</h3></section><div class="docblock"><p><code>mempool</code></p>
53 </div><section id="variant.Tx" class="variant"><a href="#variant.Tx" class="anchor">§</a><h3 class="code-header">Tx(<a class="struct" href="../../struct.Transaction.html" title="struct bdk_chain::bitcoin::Transaction">Transaction</a>)</h3></section><div class="docblock"><p>tx</p>
54 </div><section id="variant.Block" class="variant"><a href="#variant.Block" class="anchor">§</a><h3 class="code-header">Block(<a class="struct" href="../../struct.Block.html" title="struct bdk_chain::bitcoin::Block">Block</a>)</h3></section><div class="docblock"><p><code>block</code></p>
55 </div><section id="variant.Headers" class="variant"><a href="#variant.Headers" class="anchor">§</a><h3 class="code-header">Headers(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="struct" href="../../blockdata/block/struct.Header.html" title="struct bdk_chain::bitcoin::blockdata::block::Header">Header</a>&gt;)</h3></section><div class="docblock"><p><code>headers</code></p>
56 </div><section id="variant.SendHeaders" class="variant"><a href="#variant.SendHeaders" class="anchor">§</a><h3 class="code-header">SendHeaders</h3></section><div class="docblock"><p><code>sendheaders</code></p>
57 </div><section id="variant.GetAddr" class="variant"><a href="#variant.GetAddr" class="anchor">§</a><h3 class="code-header">GetAddr</h3></section><div class="docblock"><p><code>getaddr</code></p>
58 </div><section id="variant.Ping" class="variant"><a href="#variant.Ping" class="anchor">§</a><h3 class="code-header">Ping(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</h3></section><div class="docblock"><p><code>ping</code></p>
59 </div><section id="variant.Pong" class="variant"><a href="#variant.Pong" class="anchor">§</a><h3 class="code-header">Pong(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>)</h3></section><div class="docblock"><p><code>pong</code></p>
60 </div><section id="variant.MerkleBlock" class="variant"><a href="#variant.MerkleBlock" class="anchor">§</a><h3 class="code-header">MerkleBlock(<a class="struct" href="../../struct.MerkleBlock.html" title="struct bdk_chain::bitcoin::MerkleBlock">MerkleBlock</a>)</h3></section><div class="docblock"><p><code>merkleblock</code></p>
61 </div><section id="variant.FilterLoad" class="variant"><a href="#variant.FilterLoad" class="anchor">§</a><h3 class="code-header">FilterLoad(<a class="struct" href="../message_bloom/struct.FilterLoad.html" title="struct bdk_chain::bitcoin::p2p::message_bloom::FilterLoad">FilterLoad</a>)</h3></section><div class="docblock"><p>BIP 37 <code>filterload</code></p>
62 </div><section id="variant.FilterAdd" class="variant"><a href="#variant.FilterAdd" class="anchor">§</a><h3 class="code-header">FilterAdd(<a class="struct" href="../message_bloom/struct.FilterAdd.html" title="struct bdk_chain::bitcoin::p2p::message_bloom::FilterAdd">FilterAdd</a>)</h3></section><div class="docblock"><p>BIP 37 <code>filteradd</code></p>
63 </div><section id="variant.FilterClear" class="variant"><a href="#variant.FilterClear" class="anchor">§</a><h3 class="code-header">FilterClear</h3></section><div class="docblock"><p>BIP 37 <code>filterclear</code></p>
64 </div><section id="variant.GetCFilters" class="variant"><a href="#variant.GetCFilters" class="anchor">§</a><h3 class="code-header">GetCFilters(<a class="struct" href="../message_filter/struct.GetCFilters.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFilters">GetCFilters</a>)</h3></section><div class="docblock"><p>BIP157 getcfilters</p>
65 </div><section id="variant.CFilter" class="variant"><a href="#variant.CFilter" class="anchor">§</a><h3 class="code-header">CFilter(<a class="struct" href="../message_filter/struct.CFilter.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFilter">CFilter</a>)</h3></section><div class="docblock"><p>BIP157 cfilter</p>
66 </div><section id="variant.GetCFHeaders" class="variant"><a href="#variant.GetCFHeaders" class="anchor">§</a><h3 class="code-header">GetCFHeaders(<a class="struct" href="../message_filter/struct.GetCFHeaders.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFHeaders">GetCFHeaders</a>)</h3></section><div class="docblock"><p>BIP157 getcfheaders</p>
67 </div><section id="variant.CFHeaders" class="variant"><a href="#variant.CFHeaders" class="anchor">§</a><h3 class="code-header">CFHeaders(<a class="struct" href="../message_filter/struct.CFHeaders.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFHeaders">CFHeaders</a>)</h3></section><div class="docblock"><p>BIP157 cfheaders</p>
68 </div><section id="variant.GetCFCheckpt" class="variant"><a href="#variant.GetCFCheckpt" class="anchor">§</a><h3 class="code-header">GetCFCheckpt(<a class="struct" href="../message_filter/struct.GetCFCheckpt.html" title="struct bdk_chain::bitcoin::p2p::message_filter::GetCFCheckpt">GetCFCheckpt</a>)</h3></section><div class="docblock"><p>BIP157 getcfcheckpt</p>
69 </div><section id="variant.CFCheckpt" class="variant"><a href="#variant.CFCheckpt" class="anchor">§</a><h3 class="code-header">CFCheckpt(<a class="struct" href="../message_filter/struct.CFCheckpt.html" title="struct bdk_chain::bitcoin::p2p::message_filter::CFCheckpt">CFCheckpt</a>)</h3></section><div class="docblock"><p>BIP157 cfcheckpt</p>
70 </div><section id="variant.SendCmpct" class="variant"><a href="#variant.SendCmpct" class="anchor">§</a><h3 class="code-header">SendCmpct(<a class="struct" href="../message_compact_blocks/struct.SendCmpct.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::SendCmpct">SendCmpct</a>)</h3></section><div class="docblock"><p>BIP152 sendcmpct</p>
71 </div><section id="variant.CmpctBlock" class="variant"><a href="#variant.CmpctBlock" class="anchor">§</a><h3 class="code-header">CmpctBlock(<a class="struct" href="../message_compact_blocks/struct.CmpctBlock.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::CmpctBlock">CmpctBlock</a>)</h3></section><div class="docblock"><p>BIP152 cmpctblock</p>
72 </div><section id="variant.GetBlockTxn" class="variant"><a href="#variant.GetBlockTxn" class="anchor">§</a><h3 class="code-header">GetBlockTxn(<a class="struct" href="../message_compact_blocks/struct.GetBlockTxn.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::GetBlockTxn">GetBlockTxn</a>)</h3></section><div class="docblock"><p>BIP152 getblocktxn</p>
73 </div><section id="variant.BlockTxn" class="variant"><a href="#variant.BlockTxn" class="anchor">§</a><h3 class="code-header">BlockTxn(<a class="struct" href="../message_compact_blocks/struct.BlockTxn.html" title="struct bdk_chain::bitcoin::p2p::message_compact_blocks::BlockTxn">BlockTxn</a>)</h3></section><div class="docblock"><p>BIP152 blocktxn</p>
74 </div><section id="variant.Alert" class="variant"><a href="#variant.Alert" class="anchor">§</a><h3 class="code-header">Alert(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;)</h3></section><div class="docblock"><p><code>alert</code></p>
75 </div><section id="variant.Reject" class="variant"><a href="#variant.Reject" class="anchor">§</a><h3 class="code-header">Reject(<a class="struct" href="../message_network/struct.Reject.html" title="struct bdk_chain::bitcoin::p2p::message_network::Reject">Reject</a>)</h3></section><div class="docblock"><p><code>reject</code></p>
76 </div><section id="variant.FeeFilter" class="variant"><a href="#variant.FeeFilter" class="anchor">§</a><h3 class="code-header">FeeFilter(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>)</h3></section><div class="docblock"><p><code>feefilter</code></p>
77 </div><section id="variant.WtxidRelay" class="variant"><a href="#variant.WtxidRelay" class="anchor">§</a><h3 class="code-header">WtxidRelay</h3></section><div class="docblock"><p><code>wtxidrelay</code></p>
78 </div><section id="variant.AddrV2" class="variant"><a href="#variant.AddrV2" class="anchor">§</a><h3 class="code-header">AddrV2(<a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="struct" href="../address/struct.AddrV2Message.html" title="struct bdk_chain::bitcoin::p2p::address::AddrV2Message">AddrV2Message</a>&gt;)</h3></section><div class="docblock"><p><code>addrv2</code></p>
79 </div><section id="variant.SendAddrV2" class="variant"><a href="#variant.SendAddrV2" class="anchor">§</a><h3 class="code-header">SendAddrV2</h3></section><div class="docblock"><p><code>sendaddrv2</code></p>
80 </div><section id="variant.Unknown" class="variant"><a href="#variant.Unknown" class="anchor">§</a><h3 class="code-header">Unknown</h3></section><div class="docblock"><p>Any other message.</p>
81 </div><div class="sub-variant" id="variant.Unknown.fields"><h4>Fields</h4><div class="sub-variant-field"><span id="variant.Unknown.field.command" class="section-header"><a href="#variant.Unknown.field.command" class="anchor field">§</a><code>command: <a class="struct" href="struct.CommandString.html" title="struct bdk_chain::bitcoin::p2p::message::CommandString">CommandString</a></code></span><div class="docblock"><p>The command of this message.</p>
82 </div></div><div class="sub-variant-field"><span id="variant.Unknown.field.payload" class="section-header"><a href="#variant.Unknown.field.payload" class="anchor field">§</a><code>payload: <a class="struct" href="../../base58/struct.Vec.html" title="struct bdk_chain::bitcoin::base58::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</code></span><div class="docblock"><p>The payload of this message.</p>
83 </div></div></div></div><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-NetworkMessage" class="impl"><a href="#impl-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.cmd" class="method"><h4 class="code-header">pub fn <a href="#method.cmd" class="fn">cmd</a>(&amp;self) -&gt; &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>Return the message command as a static string reference.</p>
84 <p>This returns <code>"unknown"</code> for <a href="enum.NetworkMessage.html#variant.Unknown" title="variant bdk_chain::bitcoin::p2p::message::NetworkMessage::Unknown">NetworkMessage::Unknown</a>,
85 regardless of the actual command in the unknown message.
86 Use the <a href="enum.NetworkMessage.html#method.command" title="method bdk_chain::bitcoin::p2p::message::NetworkMessage::command">Self::command</a> method to get the command for unknown messages.</p>
87 </div></details><details class="toggle method-toggle" open><summary><section id="method.command" class="method"><h4 class="code-header">pub fn <a href="#method.command" class="fn">command</a>(&amp;self) -&gt; <a class="struct" href="struct.CommandString.html" title="struct bdk_chain::bitcoin::p2p::message::CommandString">CommandString</a></h4></section></summary><div class="docblock"><p>Return the CommandString for the message command.</p>
88 </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-Clone-for-NetworkMessage" class="impl"><a href="#impl-Clone-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#174">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-NetworkMessage" class="impl"><a href="#impl-Debug-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Encodable-for-NetworkMessage" class="impl"><a href="#impl-Encodable-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../consensus/trait.Encodable.html" title="trait bdk_chain::bitcoin::consensus::Encodable">Encodable</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.consensus_encode" class="method trait-impl"><a href="#method.consensus_encode" class="anchor">§</a><h4 class="code-header">fn <a href="../../consensus/trait.Encodable.html#tymethod.consensus_encode" class="fn">consensus_encode</a>&lt;W&gt;(&amp;self, writer: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut W</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <a class="struct" href="../../io/struct.Error.html" title="struct bdk_chain::bitcoin::io::Error">Error</a>&gt;<div class="where">where
89 W: <a class="trait" href="../../io/trait.Write.html" title="trait bdk_chain::bitcoin::io::Write">Write</a> + ?<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'>Encodes an object with a well-defined format. <a href="../../consensus/trait.Encodable.html#tymethod.consensus_encode">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-NetworkMessage" class="impl"><a href="#impl-PartialEq-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&amp;self, other: &amp;<a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Tests for <code>!=</code>. The default implementation is almost always sufficient,
90 and should not be overridden without very good reason.</div></details></div></details><section id="impl-Eq-for-NetworkMessage" class="impl"><a href="#impl-Eq-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-StructuralPartialEq-for-NetworkMessage" class="impl"><a href="#impl-StructuralPartialEq-for-NetworkMessage" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section></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-NetworkMessage" class="impl"><a href="#impl-Freeze-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-RefUnwindSafe-for-NetworkMessage" class="impl"><a href="#impl-RefUnwindSafe-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-Send-for-NetworkMessage" class="impl"><a href="#impl-Send-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-Sync-for-NetworkMessage" class="impl"><a href="#impl-Sync-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-Unpin-for-NetworkMessage" class="impl"><a href="#impl-Unpin-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</a></h3></section><section id="impl-UnwindSafe-for-NetworkMessage" class="impl"><a href="#impl-UnwindSafe-for-NetworkMessage" 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="enum" href="enum.NetworkMessage.html" title="enum bdk_chain::bitcoin::p2p::message::NetworkMessage">NetworkMessage</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&lt;T&gt; <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
91 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>(&amp;self) -&gt; <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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
92 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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
93 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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/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-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#273">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
94 T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#275">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&amp;self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dst</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Q" class="impl"><a href="#impl-Equivalent%3CK%3E-for-Q" class="anchor">§</a><h3 class="code-header">impl&lt;Q, K&gt; Equivalent&lt;K&gt; for Q<div class="where">where
95 Q: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
96 K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + ?<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.equivalent" class="method trait-impl"><a href="#method.equivalent" class="anchor">§</a><h4 class="code-header">fn <a class="fn">equivalent</a>(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;K</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this value is equivalent to the given key. <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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/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) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
97 </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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
98 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/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) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
99 <p>That is, this conversion is whatever the implementation of
100 <code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
101 </div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#82-84">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
102 T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#87">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#91">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">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#807-809">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
103 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811">Source</a><a href="#associatedtype.Error-1" 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#814">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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#792-794">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
104 U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796">Source</a><a href="#associatedtype.Error" 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> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/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#799">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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-T" class="impl"><a href="#impl-VZip%3CV%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;V, T&gt; VZip&lt;V&gt; for T<div class="where">where
105 V: MultiLane&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -&gt; V</h4></section></div></details></div></section></div></main></body></html>