<linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><bodyclass="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../openssl/index.html'><divclass='logo-container rust-logo'><imgsrc='../../rust-logo.png'alt='logo'></div></a><pclass="location">Module dsa</p><divclass="sidebar-elems"><divclass="block items"><ul><li><ahref="#structs">Structs</a></li></ul></div><pclass="location"><ahref="../index.html">openssl</a></p><divid="sidebar-vars"data-name="dsa"data-ty="mod"data-relpath="../"></div><scriptdefersrc="../sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><scriptsrc="../../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
<aid="settings-menu"href="../../settings.html"><imgsrc="../../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Module <ahref="../index.html">openssl</a>::<wbr><aclass="mod"href="">dsa</a></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../../src/openssl/dsa.rs.html#1-460"title="goto source code">[src]</a></span></h1><divclass="docblock"><p>Digital Signatures</p>
<p>DSA ensures a message originated from a known sender, and was not modified.
DSA uses asymetrical keys and an algorithm to output a signature of the message
using the private key that can be validated with the public key but not be generated
</td></tr><trclass="module-item"><td><aclass="struct"href="struct.DsaRef.html"title="openssl::dsa::DsaRef struct">DsaRef</a></td><tdclass="docblock-short"><p>Reference to <ahref="struct.Dsa.html"><code>Dsa</code></a>.</p>
<linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../openssl/index.html'><divclass='logo-container rust-logo'><imgsrc='../../rust-logo.png'alt='logo'></div></a><pclass="location">Struct Dsa</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#implementations">Methods</a><divclass="sidebar-links"><ahref="#method.from_private_components">from_private_components</a><ahref="#method.from_public_components">from_public_components</a><ahref="#method.generate">generate</a><ahref="#method.public_key_from_der">public_key_from_der</a><ahref="#method.public_key_from_pem">public_key_from_pem</a></div><aclass="sidebar-title"href="#deref-methods-DsaRef%3CT%3E">Methods from Deref<Target=DsaRef<T>></a><divclass="sidebar-links"><ahref="#method.g">g</a><ahref="#method.p">p</a><ahref="#method.priv_key">priv_key</a><ahref="#method.private_key_to_pem">private_key_to_pem</a><ahref="#method.private_key_to_pem_passphrase">private_key_to_pem_passphrase</a><ahref="#method.pub_key">pub_key</a><ahref="#method.public_key_to_der">public_key_to_der</a><ahref="#method.public_key_to_pem">public_key_to_pem</a><ahref="#method.q">q</a><ahref="#method.size">size</a></div><aclass="sidebar-title"href="#trait-implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-AsRef%3CDsaRef%3CT%3E%3E">AsRef<DsaRef<T>></a><ahref="#impl-Borrow%3CDsaRef%3CT%3E%3E">Borrow<DsaRef<T>></a><ahref="#impl-Clone">Clone</a><ahref="#impl-Debug">Debug</a><ahref="#impl-Deref">Deref</a><ahref="#impl-DerefMut">DerefMut</a><ahref="#impl-Drop">Drop</a><ahref="#impl-ForeignType">ForeignType</a><ahref="#impl-Send">Send</a><ahref="#impl-Sync">Sync</a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">RefUnwindSafe</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-ToOwned">ToOwned</a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><pclass="location"><ahref="../index.html">openssl</a>::<wbr><ahref="index.html">dsa</a></p><divid="sidebar-vars"data-name="Dsa"data-ty="struct"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><scriptsrc="../../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
<p>Calls <ahref="https://www.openssl.org/docs/man1.1.0/crypto/DSA_generate_parameters_ex.html"><code>DSA_generate_parameters_ex</code></a> to populate the <code>p</code>, <code>g</code>, and <code>q</code> values.
These values are used to generate the key pair with <ahref="https://www.openssl.org/docs/man1.1.0/crypto/DSA_generate_key.html"><code>DSA_generate_key</code></a>.</p>
<p>The <code>bits</code> parameter corresponds to the length of the prime <code>p</code>.</p>
</div><h4id="method.from_private_components"class="method"><code>pub fn <ahref="#method.from_private_components"class="fnname">from_private_components</a>(<br> p: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> q: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> g: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> priv_key: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> pub_key: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><<aclass="enum"href="../../openssl/pkey/enum.Private.html"title="enum openssl::pkey::Private">Private</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#224-240"title="goto source code">[src]</a></h4><divclass="docblock"><p>Create a DSA key pair with the given parameters</p>
<p><code>p</code>, <code>q</code> and <code>g</code> are the common parameters.
<code>priv_key</code> is the private component of the key pair.
<code>pub_key</code> is the public component of the key. Can be computed via <code>g^(priv_key) mod p</code></p>
<p>The input should have a header of <code>-----BEGIN PUBLIC KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.0.2/crypto/PEM_read_bio_DSA_PUBKEY.html"><code>PEM_read_bio_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.public_key_from_der"class="method"><code>pub fn <ahref="#method.public_key_from_der"class="fnname">public_key_from_der</a>(der: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><<aclass="enum"href="../../openssl/pkey/enum.Public.html"title="enum openssl::pkey::Public">Public</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#257-266"title="goto source code">[src]</a></h4><divclass="docblock"><p>Decodes a DER-encoded SubjectPublicKeyInfo structure containing a DSA key.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.0.2/crypto/d2i_DSA_PUBKEY.html"><code>d2i_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.from_public_components"class="method"><code>pub fn <ahref="#method.from_public_components"class="fnname">from_public_components</a>(<br> p: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> q: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> g: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a>, <br> pub_key: <aclass="struct"href="../../openssl/bn/struct.BigNum.html"title="struct openssl::bn::BigNum">BigNum</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><<aclass="enum"href="../../openssl/pkey/enum.Public.html"title="enum openssl::pkey::Public">Public</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#272-287"title="goto source code">[src]</a></h4><divclass="docblock"><p>Create a new DSA key with only public components.</p>
<p><code>p</code>, <code>q</code> and <code>g</code> are the common parameters.
<code>pub_key</code> is the public component of the key.</p>
</div></div><h2id="deref-methods-DsaRef%3CT%3E"class="small-section-header">Methods from <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a><Target = <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T>><ahref="#deref-methods-DsaRef%3CT%3E"class="anchor"></a></h2><divclass="impl-items"><h4id="method.public_key_to_pem"class="method"><code>pub fn <ahref="#method.public_key_to_pem"class="fnname">public_key_to_pem</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#84-94"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.</p>
<p>The output will have a header of <code>-----BEGIN PUBLIC KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSA_PUBKEY.html"><code>PEM_write_bio_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.public_key_to_der"class="method"><code>pub fn <ahref="#method.public_key_to_der"class="fnname">public_key_to_der</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#96-104"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the public key into a DER-encoded SubjectPublicKeyInfo structure.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/i2d_DSA_PUBKEY.html"><code>i2d_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.pub_key"class="method"><code>pub fn <ahref="#method.pub_key"class="fnname">pub_key</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#107-113"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a reference to the public key component of <code>self</code>.</p>
</div></div><divclass="impl-items"><h4id="method.private_key_to_pem"class="method"><code>pub fn <ahref="#method.private_key_to_pem"class="fnname">private_key_to_pem</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#120-138"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the private key to a PEM-encoded DSAPrivateKey structure.</p>
<p>The output will have a header of <code>-----BEGIN DSA PRIVATE KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html"><code>PEM_write_bio_DSAPrivateKey</code></a>.</p>
</div><h4id="method.private_key_to_pem_passphrase"class="method"><code>pub fn <ahref="#method.private_key_to_pem_passphrase"class="fnname">private_key_to_pem_passphrase</a>(<br> &self, <br> cipher: <aclass="struct"href="../../openssl/symm/struct.Cipher.html"title="struct openssl::symm::Cipher">Cipher</a>, <br> passphrase: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#120-138"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the private key to a PEM-encoded encrypted DSAPrivateKey structure.</p>
<p>The output will have a header of <code>-----BEGIN DSA PRIVATE KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html"><code>PEM_write_bio_DSAPrivateKey</code></a>.</p>
</div><h4id="method.priv_key"class="method"><code>pub fn <ahref="#method.priv_key"class="fnname">priv_key</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#141-147"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a reference to the private key component of <code>self</code>.</p>
</div></div><divclass="impl-items"><h4id="method.size"class="method"><code>pub fn <ahref="#method.size"class="fnname">size</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#159-161"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the maximum size of the signature output by <code>self</code> in bytes.</p>
<p>OpenSSL documentation at <ahref="https://www.openssl.org/docs/man1.1.0/crypto/DSA_size.html"><code>DSA_size</code></a></p>
</div><h4id="method.p"class="method"><code>pub fn <ahref="#method.p"class="fnname">p</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#164-170"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA prime parameter of <code>self</code>.</p>
</div><h4id="method.q"class="method"><code>pub fn <ahref="#method.q"class="fnname">q</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#173-179"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA sub-prime parameter of <code>self</code>.</p>
</div><h4id="method.g"class="method"><code>pub fn <ahref="#method.g"class="fnname">g</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#182-188"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA base parameter of <code>self</code>.</p>
</div></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><h3id="impl-AsRef%3CDsaRef%3CT%3E%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T>> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-AsRef%3CDsaRef%3CT%3E%3E"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.as_ref"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref"class="fnname">as_ref</a>(&self) ->&<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-Borrow%3CDsaRef%3CT%3E%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T>> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Borrow%3CDsaRef%3CT%3E%3E"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) ->&<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id="impl-Clone"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Clone"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#63-67"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.clone"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone"class="fnname">clone</a>(&self) -><aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#64-66"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Returns a copy of the value. <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4id="method.clone_from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from"class="fnname">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3id="impl-Debug"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Debug"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#290-294"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.fmt"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt"class="fnname">fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#291-293"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3id="impl-Deref"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html"title="trait core::ops::deref::Deref">Deref</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Deref"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Target"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target"class="type">Target</a> = <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code></h4><divclass='docblock'><p>The resulting type after dereferencing.</p>
</div><h4id="method.deref"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref"class="fnname">deref</a>(&self) ->&<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Dereferences the value.</p>
</div></div><h3id="impl-DerefMut"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html"title="trait core::ops::deref::DerefMut">DerefMut</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-DerefMut"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.deref_mut"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut"class="fnname">deref_mut</a>(&mut self) ->&mut <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Mutably dereferences the value.</p>
</div></div><h3id="impl-Drop"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html"title="trait core::ops::drop::Drop">Drop</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Drop"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.drop"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop"class="fnname">drop</a>(&mut self)</code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Executes the destructor for this type. <ahref="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></p>
</div></div><h3id="impl-ForeignType"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="../../foreign_types_shared/trait.ForeignType.html"title="trait foreign_types_shared::ForeignType">ForeignType</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-ForeignType"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.CType"class="type"><code>type <ahref="../../foreign_types_shared/trait.ForeignType.html#associatedtype.CType"class="type">CType</a> = <aclass="enum"href="../../openssl_sys/ossl_typ/enum.DSA.html"title="enum openssl_sys::ossl_typ::DSA">DSA</a></code></h4><divclass='docblock'><p>The raw C type.</p>
</div><h4id="associatedtype.Ref"class="type"><code>type <ahref="../../foreign_types_shared/trait.ForeignType.html#associatedtype.Ref"class="type">Ref</a> = <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code></h4><divclass='docblock'><p>The type representing a reference to this type.</p>
</div><h4id="method.from_ptr"class="method hidden"><code>unsafe fn <ahref="../../foreign_types_shared/trait.ForeignType.html#tymethod.from_ptr"class="fnname">from_ptr</a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><aclass="enum"href="../../openssl_sys/ossl_typ/enum.DSA.html"title="enum openssl_sys::ossl_typ::DSA">DSA</a>) -><aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Constructs an instance of this type from its raw type.</p>
</div><h4id="method.as_ptr"class="method hidden"><code>fn <ahref="../../foreign_types_shared/trait.ForeignType.html#tymethod.as_ptr"class="fnname">as_ptr</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><aclass="enum"href="../../openssl_sys/ossl_typ/enum.DSA.html"title="enum openssl_sys::ossl_typ::DSA">DSA</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Returns a raw pointer to the wrapped value.</p>
</div></div><h3id="impl-Send"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Send"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"></div><h3id="impl-Sync"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Sync"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"></div></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor"></a></h2><divid="synthetic-implementations-list"><h3id="impl-RefUnwindSafe"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html"title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html"title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>, </span></code><ahref="#impl-RefUnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-Unpin"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a>, </span></code><ahref="#impl-Unpin"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-UnwindSafe"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><ahref="#impl-UnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor"></a></h2><divid="blanket-implementations-list"><h3id="impl-Any"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Any"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.type_id"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id"class="fnname">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3id="impl-Borrow%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Borrow%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow-1"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id="impl-BorrowMut%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-BorrowMut%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow_mut"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fnname">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id="impl-From%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref="#impl-From%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-Into%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref="#impl-Into%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into"class="fnname">into</a>(self) -> U</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-ToOwned"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref="#impl-ToOwned"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-93"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Owned"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="type">Owned</a> = T</code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id="method.to_owned"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -> T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#86"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id="method.clone_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#90"title="goto source code">[src]</a></h4><divclass="item-info hidden"><divclass="stab unstable"><details><summary><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3id="impl-TryFrom%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-TryInto%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error-1"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
<linkrel="alternate icon"type="image/png"href="../../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../../openssl/index.html'><divclass='logo-container rust-logo'><imgsrc='../../rust-logo.png'alt='logo'></div></a><pclass="location">Struct DsaRef</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#implementations">Methods</a><divclass="sidebar-links"><ahref="#method.g">g</a><ahref="#method.p">p</a><ahref="#method.priv_key">priv_key</a><ahref="#method.private_key_to_pem">private_key_to_pem</a><ahref="#method.private_key_to_pem_passphrase">private_key_to_pem_passphrase</a><ahref="#method.pub_key">pub_key</a><ahref="#method.public_key_to_der">public_key_to_der</a><ahref="#method.public_key_to_pem">public_key_to_pem</a><ahref="#method.q">q</a><ahref="#method.size">size</a></div><aclass="sidebar-title"href="#trait-implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-AsRef%3CDsaRef%3CT%3E%3E">AsRef<DsaRef<T>></a><ahref="#impl-Borrow%3CDsaRef%3CT%3E%3E">Borrow<DsaRef<T>></a><ahref="#impl-ForeignTypeRef">ForeignTypeRef</a><ahref="#impl-Send">Send</a><ahref="#impl-Sync">Sync</a><ahref="#impl-ToOwned">ToOwned</a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">!RefUnwindSafe</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><pclass="location"><ahref="../index.html">openssl</a>::<wbr><ahref="index.html">dsa</a></p><divid="sidebar-vars"data-name="DsaRef"data-ty="struct"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><scriptsrc="../../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
<aid="settings-menu"href="../../settings.html"><imgsrc="../../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class="fqn"><spanclass="in-band">Struct <ahref="../index.html">openssl</a>::<wbr><ahref="index.html">dsa</a>::<wbr><aclass="struct"href="">DsaRef</a></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></span></h1><divclass="docblock type-decl hidden-by-usual-hider"><preclass="rust struct">pub struct DsaRef<T>(_, _);</pre></div><divclass="docblock"><p>Reference to <ahref="struct.Dsa.html"><code>Dsa</code></a>.</p>
</div><h2id="implementations"class="small-section-header">Implementations<ahref="#implementations"class="anchor"></a></h2><h3id="impl"class="impl"><codeclass="in-band">impl<T><aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../../openssl/pkey/trait.HasPublic.html"title="trait openssl::pkey::HasPublic">HasPublic</a>, </span></code><ahref="#impl"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#80-114"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.public_key_to_pem"class="method"><code>pub fn <ahref="#method.public_key_to_pem"class="fnname">public_key_to_pem</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#84-94"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serialies the public key into a PEM-encoded SubjectPublicKeyInfo structure.</p>
<p>The output will have a header of <code>-----BEGIN PUBLIC KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSA_PUBKEY.html"><code>PEM_write_bio_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.public_key_to_der"class="method"><code>pub fn <ahref="#method.public_key_to_der"class="fnname">public_key_to_der</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#96-104"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the public key into a DER-encoded SubjectPublicKeyInfo structure.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/i2d_DSA_PUBKEY.html"><code>i2d_DSA_PUBKEY</code></a>.</p>
</div><h4id="method.pub_key"class="method"><code>pub fn <ahref="#method.pub_key"class="fnname">pub_key</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#107-113"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a reference to the public key component of <code>self</code>.</p>
</div></div><h3id="impl-1"class="impl"><codeclass="in-band">impl<T><aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../../openssl/pkey/trait.HasPrivate.html"title="trait openssl::pkey::HasPrivate">HasPrivate</a>, </span></code><ahref="#impl-1"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#116-148"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.private_key_to_pem"class="method"><code>pub fn <ahref="#method.private_key_to_pem"class="fnname">private_key_to_pem</a>(&self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#120-138"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the private key to a PEM-encoded DSAPrivateKey structure.</p>
<p>The output will have a header of <code>-----BEGIN DSA PRIVATE KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html"><code>PEM_write_bio_DSAPrivateKey</code></a>.</p>
</div><h4id="method.private_key_to_pem_passphrase"class="method"><code>pub fn <ahref="#method.private_key_to_pem_passphrase"class="fnname">private_key_to_pem_passphrase</a>(<br> &self, <br> cipher: <aclass="struct"href="../../openssl/symm/struct.Cipher.html"title="struct openssl::symm::Cipher">Cipher</a>, <br> passphrase: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <aclass="struct"href="../../openssl/error/struct.ErrorStack.html"title="struct openssl::error::ErrorStack">ErrorStack</a>></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#120-138"title="goto source code">[src]</a></h4><divclass="docblock"><p>Serializes the private key to a PEM-encoded encrypted DSAPrivateKey structure.</p>
<p>The output will have a header of <code>-----BEGIN DSA PRIVATE KEY-----</code>.</p>
<p>This corresponds to <ahref="https://www.openssl.org/docs/man1.1.0/crypto/PEM_write_bio_DSAPrivateKey.html"><code>PEM_write_bio_DSAPrivateKey</code></a>.</p>
</div><h4id="method.priv_key"class="method"><code>pub fn <ahref="#method.priv_key"class="fnname">priv_key</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#141-147"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns a reference to the private key component of <code>self</code>.</p>
</div></div><h3id="impl-2"class="impl"><codeclass="in-band">impl<T><aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../../openssl/pkey/trait.HasParams.html"title="trait openssl::pkey::HasParams">HasParams</a>, </span></code><ahref="#impl-2"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#150-189"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.size"class="method"><code>pub fn <ahref="#method.size"class="fnname">size</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#159-161"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the maximum size of the signature output by <code>self</code> in bytes.</p>
<p>OpenSSL documentation at <ahref="https://www.openssl.org/docs/man1.1.0/crypto/DSA_size.html"><code>DSA_size</code></a></p>
</div><h4id="method.p"class="method"><code>pub fn <ahref="#method.p"class="fnname">p</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#164-170"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA prime parameter of <code>self</code>.</p>
</div><h4id="method.q"class="method"><code>pub fn <ahref="#method.q"class="fnname">q</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#173-179"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA sub-prime parameter of <code>self</code>.</p>
</div><h4id="method.g"class="method"><code>pub fn <ahref="#method.g"class="fnname">g</a>(&self) ->&<aclass="struct"href="../../openssl/bn/struct.BigNumRef.html"title="struct openssl::bn::BigNumRef">BigNumRef</a></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#182-188"title="goto source code">[src]</a></h4><divclass="docblock"><p>Returns the DSA base parameter of <code>self</code>.</p>
</div></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><h3id="impl-AsRef%3CDsaRef%3CT%3E%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T>> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-AsRef%3CDsaRef%3CT%3E%3E"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.as_ref"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref"class="fnname">as_ref</a>(&self) ->&<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-Borrow%3CDsaRef%3CT%3E%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T>> for <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><ahref="#impl-Borrow%3CDsaRef%3CT%3E%3E"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) ->&<aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id="impl-ForeignTypeRef"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="../../foreign_types_shared/trait.ForeignTypeRef.html"title="trait foreign_types_shared::ForeignTypeRef">ForeignTypeRef</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><ahref="#impl-ForeignTypeRef"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.CType"class="type"><code>type <ahref="../../foreign_types_shared/trait.ForeignTypeRef.html#associatedtype.CType"class="type">CType</a> = <aclass="enum"href="../../openssl_sys/ossl_typ/enum.DSA.html"title="enum openssl_sys::ossl_typ::DSA">DSA</a></code></h4><divclass='docblock'><p>The raw C type.</p>
</div><h4id="method.from_ptr"class="method hidden"><code>pub unsafe fn <ahref="../../foreign_types_shared/trait.ForeignTypeRef.html#method.from_ptr"class="fnname">from_ptr</a><'a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>Self::<aclass="type"href="../../foreign_types_shared/trait.ForeignTypeRef.html#associatedtype.CType"title="type foreign_types_shared::ForeignTypeRef::CType">CType</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Self</code><aclass="srclink"href="../../src/foreign_types_shared/lib.rs.html#36"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Constructs a shared instance of this type from its raw type.</p>
</div><h4id="method.from_ptr_mut"class="method hidden"><code>pub unsafe fn <ahref="../../foreign_types_shared/trait.ForeignTypeRef.html#method.from_ptr_mut"class="fnname">from_ptr_mut</a><'a>(ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>Self::<aclass="type"href="../../foreign_types_shared/trait.ForeignTypeRef.html#associatedtype.CType"title="type foreign_types_shared::ForeignTypeRef::CType">CType</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>Self</code><aclass="srclink"href="../../src/foreign_types_shared/lib.rs.html#42"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Constructs a mutable reference of this type from its raw type.</p>
</div><h4id="method.as_ptr"class="method hidden"><code>pub fn <ahref="../../foreign_types_shared/trait.ForeignTypeRef.html#method.as_ptr"class="fnname">as_ptr</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>Self::<aclass="type"href="../../foreign_types_shared/trait.ForeignTypeRef.html#associatedtype.CType"title="type foreign_types_shared::ForeignTypeRef::CType">CType</a></code><aclass="srclink"href="../../src/foreign_types_shared/lib.rs.html#48"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Returns a raw pointer to the wrapped value.</p>
</div></div><h3id="impl-Send"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><ahref="#impl-Send"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"></div><h3id="impl-Sync"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><ahref="#impl-Sync"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#21-61"title="goto source code">[src]</a></h3><divclass="impl-items"></div><h3id="impl-ToOwned"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><ahref="#impl-ToOwned"class="anchor"></a><aclass="srclink"href="../../src/openssl/dsa.rs.html#69-78"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Owned"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="type">Owned</a> = <aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id="method.to_owned"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fnname">to_owned</a>(&self) -><aclass="struct"href="../../openssl/dsa/struct.Dsa.html"title="struct openssl::dsa::Dsa">Dsa</a><T></code><aclass="srclink"href="../../src/openssl/dsa.rs.html#72-77"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id="method.clone_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fnname">clone_into</a>(&self, target: &mut Self::<aclass="type"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"title="type alloc::borrow::ToOwned::Owned">Owned</a>)</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#75"title="goto source code">[src]</a></h4><divclass="item-info hidden"><divclass="stab unstable"><details><summary><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor"></a></h2><divid="synthetic-implementations-list"><h3id="impl-RefUnwindSafe"class="impl"><codeclass="in-band">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html"title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T></code><ahref="#impl-RefUnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-Unpin"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a>, </span></code><ahref="#impl-Unpin"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-UnwindSafe"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="../../openssl/dsa/struct.DsaRef.html"title="struct openssl::dsa::DsaRef">DsaRef</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code><ahref="#impl-UnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor"></a></h2><divid="blanket-implementations-list"><h3id="impl-Any"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Any"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.type_id"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id"class="fnname">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3id="impl-Borrow%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Borrow%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow-1"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id="impl-BorrowMut%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-BorrowMut%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow_mut"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fnname">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id="impl-From%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref="#impl-From%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-Into%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref="#impl-Into%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into"class="fnname">into</a>(self) -> U</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-TryFrom%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-TryInto%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error-1"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.